forked from DimensionDev/Maskbook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
53 lines (53 loc) · 1.94 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"env": {
"node": true
},
"plugins": ["unused-imports"],
"rules": {
"constructor-super": "error",
"dot-notation": "error",
"eqeqeq": "error",
"object-shorthand": "warn",
"no-var": "error",
"no-bitwise": "error",
"no-debugger": "error",
"no-eval": "error",
"no-extra-bind": "error",
"no-fallthrough": "error",
"no-new-wrappers": "error",
"no-plusplus": "error",
"valid-typeof": "error",
"no-loss-of-precision": "error",
"no-unsafe-optional-chaining": "error",
"no-unsafe-negation": "error",
"no-unsafe-finally": "error",
"no-irregular-whitespace": "error",
"no-restricted-globals": ["error", "event", "name", "length", "closed"],
"no-restricted-imports": [
"error",
{
"paths": [
{ "name": "lodash", "message": "Please use lodash-unified instead." },
{ "name": "lodash-es", "message": "Please use lodash-unified instead." },
{ "name": "date-fns", "message": "Please use date-fns/{submodule} instead." },
{ "name": "date-fns/esm", "message": "Please use date-fns/{submodule} instead." },
{ "name": "@masknet/typed-message/base", "message": "Please use @masknet/typed-message instead." },
{
"name": "@dimensiondev/holoflows-kit/es",
"message": "Please use @dimensiondev/holoflows-kit 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"
}
}