-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslintrc.json
48 lines (48 loc) · 1.08 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
{
"extends": ["eslint:recommended", "plugin:react/recommended"],
"parser": "babel-eslint",
"plugins": [
"react"
],
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": {
"blockBindings": true,
"forOf": true,
"jsx": true
}
},
"globals": {
"document": true,
"window": true,
"$": true,
"Handlebars": true
},
"env": {
"node": true,
"browser": true,
"mocha": true,
"es6": true,
"jest": true
},
"rules": {
"semi": [2, "always"],
"new-parens": [0],
"no-shadow": [0],
"no-mixed-requires": [0],
"no-underscore-dangle": [0],
"quotes": [2, "single"],
"indent": ["error", 2, { "VariableDeclarator": {"var": 2, "let": 2, "const": 3}, "SwitchCase": 1}],
"no-console": [2, { "allow": ["warn", "error"] }],
"valid-jsdoc": [2, {
"requireReturn": false,
"requireReturnDescription": false,
"requireParamDescription": false
}],
"keyword-spacing": "error",
"space-before-blocks": "error",
"comma-dangle": ["error", {
"objects": "always-multiline"
}]
}
}