This repository has been archived by the owner on Nov 12, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
66 lines (66 loc) · 2.15 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
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true,
"mocha": true
},
"extends": "eslint:recommended",
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"impliedStrict": true
}
},
"rules": {
"indent": [ 2, "tab" ],
"linebreak-style": [ 2, "unix" ],
"quotes": [ 2, "single" ],
"semi": [ 2, "always" ],
"curly": 2,
"brace-style": [2, "1tbs" ],
"camelcase": [ 2, { "properties": "always" } ],
"comma-spacing": [ 2, { "before": false, "after": true } ],
"comma-style": [ 2, "last" ],
"key-spacing": [ 2, { "mode": "strict", "beforeColon": false, "afterColon": true } ],
"keyword-spacing": 2,
"block-spacing": 2,
"array-bracket-spacing": [ 2, "always" ],
"object-curly-spacing": [ 2, "always" ],
"computed-property-spacing": [ 2, "always" ],
"space-in-parens": [ 2, "always" ],
"space-before-function-paren": [ 2, "never" ],
"generator-star-spacing": [ 2, "after" ],
"yield-star-spacing": [ 2, "after" ],
"space-infix-ops": 2,
"space-unary-ops": 2,
"spaced-comment": [ 2, "always" ],
"arrow-spacing": [2, { "before": true, "after": true } ],
"arrow-parens": [ 2, "always" ],
"arrow-body-style": [ 2, "always" ],
"no-trailing-spaces": 2,
"no-multiple-empty-lines": [ 2, { "max": 1 } ],
"eol-last": 2,
"valid-jsdoc": 2,
"no-implicit-coercion": [ 2, { "allow": [ "!!" ] } ],
"no-native-reassign": 2,
"wrap-iife": [ 2, "outside" ],
"yoda": [ 2, "never" ],
"prefer-arrow-callback": 2,
"prefer-const": 2,
"no-var": 2,
"prefer-template": 2,
"prefer-rest-params": 2,
"prefer-spread": 2,
"object-shorthand": [ 2, "always" ],
"no-array-constructor": 2,
"no-new-object": 2,
"new-cap": 2,
"new-parens": 2,
"no-lonely-if": 2,
"no-use-before-define": 2,
"no-with": 2,
"eqeqeq": [ 2, "smart" ]
}
}