forked from Koraus/connect-colors
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
38 lines (38 loc) · 1.04 KB
/
.eslintrc.cjs
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
28
29
30
31
32
33
34
35
36
37
38
module.exports = {
env: { browser: true, es2022: true },
ignorePatterns: ['/*', '!/src', '!/backend'],
plugins: [
"@typescript-eslint",
// "react",
],
overrides: [],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react-hooks/recommended",
],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: "latest",
},
plugins: ["react-refresh"],
rules: {
"react-refresh/only-export-components": [
"warn",
{ "allowConstantExport": true },
],
// "linebreak-style": ["warn", "unix"], // enforced by git
"quotes": ["warn", "double"],
"semi": ["warn", "always"],
"max-nested-callbacks": ["warn", 2],
"comma-dangle": ["warn", "always-multiline"],
"no-warning-comments": ["warn"],
"no-console": ["warn", { "allow": ["warn", "error"] }],
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["warn", {
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}],
},
};