Debian Codegraph @

.eslintrc

raw
1 {
2 env: {
3 node: true,
4 es6: true,
5 },
6
7 parserOptions: {
8 sourceType: "module",
9 },
10
11 rules: {
12 // Possible Errors
13 comma-dangle: [2, "always-multiline"],
14 no-cond-assign: 0,
15 no-console: 2,
16 no-constant-condition: 0,
17 no-debugger: 2,
18 no-dupe-args: 2,
19 no-dupe-keys: 2,
20 no-duplicate-case: 2,
21 no-empty: 2,
22 no-empty-character-class: 2,
23 no-ex-assign: 2,
24 no-extra-boolean-cast: 2,
25 no-extra-parens: 0,
26 no-extra-semi: 2,
27 no-func-assign: 2,
28 no-inner-declarations: 2,
29 no-invalid-regexp: 2,
30 no-irregular-whitespace: 2,
31 no-negated-in-lhs: 2,
32 no-obj-calls: 2,
33 no-regex-spaces: 2,
34 no-sparse-arrays: 2,
35 no-unreachable: 2,
36 use-isnan: 2,
37 valid-jsdoc: 0,
38 valid-typeof: 2,
39 no-unexpected-multiline: 2,
40
41 // Best Practices
42 accessor-pairs: 2,
43 block-scoped-var: 2,
44 complexity: 0,
45 consistent-return: 0,
46 curly: 0,
47 default-case: 0,
48 dot-notation: 2,
49 dot-location: [2, "property"],
50 eqeqeq: 2,
51 guard-for-in: 0,
52 no-alert: 2,
53 no-caller: 2,
54 no-div-regex: 2,
55 no-else-return: 0,
56 no-labels: 2,
57 no-eq-null: 2,
58 no-eval: 2,
59 no-extend-native: 2,
60 no-extra-bind: 2,
61 no-fallthrough: 0,
62 no-floating-decimal: 2,
63 no-implicit-coercion: 0,
64 no-implied-eval: 2,
65 no-invalid-this: 2,
66 no-iterator: 2,
67 no-lone-blocks: 2,
68 no-loop-func: 2,
69 no-multi-spaces: 0,
70 no-multi-str: 2,
71 no-native-reassign: 2,
72 no-new-func: 2,
73 no-new-wrappers: 2,
74 no-new: 2,
75 no-octal-escape: 2,
76 no-octal: 2,
77 no-param-reassign: 0,
78 no-process-env: 2,
79 no-proto: 2,
80 no-redeclare: 2,
81 no-return-assign: 0,
82 no-script-url: 2,
83 no-self-compare: 2,
84 no-sequences: 0, // allow the comma operator
85 no-throw-literal: 2,
86 no-unused-expressions: 0,
87 no-useless-call: 2,
88 no-void: 2,
89 no-warning-comments: 2,
90 no-with: 2,
91 radix: 2,
92 vars-on-top: 0,
93 wrap-iife: [2, "inside"],
94 yoda: 2,
95
96 // Strict Mode
97 strict: [2, "never"],
98
99 // Variables
100 init-declarations: 0,
101 no-catch-shadow: 2,
102 no-delete-var: 2,
103 no-label-var: 2,
104 no-shadow-restricted-names: 2,
105 no-shadow: 0,
106 no-undef-init: 2,
107 no-undef: 2,
108 no-undefined: 0,
109 no-unused-vars: [ 2, { args: "none" }],
110 no-use-before-define: [2, { functions: false, classes: false }],
111
112 // Node.js
113 callback-return: 0,
114 handle-callback-err: 2,
115 no-mixed-requires: 2,
116 no-new-require: 2,
117 no-path-concat: 2,
118 no-process-exit: 2,
119 no-restricted-modules: 2,
120 no-sync: 2,
121
122 // Stylistic Issues
123 array-bracket-spacing: 2,
124 arrow-parens: [2, "as-needed"],
125 block-spacing: 2,
126 brace-style: [2, "stroustrup", { allowSingleLine: true }],
127 camelcase: 2,
128 comma-spacing: 2,
129 comma-style: 2,
130 computed-property-spacing: 2,
131 consistent-this: 0,
132 eol-last: 2,
133 func-names: 0,
134 func-style: [2, "declaration"],
135 id-length: 0,
136 id-match: 2,
137 indent-legacy: [2, 2, { VariableDeclarator: 2 }],
138 key-spacing: [2, { mode: "minimum" }],
139 lines-around-comment: 2,
140 linebreak-style: 2,
141 max-nested-callbacks: [2, 1],
142 new-cap: 2,
143 new-parens: 2,
144 newline-after-var: 0,
145 no-array-constructor: 2,
146 no-const-assign: 2,
147 no-continue: 2,
148 no-inline-comments: 0,
149 no-lonely-if: 2,
150 no-mixed-spaces-and-tabs: 2,
151 no-multiple-empty-lines: 0,
152 no-nested-ternary: 0,
153 no-new-object: 2,
154 no-spaced-func: 2,
155 no-ternary: 0,
156 no-trailing-spaces: 2,
157 no-underscore-dangle: 0,
158 no-unneeded-ternary: 2,
159 no-var: 2,
160 object-curly-spacing: [2, "always"],
161 object-curly-newline: 0,
162 object-property-newline: 0,
163 one-var: 0,
164 operator-assignment: 2,
165 operator-linebreak: [2, "after", { overrides: { ":": "ignore" } }],
166 padded-blocks: [2, "never"],
167 prefer-arrow-callback: 2,
168 prefer-const: 2,
169 prefer-template: 2,
170 quote-props: [2, "consistent-as-needed"],
171 quotes: [2, "single", "avoid-escape"],
172 semi-spacing: 2,
173 semi: 2,
174 sort-vars: 0,
175 keyword-spacing: 2,
176 space-before-blocks: 2,
177 space-before-function-paren: [2, {"anonymous": "always", "named": "never"}],
178 space-in-parens: 2,
179 space-infix-ops: 2,
180 space-unary-ops: 2,
181 spaced-comment: [2, "always", { block: { markers: ["!"] } }],
182 template-curly-spacing: 2,
183 wrap-regex: 0,
184 },
185 }