-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
36 lines (36 loc) · 1.33 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
{
"env": {
"commonjs": true,
"es6": true,
"node": true
},
"extends": [
"eslint:recommended"
],
"parser": "babel-eslint",
"rules": {
"semi": ["error", "never"],
"no-tabs": [ "error" ],
"indent": [ "error", 2, { "SwitchCase": 1 } ],
"linebreak-style": [ "error", "unix" ],
"func-call-spacing": [ "error", "never" ],
"space-before-function-paren": [ "error", "always" ],
"space-before-blocks": [ "error", "always" ],
"padded-blocks": [ "error", "never" ],
"brace-style": [ "error", "stroustrup", { "allowSingleLine": true } ],
"keyword-spacing": [ "error", { "before": true, "after": true } ],
"space-infix-ops": [ "error" ],
"space-unary-ops": [ "error", { "words": true, "nonwords": false } ],
"comma-spacing": [ "error", { "before": false, "after": true } ],
"no-whitespace-before-property": [ "error" ],
"dot-location": [ "error", "property" ],
"no-confusing-arrow": [ "error", { "allowParens": true } ],
"arrow-spacing": [ "error", { "before": true, "after": true } ],
"no-duplicate-imports": [ "error" ],
"eqeqeq": [ "error", "smart" ],
"getter-return": [ "error" ],
"template-curly-spacing": [ "error", "never" ],
"prefer-template": [ "error" ],
"no-unused-vars": ["error", { "varsIgnorePattern": "^_", "argsIgnorePattern": "^_" }]
}
}