-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
104 lines (104 loc) · 3.13 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
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "react"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:prettier/recommended",
"prettier"
],
"parserOptions": {
"project": "./tsconfig.json",
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"modules": true
}
},
"settings": {
"react": {
"version": "detect"
}
},
"ignorePatterns": ["styleTransformer.ts", "*.otf", "*.png"],
"rules": {
"max-len": [
"error",
{
"code": 200
}
],
"quotes": ["error", "single"],
"semi": ["error", "always"],
"comma-dangle": ["error", "never"],
"arrow-parens": "off",
"arrow-body-style": "off",
"curly": "error",
"complexity": ["error", 37],
"linebreak-style": ["error", "unix"],
"max-lines": ["error", 400],
"new-parens": "error",
"no-bitwise": "error",
"no-multiple-empty-lines": "error",
"no-console": "error",
"no-empty": "error",
"no-shadow": "off",
"@typescript-eslint/no-shadow": ["error"],
"no-trailing-spaces": [
"error",
{
"skipBlankLines": true,
"ignoreComments": true
}
],
"no-extra-semi": "error",
"no-unused-expressions": "error",
"no-var": "error",
"prefer-const": "error",
"prefer-spread": "error",
"prefer-template": "error",
"jsx-quotes": ["error", "prefer-double"],
"radix": "error",
"no-script-url": "error",
"no-constant-condition": "error",
"no-invalid-regexp": "error",
"valid-typeof": "error",
"sort-keys": "off",
"no-eval": "error",
"no-caller": "error",
"react/no-danger": "error",
"react/no-danger-with-children": "error",
"react/no-unused-prop-types": "error",
"react/prop-types": [0],
"react/jsx-no-target-blank": "error",
"react/jsx-indent": "off",
"react/jsx-curly-spacing": [
"error",
{
"when": "never"
}
],
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/consistent-type-definitions": [
"error",
"interface"
],
"@typescript-eslint/explicit-member-accessibility": "error",
"@typescript-eslint/no-var-requires": "off",
"no-magic-numbers": "off",
"@typescript-eslint/no-magic-numbers": [
"warn",
{
"ignoreEnums": true,
"ignore": [-2, -1, 0, 1, 2, 3, 4, 5]
}
]
}
}