-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc
101 lines (101 loc) · 3.35 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
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
{
"parser": "@typescript-eslint/parser",
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended"
],
"plugins": [
"@typescript-eslint",
"react"
],
"env": {
"browser": true,
"commonjs": true,
"node": true,
"es6": true
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018
},
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"@typescript-eslint/array-type": ["error", {
"default": "array"
}],
"@typescript-eslint/ban-ts-ignore": "off",
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/class-name-casing": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-member-accessibility": ["error", {
"overrides": {
"constructors": "off"
}
}],
"@typescript-eslint/indent": ["error", 4, {
"flatTernaryExpressions": false,
"SwitchCase": 1
}],
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/member-ordering": [
"error",
{
"default": [
"public-static-field",
"protected-static-field",
"private-static-field",
"public-static-method",
"protected-static-method",
"private-static-method",
"public-instance-field",
"protected-instance-field",
"private-instance-field",
"constructor",
"public-instance-method",
"protected-instance-method",
"private-instance-method"
]
}
],
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-floating-promises": "off",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-object-literal-type-assertion": "off",
"@typescript-eslint/no-parameter-properties": "off",
"@typescript-eslint/no-this-alias": "off",
"@typescript-eslint/no-unused-vars": ["error", {
"args": "none",
"ignoreRestSiblings": true
}],
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/semi": "error",
"eqeqeq": ["error", "always"],
"linebreak-style": "off",
"no-alert": "error",
"no-bitwise": "error",
"no-console": "error",
"no-const-assign": "error",
"no-debugger": "error",
"no-multiple-empty-lines": ["error", { "max": 1 }],
"no-unreachable": "warn",
"no-var": "error",
"nonblock-statement-body-position": ["error", "below"],
"one-var": ["error", "never"],
"prefer-arrow-callback": "error",
"prefer-const": "error",
"prefer-rest-params": "off",
"react/jsx-uses-vars": "error",
"react/no-find-dom-node": "off",
"react/no-unescaped-entities": "off",
"react/prop-types": "off",
"semi": "off"
}
}