-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
executable file
·107 lines (107 loc) · 4.05 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
{
"env": {
"es6": true,
"es2017": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.json",
"tsconfigRootDir": "."
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"@typescript-eslint/prefer-regexp-exec": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-misused-promises": ["error", {
"checksVoidReturn": false
}],
"eol-last": ["error"],
"indent": ["error", 4, {
"SwitchCase": 1
}],
"id-match": ["error", "^[_a-zA-Z0-9]*$"],
"quotes": [2, "single"],
"no-console": ["warn"],
"no-unreachable": ["error"],
"eqeqeq": ["error"],
"default-case": ["error"],
"curly": ["error", "all"],
"no-caller": ["error"],
"no-case-declarations": ["off"],
"no-constructor-return": ["error"],
"no-constant-condition": ["off"],
"no-extra-boolean-cast": ["off"],
"no-empty-function": ["error"],
"no-eval": ["error"],
"no-implied-eval": ["error"],
"no-extra-bind": ["error"],
"no-labels": ["error"],
"@typescript-eslint/no-magic-numbers": ["warn", { "ignore": [0, 1, -1, 10], "ignoreArrayIndexes": true, "ignoreEnums": true}],
"@typescript-eslint/camelcase": ["off"],
"@typescript-eslint/no-this-alias": ["error", {
"allowedNames": ["self"]
}],
"no-multi-spaces": ["error"],
"no-new-func": ["error"],
"no-octal-escape": ["error"],
"no-param-reassign": ["warn"],
"no-proto": ["error"],
"no-return-assign": ["error"],
"no-return-await": ["error"],
"no-throw-literal": ["error"],
"no-unused-expressions": ["error"],
"prefer-promise-reject-errors": ["error"],
"prefer-regex-literals": ["warn"],
"radix": ["error", "as-needed"],
"require-await": ["error"],
"strict": ["error"],
"init-declarations": ["warn"],
"no-label-var": ["error"],
"no-shadow": ["off"],
"no-use-before-define": ["error"],
"callback-return": ["error"],
"global-require": ["error"],
"array-bracket-spacing": ["error"],
"block-spacing": ["error"],
"comma-spacing": ["error"],
"comma-style": ["error", "last"],
"no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 0, "maxBOF": 1 }],
"func-call-spacing": ["error", "never"],
"func-style": ["error", "expression"],
"key-spacing": ["error", { "beforeColon": false, "afterColon": true }],
"keyword-spacing": ["error", { "before": true, "after": true }],
"max-depth": ["warn", 10],
"max-len": ["error", { "code": 210, "ignoreComments": true, "ignoreStrings": true }],
"max-lines": ["error", 600],
"max-params": ["warn", 12],
"max-statements-per-line": ["error", { "max": 1 }],
"multiline-comment-style": ["error", "separate-lines"],
"no-mixed-operators": ["warn"],
"no-tabs": ["error"],
"no-trailing-spaces": ["error"],
"no-unneeded-ternary": ["error"],
"no-whitespace-before-property": ["error"],
"semi-spacing": ["error"],
"semi": ["error", "always"],
"space-before-blocks": ["error"],
"switch-colon-spacing": ["error"],
"arrow-spacing": ["error"],
"no-duplicate-imports": ["error"],
"prefer-spread": ["error"],
"space-infix-ops": ["error"],
"object-shorthand": ["warn"],
"object-curly-spacing": ["warn", "always"]
}
}