1 | {
|
2 | "extends": "eslint:recommended",
|
3 | "rules": {
|
4 | "no-alert": 2,
|
5 | "no-array-constructor": 2,
|
6 | "no-caller": 2,
|
7 | "no-catch-shadow": 2,
|
8 | "no-console": 0,
|
9 | "no-extend-native": 2,
|
10 | "no-extra-bind": 2,
|
11 | "no-implied-eval": 2,
|
12 | "no-iterator": 2,
|
13 | "no-label-var": 2,
|
14 | "no-labels": 2,
|
15 | "no-lone-blocks": 2,
|
16 | "no-loop-func": 2,
|
17 | "no-multi-str": 2,
|
18 | "no-native-reassign": 2,
|
19 | "no-new": 2,
|
20 | "no-new-func": 2,
|
21 | "no-new-object": 2,
|
22 | "no-new-wrappers": 2,
|
23 | "no-octal-escape": 2,
|
24 | "no-process-exit": 0,
|
25 | "no-proto": 2,
|
26 | "no-return-assign": 2,
|
27 | "no-script-url": 2,
|
28 | "no-sequences": 2,
|
29 | "no-shadow": 2,
|
30 | "no-shadow-restricted-names": 2,
|
31 | "no-spaced-func": 2,
|
32 | "no-trailing-spaces": 0,
|
33 | "no-undef-init": 2,
|
34 | "no-unused-expressions": 2,
|
35 | "no-with": 2,
|
36 | "camelcase": 2,
|
37 | "comma-spacing": 2,
|
38 | "consistent-return": 2,
|
39 | "eqeqeq": 2,
|
40 | "semi": 2,
|
41 | "semi-spacing": [2, {"before": false, "after": true}],
|
42 | "space-infix-ops": 2,
|
43 | "space-unary-ops": [2, { "words": true, "nonwords": false }],
|
44 | "yoda": [2, "never"],
|
45 | "brace-style": [2, "stroustrup", { "allowSingleLine": false }],
|
46 | "eol-last": 2,
|
47 | "indent": 2,
|
48 | "key-spacing": [2, { "align": "value" }],
|
49 | "max-nested-callbacks": [2, 3],
|
50 | "new-parens": 2,
|
51 | "newline-after-var": [2, "always"],
|
52 | "no-lonely-if": 2,
|
53 | "no-multiple-empty-lines": [2, { "max": 2 }],
|
54 | "no-nested-ternary": 2,
|
55 | "no-underscore-dangle": 0,
|
56 | "no-unneeded-ternary": 2,
|
57 | "object-curly-spacing": [2, "always"],
|
58 | "operator-assignment": [2, "always"],
|
59 | "quotes": [2, "single", "avoid-escape"],
|
60 | "keyword-spacing": 2,
|
61 | "space-before-blocks": [2, "always"],
|
62 | "prefer-const": 2,
|
63 | "no-path-concat": 2,
|
64 | "no-undefined": 2,
|
65 | "strict": 0,
|
66 | "curly": [2, "multi-or-nest"],
|
67 | "dot-notation": 0,
|
68 | "no-else-return": 2,
|
69 | "one-var": [2, "never"],
|
70 | "no-multi-spaces": [2, {
|
71 | "exceptions": {
|
72 | "VariableDeclarator": true,
|
73 | "AssignmentExpression": true
|
74 | }
|
75 | }],
|
76 | "radix": 2,
|
77 | "no-extra-parens": 2,
|
78 | "new-cap": [2, { "capIsNew": false }],
|
79 | "space-before-function-paren": [2, "always"],
|
80 | "no-use-before-define" : [2, "nofunc"],
|
81 | "handle-callback-err": 0
|
82 | },
|
83 | "env": {
|
84 | "node": true,
|
85 | "es6": true
|
86 | }
|
87 | }
|