-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.eslintrc.json
173 lines (173 loc) · 5.11 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"jsx": true,
"useJSXTextNode": true
},
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:prettier/recommended",
"eslint:recommended",
"prettier",
"plugin:ramda/recommended"
],
"rules": {
"@typescript-eslint/ban-types": 1,
"prettier/prettier": [
"error",
{
"singleQuote": true,
"parser": "typescript",
"arrowParens": "avoid"
}
],
"@typescript-eslint/no-use-before-define": "off",
"template-curly-spacing": "warn",
"no-sequences": "error",
"spaced-comment": ["error", "always"],
"key-spacing": [
"error",
{
"mode": "strict"
}
],
"max-len": [
"error",
{
"code": 85
}
],
"max-lines": [
"error",
{
"max": 350,
"skipBlankLines": true
}
],
"prefer-const": [
"error",
{
"destructuring": "all"
}
],
"no-var": "error",
"newline-before-return": "error",
"arrow-parens": ["error", "as-needed"],
"no-bitwise": "error",
"max-classes-per-file": "error",
"no-duplicate-imports": "error",
"lines-between-class-members": ["error", "always"],
"padding-line-between-statements": [
"error",
{
"blankLine": "always",
"prev": "*",
"next": "return"
}
],
"sort-imports": [
"error",
{
"ignoreCase": true,
"ignoreDeclarationSort": true,
"ignoreMemberSort": true,
"memberSyntaxSortOrder": ["none", "all", "multiple", "single"]
}
],
"no-irregular-whitespace": "error",
"space-before-blocks": "error",
"no-multi-spaces": "error",
"no-trailing-spaces": "error",
"no-whitespace-before-property": "error",
"curly": "error",
"no-undef": "off",
"no-case-declarations": "off",
"indent": "off",
"no-unused-vars": ["off"],
"no-console": [
"error",
{
"allow": ["log", "error"]
}
],
"comma-dangle": ["error", "never"],
"semi": ["error", "never"],
"no-multiple-empty-lines": [
"error",
{
"max": 1
}
],
"quotes": ["error", "single"],
"eol-last": ["error", "always"],
"no-new-wrappers": "error",
"arrow-spacing": [
"error",
{
"after": true,
"before": true
}
],
"object-curly-spacing": ["error", "always"],
"react/jsx-closing-bracket-location": [
1,
{
"selfClosing": "line-aligned",
"nonEmpty": "after-props"
}
],
"react/prop-types": "off",
"react/display-name": "off",
"react/jsx-boolean-value": "off",
"react/jsx-wrap-multilines": "off",
"react/no-unescaped-entities": "off",
"prefer-arrow/prefer-arrow-functions": [
"warn",
{
"disallowPrototype": true,
"singleReturnOnly": true,
"classPropertiesAllowed": false
}
],
"@typescript-eslint/no-unused-vars": [
"error",
{
"ignoreRestSiblings": true
}
],
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/member-ordering": [
"error",
{
"classes": [
"public-static-field",
"public-instance-field",
"private-static-field",
"private-instance-field",
"private-constructor",
"public-constructor",
"private-instance-method",
"protected-instance-method",
"public-instance-method"
]
}
],
"@typescript-eslint/prefer-interface": "off",
"@typescript-eslint/explicit-member-accessibility": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-object-literal-type-assertion": "off",
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/array-type": "off",
"@typescript-eslint/explicit-function-return-type": "off"
},
"plugins": ["react", "prefer-arrow", "@typescript-eslint", "ramda", "eslint-plugin-prettier"],
"settings": {
"react": {
"pragma": "React",
"version": "16.8.6"
}
}
}