-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc
72 lines (72 loc) · 2.56 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
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true,
},
"extends": ["eslint:recommended", "plugin:react/jsx-runtime", "plugin:@typescript-eslint/recommended"],
"parserOptions": {
"ecmaVersion": 2019,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
},
},
"rules": {
"array-bracket-spacing": ["warn", "never"],
"brace-style": "warn",
"camelcase": ["warn", {"properties": "never"}],
"comma-dangle": ["warn", "always-multiline"],
"comma-spacing": ["warn", {"before": false, "after": true}],
"curly": ["warn"],
"no-debugger": ["warn"],
"eol-last": ["error"],
"eqeqeq": ["warn", "smart"],
"indent": ["error", 2, {"SwitchCase": 1, "flatTernaryExpressions": true}],
"key-spacing": ["warn"],
"keyword-spacing": ["warn", {"overrides": {
"if": { "after": false },
"for": { "after": false },
"while": { "after": false },
"switch": { "after": false },
}}],
"linebreak-style": ["error", "unix"],
"no-console": ["warn", {"allow": ["warn", "error", "debug"]}],
"no-empty": ["warn"],
"no-multi-spaces": ["warn"],
"no-redeclare": ["warn"],
"no-trailing-spaces": ["warn"],
"no-unused-vars": ["off"],
"@typescript-eslint/no-unused-vars": ["warn", {"args": "none"}],
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": ["warn", "nofunc"],
"no-var": ["error"],
"object-curly-spacing": ["warn", "always"],
"prefer-const": ["warn"],
"quotes": ["off", "double"],
"react/prop-types": ["off"],
"semi-spacing": ["warn", {"before": false, "after": true}],
"semi": ["warn", "always"],
"space-before-blocks": ["off"],
"space-before-function-paren": ["warn", {"anonymous": "always", "named": "never"}],
"space-in-parens": ["warn", "never"],
"space-infix-ops": ["warn"],
"@typescript-eslint/ban-ts-comment": ["error", "allow-with-description"],
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-explicit-any": "off",
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off",
},
"plugins": [
"react",
"@typescript-eslint",
],
"settings": {
"react": {
"version": "detect",
},
},
"root": true,
}