forked from lrezek/rapport-router
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
97 lines (79 loc) · 2.67 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
{
"env": {
"es6": true,
"node": true,
"browser": true,
"mocha": true
},
"extends": "eslint:recommended",
"rules": {
// 1. Objects
"no-new-object": 2,
"quote-props": [2, "as-needed"],
// 2. Arrays
"no-array-constructor": 2,
// 3. Strings
"quotes": [2, "single"],
"prefer-template": 2,
"template-curly-spacing": [2, "never"],
// 4. Functions
"func-style": [2, "declaration", { "allowArrowFunctions": true }],
"no-loop-func": 2,
"prefer-rest-params": 2,
"no-param-reassign": 2,
// 5. Arrow Functions
"prefer-arrow-callback": 2,
"arrow-spacing": [2, { "before": true, "after": true }],
"arrow-parens": [2, "always"],
"arrow-body-style": [2, "always"],
"no-confusing-arrow": 2,
// 6. Constructors
"no-useless-constructor": 2,
// 7. Iterators and Generators
"no-iterator": 2,
// 8. Properties
"dot-notation": [2, { "allowKeywords": true }],
"key-spacing": [2, { "beforeColon": false, "afterColon": true, "mode": "minimum" }],
// 9. Variables
"no-var": 2,
"one-var": [2, "never"],
"prefer-const": 2,
// 10. Comparison Operators and Equality
"eqeqeq": 2,
"no-case-declarations": 2,
"no-nested-ternary": 2,
"no-unneeded-ternary": 2,
// 11. Blocks
"curly": ["error", "multi-line", "consistent"],
"brace-style": [2, "1tbs", { "allowSingleLine": false }],
// 12. Comments
// No rules to enforce.
// 13. Whitespace
"indent": [2, 4],
"space-before-blocks": [2, "always"],
"keyword-spacing": [2, { "before": true, "after": true }],
"space-infix-ops": 2,
"eol-last": 2,
//"newline-per-chained-call": [2, { "ignoreChainWithDepth": 2 }],
"no-whitespace-before-property": 2,
"space-in-parens": [2, "never"],
"array-bracket-spacing": [2, "never"],
"object-curly-spacing": [2, "always"],
// 14. Commas
"comma-style": [2, "last"],
"comma-dangle": [1, "only-multiline"],
// 15. Semicolons
"semi": [2, "always"],
// 16. Naming Conventions
"camelcase": [2, { "properties": "never" }],
//"new-cap": 1,
// 17. Accessors
// No rules to enforce.
// 18. jQuery
// No rules to enforce.
// Other
"strict": [2, "global"],
"linebreak-style": [2, "unix"],
"no-unused-vars": [2, { "vars": "all", "args": "none", "varsIgnorePattern": "logger|config|_" }]
}
}