-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy path.eslintrc.js
88 lines (84 loc) · 2.36 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
module.exports = {
parser: "@typescript-eslint/parser",
parserOptions: {
project: './tsconfig.json',
},
extends: [
"eslint:all",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
],
parserOptions: {
ecmaVersion: 2018,
sourceType: "module",
ecmaFeatures: {
jsx: true,
},
},
env: {
browser: true,
node: true,
es6: true,
},
rules: {
"indent": "off",
"@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"],
"@typescript-eslint/explicit-member-accessibility": ["error"],
"max-statements": ["error", 100],
"max-lines-per-function": ["error", 200],
"max-len": ["error", 120],
"max-lines": "off",
"padded-blocks": ["error", "never"],
"object-property-newline": "off",
"object-curly-newline": ["error", { "multiline": true, "consistent": true }],
"multiline-ternary": "off",
"function-call-argument-newline": ["error", "consistent"],
"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],
"no-sync": "off",
"default-case": "off",
"no-undef": "off",
"max-classes-per-file": "off",
"prefer-named-capture-group": "off",
"require-atomic-updates": "off",
"no-bitwise": "off",
"no-mixed-operators": "off",
"id-length": "off",
"no-continue": "off",
"no-warning-comments": "off",
"complexity": "off",
"max-lines-per-function": "off",
"implicit-arrow-linebreak": "off",
"sort-keys": "off",
"no-undefined": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"react/prop-types": "off",
"react/display-name": "off",
"array-element-newline": "off",
"default-param-last": "off",
"newline-per-chained-call": "off"
},
settings: {
react: {
version: "16.13.1",
},
},
};