-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
33 lines (33 loc) · 1.22 KB
/
.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",
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
"rules": {
"import/no-unresolved": "error",
"import/named": "error",
"import/default": "error",
"import/namespace": "error",
"no-multi-spaces": ["error"],
"semi": ["error", "never", { "beforeStatementContinuationChars": "always" }],
"no-console": "error", // disallow console.log() statements
"no-debugger": "error", // disallow debugger statements
"no-eval": "error", // disallow eval()
"no-implied-eval": "error", // disallow implied eval() via setTimeout() and setInterval()
"no-alert": "error", // disallow alert()
"no-new-func": "error", // disallow the Function constructor
"no-param-reassign": "error", // disallow reassigning function parameters
"no-return-await": "error", // disallow unnecessary use of await in return statements
"no-throw-literal": "error", // disallow throwing non-Error objects
"no-var": "error", // disallow var keyword, use let or const instead
"prefer-const": "error" // require const declarations for variables that are never reassigned
},
"plugins": [
"import"
]
}