forked from mynameistechno/finderjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
61 lines (56 loc) · 1.65 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
// we only override defaults or enable turned off rules here
// http://eslint.org/docs/rules/
{
"rules": {
// possible errors
"no-extra-parens": 1,
// strict mode
"strict": [2, "global"],
// best practices
"block-scoped-var": 2,
"guard-for-in": 2,
"no-else-return": 2,
"no-param-reassign": 2,
"no-self-compare": 2,
"no-throw-literal": 2,
"radix": 2,
"vars-on-top": 2,
"no-undefined": 2,
"no-unused-vars": [1, {"vars": "all", "args": "after-used"}],
"no-unused-expressions": 0,
// style rules
"camelcase": 0,
"brace-style": [2, "1tbs", { "allowSingleLine": true }],
"comma-style": [1, "last"],
"consistent-this": [1, "_this"],
"func-names": 1,
"func-style": [1, "declaration"],
"no-lonely-if": 1,
"no-multiple-empty-lines": 1,
"no-nested-ternary": 1,
"one-var": [1, "never"],
"object-curly-spacing": [1, "never"],
"operator-linebreak": [1, "after"],
"quote-props": [1, "as-needed"],
"space-after-keywords": [1, "always"],
"space-before-blocks": [1, "always"],
"space-before-function-paren": [1, {"anonymous": "always", "named": "never"}],
"space-in-parens": [1, "never"],
"space-unary-ops": [1, {"words": true, "nonwords": false}],
"spaced-comment": [1, "always"],
"quotes": [1, "single", "avoid-escape"],
"semi": [1, "always"],
"no-trailing-spaces": 1,
"no-mixed-spaces-and-tabs": 1,
"no-multiple-empty-lines": [1, {max: 2}],
"indent": [2, 2, {"SwitchCase": 1}],
"eol-last": 1,
// legacy
"max-depth": [1, 3],
"max-len": [1, 80, 4],
"max-params": [1, 5]
},
"env": {
"node": true
}
}