-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
47 lines (45 loc) · 1.49 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
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": [
"react",
"@typescript-eslint"
],
"rules": {
"semi": ["error", "never"],
"quotes": ["error", "single"],
"jsx-quotes": ["error", "prefer-single"],
"prefer-const": "error",
"no-var": "error",
"indent": ["error", 2],
"prefer-arrow-callback": "error",
"no-duplicate-imports": "error",
"object-curly-spacing": ["error", "always"],
"no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 0 }],
"comma-dangle": ["error", "never"],
"react/jsx-closing-bracket-location": [2, "tag-aligned"],
"react/jsx-curly-spacing": ["error", { "when": "never", "children": true }],
"react/jsx-indent": ["error", 2],
"react/jsx-indent-props": ["error", 2],
"react/jsx-space-before-closing": [2, "always"],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-non-null-assertion": "off"
}
}