-
Notifications
You must be signed in to change notification settings - Fork 141
Expand file tree
/
Copy path.eslintrc.cjs
More file actions
27 lines (27 loc) · 947 Bytes
/
Copy path.eslintrc.cjs
File metadata and controls
27 lines (27 loc) · 947 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
module.exports = {
root: true,
env: { browser: true, es2020: true },
parser: "@typescript-eslint/parser",
plugins: ["react", "@typescript-eslint", "react-hooks", "react-refresh"],
extends: [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react-hooks/recommended",
],
settings: {
react: { version: "detect" },
},
ignorePatterns: ["dist", "node_modules", "build", "spectrax_anomaly"],
rules: {
"react-refresh/only-export-components": "off",
"react/no-unescaped-entities": "warn",
"@typescript-eslint/no-unused-vars": ["warn", { "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-ts-comment": "warn",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-var-requires": "off",
"no-empty": "warn",
"react/react-in-jsx-scope": "off",
},
};