Skip to content

Commit

Permalink
eslint.config.mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
jazz-soft committed Jul 4, 2024
1 parent b8d6359 commit 4b4a1f4
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 44 deletions.
38 changes: 0 additions & 38 deletions .eslintrc.js

This file was deleted.

37 changes: 37 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import globals from "globals";
import js from "@eslint/js";

export default [
js.configs.recommended,
{
ignores: ["**/.instrumented/*"]
},
{
files: ["javascript/*.js", "test/*.js"],
languageOptions: {
ecmaVersion: 2015,
globals: {
...globals.browser,
...globals.node,
define: "readonly",
JZZ: "readonly"
}
},
rules: {
"no-empty" : ["warn", { "allowEmptyCatch": true }],
"no-prototype-builtins": "off",
"no-unused-vars": ["error", { caughtErrors: "none"}]
}
},
{
files: ["test/*.js"],
languageOptions: {
globals: {
describe: "readonly",
it: "readonly",
before: "readonly",
after: "readonly"
}
}
}
];
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@
],
"author": "jazz-soft (https://jazz-soft.net/)",
"dependencies": {
"jzz": "^1.8.4",
"jzz-midi-smf": "^1.9.2"
"jzz": "^1.8.5",
"jzz-midi-smf": "^1.9.4"
},
"devDependencies": {
"eslint": "^9.3.0",
"eslint": "^9.6.0",
"grunt": "^1.6.1",
"grunt-contrib-jshint": "^3.2.0",
"grunt-contrib-uglify": "^5.2.2",
"jsdom": "^24.0.0",
"jsdom": "^24.1.0",
"jzz-synth-tiny": "^1.4.0",
"mocha": "^10.4.0",
"nyc": "^15.1.0",
"mocha": "^10.6.0",
"nyc": "^17.0.0",
"web-midi-test": "^1.2.8"
},
"runkitExampleFilename": "runkit.js",
Expand Down

0 comments on commit 4b4a1f4

Please sign in to comment.