-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
67 lines (67 loc) · 1.7 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
],
plugins: ["@typescript-eslint", "jest"],
env: {
es6: true,
browser: true,
node: true,
jest: true,
},
rules: {
semi: "error",
"no-unreachable-loop": "warn",
"no-unsafe-optional-chaining": "warn",
eqeqeq: "error",
"no-alert": "error",
"prefer-spread": "error",
"no-duplicate-imports": "warn",
"no-eval": "error",
"no-implied-eval": "error",
"no-extend-native": "warn",
"no-new-wrappers": "error",
"no-proto": "error",
"no-script-url": "error",
"no-self-compare": "warn",
"no-useless-catch": "warn",
"no-throw-literal": "error",
"no-var": "warn",
"no-labels": "error",
"no-undefined": "off",
"no-new-object": "error",
"no-multi-assign": "warn",
"prefer-const": "warn",
"prefer-numeric-literals": "warn",
"prefer-object-spread": "error",
"prefer-rest-params": "error",
"prefer-exponentiation-operator": "error",
"no-lonely-if": "error",
radix: "warn",
camelcase: "warn",
"new-cap": "error",
quotes: ["warn", "double", { allowTemplateLiterals: true }],
"no-void": "error",
"spaced-comment": ["warn", "always"],
"eol-last": "warn",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/prefer-optional-chain": "error",
"@typescript-eslint/prefer-for-of": "error",
"@typescript-eslint/no-namespace": [
"error",
{ allowDefinitionFiles: true },
],
},
overrides: [
{
files: ["*.browser.js"],
env: {
browser: true,
},
},
],
};