1 | env:
|
2 | node: true
|
3 |
|
4 | plugins:
|
5 | - nodeca
|
6 |
|
7 | rules:
|
8 | block-scoped-var: 2
|
9 | brace-style: [ 2, '1tbs', { allowSingleLine: true } ]
|
10 | camelcase: 0
|
11 | comma-spacing: 2
|
12 | comma-style: 2
|
13 | consistent-this: [ 2, self ]
|
14 | consistent-return: 2
|
15 | curly: 2
|
16 | # default-case: 2
|
17 | dot-notation: 2
|
18 | eol-last: 2
|
19 | eqeqeq: 2
|
20 | guard-for-in: 2
|
21 | handle-callback-err: 2
|
22 | max-depth: [ 1, 6 ]
|
23 | max-nested-callbacks: [ 1, 4 ]
|
24 | # string can exceed 80 chars, but should not overflow github website :)
|
25 | max-len: [ 2, 120, 1000 ]
|
26 | new-cap: 2
|
27 | new-parens: 2
|
28 | no-alert: 2
|
29 | no-array-constructor: 2
|
30 | # no-bitwise: 2
|
31 | no-caller: 2
|
32 | no-catch-shadow: 2
|
33 | comma-dangle: 2
|
34 | no-cond-assign: 2
|
35 | no-console: 1
|
36 | no-constant-condition: 2
|
37 | no-control-regex: 2
|
38 | no-debugger: 2
|
39 | no-delete-var: 2
|
40 | no-dupe-keys: 2
|
41 | no-div-regex: 2
|
42 | no-empty: 2
|
43 | no-empty-character-class: 2
|
44 | no-else-return: 2
|
45 | no-eq-null: 2
|
46 | no-ex-assign: 2
|
47 | no-extend-native: 2
|
48 | no-extra-bind: 2
|
49 | no-extra-boolean-cast: 2
|
50 | no-extra-semi: 2
|
51 | no-eval: 2
|
52 | no-floating-decimal: 2
|
53 | no-func-assign: 2
|
54 | no-implied-eval: 2
|
55 | no-inner-declarations: 2
|
56 | no-invalid-regexp: 2
|
57 | no-irregular-whitespace: 2
|
58 | no-label-var: 2
|
59 | no-labels: 2
|
60 | no-lone-blocks: 2
|
61 | no-lonely-if: 2
|
62 | no-loop-func: 2
|
63 | no-mixed-requires: 2
|
64 | no-mixed-spaces-and-tabs: 2
|
65 | no-multi-str: 2
|
66 | no-multi-spaces: 0
|
67 | no-native-reassign: 2
|
68 | no-negated-in-lhs: 2
|
69 | no-new: 2
|
70 | no-new-func: 2
|
71 | no-new-object: 2
|
72 | no-new-require: 2
|
73 | no-new-wrappers: 2
|
74 | no-obj-calls: 2
|
75 | no-octal: 2
|
76 | no-octal-escape: 2
|
77 | no-path-concat: 2
|
78 | no-redeclare: 2
|
79 | no-regex-spaces: 2
|
80 | no-return-assign: 2
|
81 | no-script-url: 2
|
82 | no-sequences: 2
|
83 | no-shadow: 2
|
84 | no-shadow-restricted-names: 2
|
85 | semi-spacing: 2
|
86 | no-sparse-arrays: 2
|
87 | no-trailing-spaces: 2
|
88 | no-undef: 2
|
89 | no-undef-init: 2
|
90 | no-undefined: 2
|
91 | no-unreachable: 2
|
92 | no-unused-expressions: 2
|
93 | no-unused-vars: 2
|
94 | no-use-before-define: 2
|
95 | no-with: 2
|
96 | no-extra-parens: 2
|
97 | quotes: [ 2, single, avoid-escape ]
|
98 | radix: 2
|
99 | semi: 2
|
100 | space-before-blocks: 2
|
101 | object-curly-spacing: [ 2, always ]
|
102 | space-in-parens: [ 2, never ]
|
103 | space-infix-ops: 2
|
104 | keyword-spacing: 2
|
105 | space-unary-ops: 2
|
106 | spaced-comment: [ 2, always, { exceptions: [ '/' ] } ]
|
107 | strict: 2
|
108 | use-isnan: 2
|
109 | yoda: 2
|
110 | valid-typeof: 2
|
111 |
|
112 | #
|
113 | # Our custom rules
|
114 | #
|
115 | nodeca/indent: [ 2, spaces, 2 ]
|