-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
41 lines (41 loc) · 1.24 KB
/
.eslintrc.js
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
39
40
41
module.exports = {
env: { browser: true, es2022: true },
ignorePatterns: ['/*', '!/src', '!/backend'],
plugins: [
"@typescript-eslint",
// "react",
],
overrides: [],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: "latest",
},
extends: [
"eslint:recommended",
// "plugin:react/recommended",
// "plugin:react/jsx-runtime",
"plugin:@typescript-eslint/recommended",
],
rules: {
// "linebreak-style": ["warn", "unix"], // enforced by git
"quotes": ["warn", "double"],
"semi": ["warn", "always"],
"max-nested-callbacks": ["warn", 2],
"max-len": ["warn", 80, {
"ignorePattern": "^import\\s.+\\sfrom\\s.+;$",
"ignoreUrls": true,
}],
"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", // or "error"
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
],
},
};