forked from DimensionDev/Maskbook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
35 lines (35 loc) · 1.08 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
34
35
{
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"extends": ["plugin:prettier/recommended"],
"env": {
"node": true
},
"plugins": ["unused-imports", "lodash"],
"rules": {
"constructor-super": "error",
"dot-notation": "error",
"eqeqeq": "error",
"no-bitwise": "error",
"no-debugger": "error",
"no-eval": "error",
"no-extra-bind": "error",
"no-fallthrough": "error",
"no-new-wrappers": "error",
"no-plusplus": "error",
"no-restricted-globals": ["error", "event", "name", "length", "closed"],
"no-restricted-imports": [
"error",
{ "paths": [{ "name": "lodash", "message": "Please use lodash-es instead." }] }
],
"no-return-await": "error",
"no-sparse-arrays": "error",
"no-template-curly-in-string": "error",
"prefer-const": "warn",
"use-isnan": "error",
"unused-imports/no-unused-imports-ts": "error",
"lodash/import-scope": ["error", "member"]
}
}