Skip to content

Commit

Permalink
build(deps): eslint @9
Browse files Browse the repository at this point in the history
  • Loading branch information
wozjac committed Jun 21, 2024
1 parent 98056dc commit 5844998
Show file tree
Hide file tree
Showing 5 changed files with 907 additions and 980 deletions.
31 changes: 0 additions & 31 deletions config/.eslintrc.json

This file was deleted.

39 changes: 39 additions & 0 deletions config/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
const globals = require("globals");
const js = require("@eslint/js");

module.exports = [
{
ignores: [
"node_modules/**",
"dist/**",
"coverage/**",
"src/view/jquery.min.js",
".vscode-test/**/*",
"src/view/purify.min.js",
],
},
js.configs.recommended,
{
languageOptions: {
ecmaVersion: "latest",
globals: {
...globals.browser,
...globals.commonjs,
...globals.jquery,
...globals.mocha,
},
},
rules: {
"no-const-assign": "warn",
"no-this-before-super": "warn",
"no-undef": "warn",
"no-unreachable": "warn",
"no-unused-vars": "warn",
"constructor-super": "warn",
"valid-typeof": "warn",
"prefer-const": "error",
"no-var": "error",
"arrow-body-style": ["error", "always"],
},
},
];
Loading

0 comments on commit 5844998

Please sign in to comment.