-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
51 lines (47 loc) · 1.33 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
module.exports = {
parser: "@typescript-eslint/parser",
extends: [
"eslint:all",
"plugin:@typescript-eslint/recommended"
],
parserOptions: {
ecmaVersion: 2018,
sourceType: "module"
},
env: {
browser: true,
node: true,
es6: true
},
rules: {
"@typescript-eslint/indent": ["error", 2],
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-explicit-any": "off",
"no-extra-parens": "off",
"@typescript-eslint/no-extra-parens": ["error"],
"max-statements": ["error", 100],
"max-lines-per-function": ["error", 200],
"max-len": ["error", 120],
"padded-blocks": ["error", "never"],
"object-property-newline": "off",
"object-curly-newline": ["error", { "multiline": true, "consistent": true }],
"multiline-ternary": "off",
"no-console": "off",
"no-process-env": "off",
"quote-props": ["error", "consistent-as-needed"],
"one-var": "off",
"no-ternary": "off",
"no-confusing-arrow": "off",
"no-await-in-loop": "off",
"no-magic-numbers": "off",
"no-new": "off",
"require-await": "off",
"class-methods-use-this": "off",
"@typescript-eslint/camelcase": "off",
"global-require": "off",
"callback-return": "off",
"no-plusplus": "off",
"max-params": ["error", 6],
"default-case": "off"
}
};