-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
90 lines (84 loc) · 2.26 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
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly",
"React": "readonly",
"axios": "readonly",
"_": "readonly"
},
"parserOptions": {
"ecmaVersion": 2022,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"indent": [
"error",
2
],
"linebreak-style": [
"error",
"unix"
],
"react/prop-types": 0,
"computed-property-spacing": [ 2, "never" ],
"no-multi-spaces": [ 2, { "ignoreEOLComments": true } ],
"space-before-blocks": 2,
"space-before-function-paren": [ 2, { "asyncArrow": "always", "named": "never", "anonymous": "never" } ],
"spaced-comment": [ 2, "always", { "exceptions": [ "-", "*", "=" ] } ],
"semi-spacing": 2,
"brace-style": [ 2, "stroustrup", { "allowSingleLine": true } ],
"no-trailing-spaces": 2,
"eol-last": [ 2, "never" ],
"lines-around-comment": [ 2, {
"afterBlockComment": false,
"beforeLineComment": true,
"afterLineComment": false
} ],
"array-bracket-spacing": [ 2, "always" ],
"block-spacing": [ 2, "always" ],
"comma-spacing": [ 2, { "before": false, "after": true } ],
"key-spacing": 2,
"keyword-spacing": [ 2, { "overrides": { "catch": { "after": false } } } ],
"object-curly-spacing": [ 2, "always" ],
"space-in-parens": [ 2, "never" ],
"func-call-spacing": [ 2, "never" ],
"template-curly-spacing": [ 2, "never" ],
"no-unused-vars": [ 2, { "args": "none" } ],
"comma-dangle": 2,
"semi": [ 2, "always" ],
"prefer-const": [ 2, {
"destructuring": "any",
"ignoreReadBeforeAssign": false
} ],
"eqeqeq": 2,
"no-caller": 2,
"no-new-func": 2,
"dot-notation": 2,
"no-var": 2,
"no-template-curly-in-string": 2,
"no-extend-native": 2,
"no-return-assign": 2,
"no-useless-call": 2,
"no-undef-init": 2,
"one-var": [ 2, "never" ],
"radix": 2,
"default-case": 2,
"object-shorthand": 2,
"import/no-webpack-loader-syntax": 0,
"quotes": [ 2, "single" ],
"quote-props": [ 2, "consistent-as-needed" ],
"padded-blocks": 0
}
}