Add ESLint

This commit is contained in:
Simon Ser
2024-09-28 21:45:45 +02:00
parent 97920ff7f6
commit 7c445d0bc9
4 changed files with 1045 additions and 8 deletions

22
eslint.config.js Normal file
View File

@@ -0,0 +1,22 @@
import globals from "globals";
import js from "@eslint/js";
export default [
js.configs.recommended,
{
languageOptions: {
globals: {
...globals.browser,
"process": "readonly",
},
},
rules: {
"no-case-declarations": "off",
"no-unused-vars": ["error", {
args: "none",
caughtErrorsIgnorePattern: "^_",
destructuredArrayIgnorePattern: "^_",
}],
},
},
];