Skip to content

Commit

Permalink
Updated eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Nov 12, 2024
1 parent 1d57265 commit ef2ce39
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 22 deletions.
21 changes: 0 additions & 21 deletions .eslintrc.json

This file was deleted.

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

export default [
js.configs.recommended,
{
languageOptions: {
globals: {
"Event": false,
"clearInterval": false,
"document": false,
"setInterval": false,
"setTimeout": false,
"XMLHttpRequest": false,
"window": false
}
},
rules: {
"no-var": "error",
"semi": ["error", "always"],
"prefer-const": "error",
"camelcase": "error",
"space-before-function-paren": ["error", {
"anonymous": "always",
"named": "never",
"asyncArrow": "always"
}]
}
}
];
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"@rollup/plugin-commonjs": "^24.0.0",
"@rollup/plugin-node-resolve": "^15.0.1",
"@rollup/plugin-terser": "^0.3.0",
"eslint": "^8.8.0",
"eslint": "^9.14.0",
"rollup": "^3.9.1"
},
"optionalDependencies": {
Expand Down

0 comments on commit ef2ce39

Please sign in to comment.