-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy path.eslintrc.json
93 lines (92 loc) · 2.39 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
{
"extends": [
"airbnb",
"plugin:react/recommended"
],
"plugins": ["react"],
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true
},
"parser": "babel-eslint",
"parserOptions":{
"ecmaVersion": 10,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"semi": ["error", "always"],
"comma-dangle": ["error", {
"arrays": "always-multiline",
"objects": "always-multiline"
}],
"object-curly-spacing": ["error", "always"],
"no-multiple-empty-lines": ["error", {
"max": 1,
"maxEOF": 1
}],
"eol-last": ["error", "always"],
"indent": ["error", 4],
"no-param-reassign": ["warn"],
"arrow-body-style": ["error", "as-needed"],
"arrow-parens": ["warn", "as-needed", {
"requireForBlockBody": false
}],
"arrow-spacing": ["error", {
"before": true,
"after": true
}],
"constructor-super": "error",
"no-const-assign": "error",
"no-dupe-class-members": "error",
"no-duplicate-imports": "error",
"no-new-symbol": "error",
"no-this-before-super": "error",
"no-useless-computed-key": "error",
"no-useless-constructor": "warn",
"no-useless-rename": ["error", {
"ignoreDestructuring": false,
"ignoreImport": false,
"ignoreExport": false
}],
"no-var": "warn",
"prefer-arrow-callback": ["warn", {
"allowUnboundThis": true
}],
"prefer-const": ["error", {
"destructuring": "all",
"ignoreReadBeforeAssign": true
}],
"prefer-template": "error",
"require-yield": "error",
"rest-spread-spacing": ["error", "never"],
"template-curly-spacing": "error",
"yield-star-spacing": ["error", "after"],
"prefer-spread": "error",
"generator-star-spacing": ["error", {
"before": false,
"after": true
}],
"symbol-description": "error",
"max-len": ["error", { "code": 100 }],
"sort-keys": ["error", "asc"],
"react/no-danger": "error",
"react/jsx-pascal-case": "error",
"react/jsx-indent": ["error", 4],
"react/jsx-closing-bracket-location": "error",
"react/void-dom-elements-no-children": "error",
"react/jsx-tag-spacing": "error",
"react/jsx-no-literals": "error",
"react/jsx-wrap-multilines": "error",
"react/jsx-no-comment-textnodes": "error"
},
"settings": {
"react": {
"version": "latest"
}
}
}