-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
33 lines (33 loc) · 906 Bytes
/
.eslintrc.json
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
{
"env": {
"browser": true,
"es2021": true
},
"extends": ["eslint:recommended", "plugin:prettier/recommended"],
"plugins": ["import", "prettier"],
"overrides": [],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {
"eqeqeq": "warn",
"no-console": "warn",
"import/extensions": ["error", { "js": "ignorePackages" }],
"prefer-destructuring": ["warn", { "object": true, "array": false }],
"import/newline-after-import": ["warn", { "count": 1 }],
"import/no-duplicates": "warn",
"prefer-const": "error",
"no-undef": "warn",
"no-unused-vars": "warn",
"no-param-reassign": ["error", { "props": true }],
"max-depth": ["error", 4],
"import/no-useless-path-segments": [
"error",
{
"noUselessIndex": false
}
],
"prettier/prettier": ["error", { "endOfLine": "auto" }]
}
}