-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.json
More file actions
40 lines (40 loc) · 1.02 KB
/
.eslintrc.json
File metadata and controls
40 lines (40 loc) · 1.02 KB
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
{
"extends": "airbnb",
"parser": "babel-eslint",
"plugins": [
"react",
"import"
],
"rules": {
"indent": ["error", 4, {
"SwitchCase": 1,
"FunctionDeclaration": {
"parameters": 1,
"body": 1
},
"FunctionExpression": {
"parameters": 1,
"body": 1
}
}],
"max-len": ["error", 120, 4, {
"ignoreUrls": true,
"ignoreComments": false,
"ignoreRegExpLiterals": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true
}],
"no-restricted-syntax": ["error", "LabeledStatement", "WithStatement"],
"quotes": ["error", "single"],
"react/jsx-curly-spacing": ["error", "always"],
"react/jsx-indent": ["error", 4],
"react/jsx-indent-props": ["error", 4],
"react/prefer-stateless-function": ["off", { "ignorePureComponents": false }],
"import/prefer-default-export": "off",
"react/jsx-handler-names": ["warn", {
"eventHandlerPrefix": "handle",
"eventHandlerPropPrefix": "on"
}],
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }]
}
}