-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
64 lines (62 loc) · 1.78 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
{
"env": {
"browser": true,
"node": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": 6,
"allowImportExportEverywhere": false,
"ecmaFeatures": {
"jsx": true
}
},
"plugins": [
"react",
"react-hooks",
"security"
],
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:security/recommended"
],
"parser": "babel-eslint",
"rules": {
"camelcase": "error",
"prefer-const": [
"error",
{
"destructuring": "any",
"ignoreReadBeforeAssign": false
}
],
"no-var": ["error"],
"no-unused-vars": ["warn"],
"linebreak-style": ["error", "unix"],
"indent": ["error", 2],
"quotes": ["error", "single"],
"no-empty-function": "error",
"no-unsafe-finally": "off",
"brace-style": ["error", "allman"],
"semi": ["error", "always"],
"prefer-arrow-callback": "error",
"no-console": ["warn", { "allow": ["warn", "error"] }],
"space-before-function-paren": ["error", "never"],
"space-in-parens": ["error", "never"],
"object-curly-spacing": ["error", "always"],
"computed-property-spacing": ["error", "never"],
"array-bracket-spacing": ["error", "always"],
"comma-spacing": ["error", { "before": false, "after": true }],
"comma-dangle": ["error", "never"],
"arrow-spacing": ["error", { "before": true, "after": true }],
"func-call-spacing": ["error", "never"],
"key-spacing": ["error", { "afterColon": true }],
"keyword-spacing": ["error", { "before": true, "after": true }],
"no-trailing-spaces": ["error", { "skipBlankLines": true }],
"react/display-name": [ 0 ],
"react/jsx-curly-spacing": [ 2, "always" ],
"jsx-quotes": ["error", "prefer-single"]
}
}