-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
40 lines (39 loc) · 1.4 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
// Use this file as a starting point for your project's .eslintrc.
// Copy this file, and add rule overrides as needed.
{
"extends": "eslint-config-airbnb",
"ecmaFeatures": {
},
"env": {
"browser": true,
"node": true
},
"rules": {
"arrow-body-style": [1, "as-needed"],
"prefer-arrow-callback": 0,
"prefer-template": 1,
"max-len": [2, 120, 2, {
"ignoreUrls": true,
"ignoreComments": false
}],
"no-var": 0, // http://eslint.org/docs/rules/no-var
"comma-dangle": [2, "never"], // http://eslint.org/docs/rules/comma-dangle
"padded-blocks": [1, "never"], // http://eslint.org/docs/rules/padded-blocks
"no-sparse-arrays": 1, // http://eslint.org/docs/rules/no-sparse-arrays
"dot-notation": [2, { // http://eslint.org/docs/rules/dot-notation
"allowKeywords": true,
"allowPattern": "^_?[a-z]+(_[a-z]+)+$"
}],
"no-param-reassign": 0,
"no-nested-ternary": 1,
"no-shadow": 1,
"new-cap": 1,
"consistent-return": 1,
"no-loop-func": 1,
"no-unused-vars": [1, { // http://eslint.org/docs/rules/no-unused-vars
"vars": "local",
"args": "after-used"
}],
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }]
}
}