-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
78 lines (76 loc) · 2.25 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
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
67
68
69
70
71
72
73
74
75
76
77
78
{
"env": {
"browser": true,
"es6": true,
"mocha": true,
"node": true
},
"plugins": [
"html"
],
"settings": {
"html/html-extensions": [".html", ".tag"],
"html/indent": "+2",
"html/report-bad-indent": "error",
"html/javascript-mime-types": ["", "text/javascript", "text/jsx", "es6"],
},
"extends": [
"eslint:recommended"
],
"parserOptions": {
"sourceType": "module"
},
"rules": {
"eqeqeq": [2, "smart"],
"indent": [2, 2],
"no-bitwise": [2, { "allow": ["|"] }],
"linebreak-style": [2, "unix"],
"no-cond-assign": "off",
"no-console": "off",
"no-unexpected-multiline": "error",
"quotes": [2, "single", "avoid-escape"],
"semi": [2, "never"],
"no-case-declarations": 0,
"array-bracket-spacing": [2, "never"],
"arrow-body-style": [2, "as-needed"],
"arrow-parens": [2, "as-needed"],
"arrow-spacing": [2, { "before": true, "after": true }],
"block-spacing": [2, "always"],
"brace-style": [2, "1tbs", { "allowSingleLine": true }],
"camelcase": [2, { "properties": "always" }],
"curly": 2,
"comma-spacing": [2, { "before": false, "after": true }],
"computed-property-spacing": [2, "never"],
"eol-last": [2, "unix"],
"func-call-spacing": [2, "never"],
"key-spacing": [2, { "mode": "strict", "afterColon": true }],
"keyword-spacing": [2, { "before": true, "after": true }],
"lines-around-comment": [2, { "beforeBlockComment": true }],
"max-depth": [2, 4],
"max-nested-callbacks": [2, 3],
"new-cap": ["error", { "newIsCap": true }],
"no-trailing-spaces": 2,
"no-unused-vars": [2, {"vars": "all", "args": "after-used", "argsIgnorePattern": "^_"}],
"no-var": 2,
"no-whitespace-before-property": 2,
"object-curly-spacing": [2, "always"],
"prefer-arrow-callback": 2,
"prefer-const": 2,
"quote-props": [2, "as-needed"],
"semi-spacing": [2, {"before": false, "after": true}],
"space-before-blocks": 2,
"space-before-function-paren": [2, "never"],
"space-in-parens": [2, "never"],
"space-infix-ops": 2,
"spaced-comment": [2, "always"],
},
"globals": {
"expect": true,
"chai": true,
"riot": true,
"route": true,
"opts": true,
"$": true,
"BUILD_ENV": true
}
}