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 Jun 25, 2024
1 parent 0b4a03d commit 113fde6
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 28 deletions.
26 changes: 0 additions & 26 deletions .eslintrc.js

This file was deleted.

36 changes: 36 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
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-prototype-builtins": "off",
"no-unused-vars": ["error", { caughtErrors: "none"}]
}
},
{
files: ["test/*.js"],
languageOptions: {
globals: {
describe: "readonly",
it: "readonly",
before: "readonly",
after: "readonly"
}
}
}
];
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
],
"author": "jazz-soft (https://jazz-soft.net/)",
"dependencies": {
"jzz": "^1.8.4"
"jzz": "^1.8.5"
},
"devDependencies": {
"eslint": "^9.4.0",
"eslint": "^9.5.0",
"grunt": "^1.6.1",
"grunt-contrib-jshint": "^3.2.0",
"grunt-contrib-uglify": "^5.2.2",
Expand Down

0 comments on commit 113fde6

Please # to comment.