-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.js
41 lines (40 loc) · 1.2 KB
/
index.js
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
// nr = not as per eslint:recommended
module.exports = {
"extends": ["eslint:recommended"],
"rules": {
"comma-spacing": 2, // nr
"eol-last": 2, // nr
"eqeqeq": [2, "always", { "null": "ignore" }], // nr
"indent": [2, "tab", { "SwitchCase": 1 }], // nr
"keyword-spacing": 2,
"linebreak-style": ["error", "unix"], // nr
"new-parens": 2, // nr
"no-debugger": 2,
"no-dupe-args": 2,
"no-dupe-keys": 2,
"no-duplicate-case": 2,
"no-ex-assign": 2,
"no-fallthrough": 2,
"no-invalid-this": 2, // nr
"no-multiple-empty-lines": [2, {"max": 1}], // nr
"no-multi-spaces": 2, // nr
"no-new-wrappers": 2, // nr
"no-trailing-spaces": 2, // nr
"no-undef": 2,
"no-unneeded-ternary": 2, // nr
"no-unreachable": 2,
"no-unused-vars": [2, {"vars": "all", "args": "after-used"}],
"no-use-before-define": [2, "nofunc"], // nr
"no-var": 2, // nr
"object-curly-spacing": [2, "always"],
"prefer-const": 2, // nr
"quotes": [2, "single", "avoid-escape"], // nr
"semi": 2, // nr
"space-before-blocks": [2, "always"], // nr
"space-before-function-paren": [2, "never"], //nr
"space-in-parens": [2, "never"],
"space-infix-ops": 2, // nr
"strict": [2, "global"], // nr
"valid-typeof": 2
}
};