-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.json
46 lines (46 loc) · 1.29 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
{
"extends": [
"react-app",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"plugin:testcafe/recommended"
],
"ignorePatterns": ["**/generatedTypes/*", "**/generated/*"],
"rules": {
"@typescript-eslint/brace-style": [
"error",
"1tbs",
{ "allowSingleLine": true }
],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/func-call-spacing": ["error"],
"@typescript-eslint/member-ordering": "warn",
"@typescript-eslint/no-require-imports": "error",
"@typescript-eslint/consistent-type-imports": "error",
"react/no-unused-prop-types": ["warn", { "skipShapeProps": true }],
"array-bracket-spacing": ["warn", "never"],
"import/order": [
"error",
{
"groups": [
"builtin",
"external",
["internal", "parent", "sibling", "index"]
],
"newlines-between": "always"
}
],
"max-len": ["warn", { "code": 120 }],
"no-console": "warn",
"no-plusplus": "error",
"no-undef": "warn",
"object-curly-spacing": ["warn", "always"]
},
"globals": {
"TestController": true
}
}