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 1fb1a9a commit a194bf2
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 21 deletions.
20 changes: 0 additions & 20 deletions .eslintrc.json

This file was deleted.

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

export default [
js.configs.recommended,
{
languageOptions: {
ecmaVersion: 6,
sourceType: "module",
globals: {
...globals.browser
}
},
rules: {
"no-var": "error",
"no-unused-vars": ["error", {
"caughtErrors": "none"
}],
"semi": ["error", "always"],
"prefer-const": "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 @@ -37,7 +37,7 @@
"@rollup/plugin-commonjs": "^24.0.0",
"@rollup/plugin-node-resolve": "^15.0.1",
"@rollup/plugin-terser": "^0.2.1",
"eslint": "^8.8.0",
"eslint": "^9.14.0",
"rollup": "^3.9.1"
}
}

0 comments on commit a194bf2

Please sign in to comment.