1 | {
|
2 | "env": {
|
3 | "node": true,
|
4 | "mocha": true
|
5 | },
|
6 |
|
7 | "rules": {
|
8 | "no-trailing-spaces": 2,
|
9 | "indent": [2, 2, {
|
10 | "SwitchCase": 1
|
11 | }],
|
12 | "curly": 0,
|
13 | "eqeqeq": 2,
|
14 | "no-eq-null": 2,
|
15 | "quotes": 0,
|
16 | "strict": 0,
|
17 |
|
18 | "consistent-this": 0,
|
19 | "no-undef": 2,
|
20 | "dot-notation": 0,
|
21 | "space-infix-ops": 0,
|
22 | "space-unary-ops": 0,
|
23 | "no-underscore-dangle": 0,
|
24 | "no-unused-vars": 2,
|
25 | "comma-dangle": 0,
|
26 | "semi-spacing": 0,
|
27 | "consistent-return": 0,
|
28 | "camelcase": 0,
|
29 | "eol-last": 0,
|
30 | "no-multi-spaces": 0,
|
31 | "no-extra-boolean-cast": 0,
|
32 | "no-use-before-define": 0,
|
33 | "no-extra-bind": 0,
|
34 | "no-eq-null": 0,
|
35 | "no-shadow": 0,
|
36 | "no-shadow-restricted-names": 0,
|
37 | "no-alert": 0,
|
38 | "no-empty": 0,
|
39 |
|
40 | // Bah, this is really useful but we can't turn this on because of chai.
|
41 | //
|
42 | // See https://github.com/eslint/eslint/issues/2102
|
43 | //
|
44 | // Maybe use that chai-lint package someday? so many tests to modify...
|
45 | "no-unused-expressions": 0,
|
46 |
|
47 | "no-console": 0,
|
48 | "space-return-throw-case": 0,
|
49 |
|
50 | "one-var": [2, {
|
51 | "initialized": "never"
|
52 | }],
|
53 |
|
54 | "no-cond-assign": [2, "except-parens"],
|
55 | "no-debugger": 2,
|
56 | "no-dupe-args": 2,
|
57 | "no-dupe-keys": 2,
|
58 | "no-duplicate-case": 2,
|
59 | "no-empty": 2,
|
60 | "no-extra-semi": 0,
|
61 | "no-func-assign": 2,
|
62 | "no-inner-declarations": 2,
|
63 | "no-irregular-whitespace": 2,
|
64 | "no-negated-in-lhs": 2,
|
65 | "no-sparse-arrays": 2,
|
66 | "no-unreachable": 2,
|
67 | "use-isnan": 2,
|
68 | "no-caller": 2,
|
69 | "no-else-return": 0,
|
70 | "no-eval": 2,
|
71 | "no-implied-eval": 2,
|
72 | "no-extend-native": 2,
|
73 | "no-fallthrough": 2,
|
74 | "no-lone-blocks": 2,
|
75 | "no-loop-func": 2,
|
76 | "no-new": 2,
|
77 | "no-redeclare": 2,
|
78 | "no-return-assign": [2, "always"],
|
79 | "no-sequences": 2,
|
80 | "radix": 2,
|
81 | "wrap-iife": [2, "any"],
|
82 | "no-undef-init": 2,
|
83 | "no-delete-var": 2,
|
84 | "no-use-before-define": [2, "nofunc"],
|
85 | "dot-location": [2, "property"],
|
86 | "curly": [2, "multi-line"],
|
87 | "no-shadow": 2,
|
88 | "no-extra-bind": 2,
|
89 | },
|
90 | } |
\ | No newline at end of file |