forked from Kaetram/Kaetram-Open
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
66 lines (60 loc) · 1.99 KB
/
.eslintrc
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
{
"root": true,
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:unicorn/recommended",
"plugin:prettier/recommended"
],
"plugins": ["prefer-let"],
"rules": {
"@typescript-eslint/no-non-null-assertion": "off",
"unicorn/prefer-node-protocol": "off",
"unicorn/prefer-module": "off",
"unicorn/no-null": "off",
"unicorn/prefer-number-properties": "off",
"unicorn/prevent-abbreviations": "off",
// "unicorn/prefer-at": "error",
// "unicorn/prefer-object-has-own": "error",
"unicorn/prefer-string-replace-all": "error",
"prettier/prettier": "warn",
"prefer-let/prefer-let": "error",
"no-fallthrough": "off",
"prefer-const": "off",
"prefer-template": "warn",
"curly": ["warn", "multi"],
"one-var": ["warn", "consecutive"],
"yoda": "warn",
"no-else-return": "warn",
"object-shorthand": "warn",
"operator-assignment": "warn",
"prefer-destructuring": [
"warn",
{
"object": true,
"array": true
}
],
"array-callback-return": "error",
"default-case-last": "error",
"dot-notation": "error",
"eqeqeq": "error",
"max-classes-per-file": "error",
"no-useless-backreference": "error",
"no-unsafe-optional-chaining": "error",
"no-unreachable-loop": "error",
"no-template-curly-in-string": "error",
"no-promise-executor-return": "error",
"no-prototype-builtins": "error",
"no-case-declarations": "error",
"no-div-regex": "error",
"no-regex-spaces": "error",
"no-control-regex": "error",
"no-eval": "error",
"no-extend-native": "error",
"no-implied-eval": "error",
"no-iterator": "error",
"no-labels": "error"
},
"ignorePatterns": ["node_modules", "dist"]
}