Debian Codegraph @

.eslintrc.json

raw symbols SCIP
1 {
2 "root": true,
3 "env": {
4 "node": true,
5 "amd": true,
6 "es6": false
7 },
8 "parserOptions": {
9 "ecmaVersion": 5
10 },
11 "rules": {
12 // Possible errors
13 "no-await-in-loop": "off",
14 "comma-dangle": ["error", "never"],
15 "no-cond-assign": ["error", "except-parens"],
16 "no-console": "off",
17 "no-constant-condition": "error",
18 "no-control-regex": "error",
19 "no-debugger": "error",
20 "no-dupe-args": "error",
21 "no-dupe-keys": "error",
22 "no-duplicate-case": "error",
23 "no-empty": "error",
24 "no-empty-character-class": "error",
25 "no-ex-assign": "error",
26 "no-extra-boolean-cast": "error",
27 "no-extra-parens": ["error", "all", { "conditionalAssign": false, "nestedBinaryExpressions": false }],
28 "no-extra-semi": "error",
29 "no-func-assign": "error",
30 "no-inner-declarations": "off",
31 "no-invalid-regexp": "error",
32 "no-irregular-whitespace": "error",
33 "no-obj-calls": "error",
34 "no-prototype-builtins": "error",
35 "no-regex-spaces": "error",
36 "no-sparse-arrays": "error",
37 "no-template-curly-in-string": "error",
38 "no-unexpected-multiline": "error",
39 "no-unreachable": "error",
40 "no-unsafe-finally": "off",
41 "no-unsafe-negation": "error",
42 "use-isnan": "error",
43 "valid-jsdoc": "off",
44 "valid-typeof": "error",
45
46 // Best practices
47 "accessor-pairs": "error",
48 "array-callback-return": "error",
49 "block-scoped-var": "off",
50 "class-methods-use-this": "error",
51 "complexity": "off",
52 "consistent-return": "error",
53 "curly": ["error", "all"],
54 "default-case": "off",
55 "dot-location": ["error", "property"],
56 "dot-notation": "error",
57 "eqeqeq": "error",
58 "guard-for-in": "off",
59 "no-alert": "error",
60 "no-caller": "error",
61 "no-case-declarations": "error",
62 "no-div-regex": "off",
63 "no-else-return": "error",
64 "no-empty-function": "error",
65 "no-empty-pattern": "error",
66 "no-eq-null": "error",
67 "no-eval": "error",
68 "no-extend-native": "error",
69 "no-extra-bind": "error",
70 "no-extra-label": "error",
71 "no-fallthrough": "error",
72 "no-floating-decimal": "error",
73 "no-global-assign": "error",
74 "no-implicit-coercion": "error",
75 "no-implicit-globals": "error",
76 "no-implied-eval": "off",
77 "no-invalid-this": "error",
78 "no-iterator": "error",
79 "no-labels": ["error", { "allowLoop": true }],
80 "no-lone-blocks": "error",
81 "no-loop-func": "off",
82 "no-magic-numbers": "off",
83 "no-multi-spaces": "error",
84 "no-multi-str": "error",
85 "no-new": "error",
86 "no-new-func": "error",
87 "no-new-wrappers": "error",
88 "no-octal": "error",
89 "no-octal-escape": "error",
90 "no-param-reassign": "off",
91 "no-process-env": "error",
92 "no-proto": "error",
93 "no-redeclare": "error",
94 "no-restricted-properties": "off",
95 "no-return-assign": ["error", "except-parens"],
96 "no-return-await": "error",
97 "no-script-url": "off",
98 "no-self-assign": "error",
99 "no-self-compare": "error",
100 "no-sequences": "error",
101 "no-throw-literal": "error",
102 "no-unmodified-loop-condition": "error",
103 "no-unused-expressions": "error",
104 "no-unused-labels": "error",
105 "no-useless-call": "error",
106 "no-useless-concat": "error",
107 "no-useless-escape": "error",
108 "no-useless-return": "error",
109 "no-void": "error",
110 "no-warning-comments": "off",
111 "no-with": "error",
112 "radix": ["error", "as-needed"],
113 "require-await": "error",
114 "vars-on-top": "off",
115 "wrap-iife": ["error", "outside"],
116 "yoda": ["error", "never"],
117
118 // Strict Mode
119 "strict": ["error", "global"],
120
121 // Variables
122 "init-declarations": "off",
123 "no-catch-shadow": "error",
124 "no-delete-var": "error",
125 "no-label-var": "error",
126 "no-restricted-globals": "off",
127 "no-shadow": "error",
128 "no-shadow-restricted-names": "error",
129 "no-undef": "error",
130 "no-undef-init": "error",
131 "no-undefined": "off",
132 "no-unused-vars": "error",
133 "no-use-before-define": ["error", "nofunc"],
134
135 // Node.js and CommonJS
136 "callback-return": "off",
137 "global-require": "error",
138 "handle-callback-err": "error",
139 "no-mixed-requires": ["error", true],
140 "no-new-require": "error",
141 "no-path-concat": "error",
142 "no-process-exit": "error",
143 "no-restricted-imports": "off",
144 "no-restricted-modules": "off",
145 "no-sync": "off",
146
147 // Stylistic Issues
148 "array-bracket-spacing": ["error", "never"],
149 "block-spacing": ["error", "always"],
150 "brace-style": ["error", "1tbs", { "allowSingleLine": false }],
151 "camelcase": ["error", { "properties": "always" }],
152 "capitalized-comments": ["error", "always", { "ignoreConsecutiveComments": true }],
153 "comma-spacing": ["error", { "before": false, "after": true }],
154 "comma-style": ["error", "last"],
155 "computed-property-spacing": ["error", "never"],
156 "consistent-this": "off",
157 "eol-last": "error",
158 "func-call-spacing": ["error", "never"],
159 "func-name-matching": ["error", "always"],
160 "func-names": ["error", "never"],
161 "func-style": ["error", "declaration"],
162 "id-blacklist": "off",
163 "id-length": "off",
164 "id-match": "off",
165 "indent": ["error", 4, { "SwitchCase": 1 }],
166 "jsx-quotes": "off",
167 "key-spacing": ["error", { "beforeColon": false, "afterColon": true, "mode": "strict" }],
168 "keyword-spacing": ["error", { "before": true, "after": true }],
169 "line-comment-position": "off",
170 "linebreak-style": ["error", "unix"],
171 "lines-around-comment": "off",
172 "lines-around-directive": "off",
173 "max-depth": "off",
174 "max-len": ["error", 120, { "ignoreUrls": true }],
175 "max-lines": "off",
176 "max-nested-callbacks": "off",
177 "max-params": "off",
178 "max-statements": "off",
179 "max-statements-per-line": ["error", { "max": 1 }],
180 "multiline-ternary": "off",
181 "new-cap": "error",
182 "new-parens": "error",
183 "newline-after-var": "off",
184 "newline-before-return": "off",
185 "newline-per-chained-call": "off",
186 "no-array-constructor": "error",
187 "no-bitwise": "off",
188 "no-continue": "off",
189 "no-inline-comments": "off",
190 "no-lonely-if": "error",
191 "no-mixed-operators": "error",
192 "no-mixed-spaces-and-tabs": "error",
193 "no-multiple-empty-lines": "error",
194 "no-negated-condition": "off",
195 "no-nested-ternary": "error",
196 "no-new-object": "error",
197 "no-plusplus": "off",
198 "no-restricted-syntax": "off",
199 "no-tabs": "error",
200 "no-ternary": "off",
201 "no-trailing-spaces": "error",
202 "no-underscore-dangle": "off",
203 "no-unneeded-ternary": "error",
204 "no-whitespace-before-property": "error",
205 "object-curly-newline": ["error", { "multiline": true }],
206 "object-curly-spacing": ["error", "always"],
207 "object-property-newline": "off",
208 "one-var": ["error", "never"],
209 "one-var-declaration-per-line": ["error", "initializations"],
210 "operator-assignment": ["error", "always"],
211 "operator-linebreak": ["error", "after"],
212 "padded-blocks": ["error", "never"],
213 "quote-props": ["error", "as-needed"],
214 "quotes": ["error", "double", { "avoidEscape": true, "allowTemplateLiterals": true }],
215 "require-jsdoc": "off",
216 "semi": ["error", "always"],
217 "semi-spacing": "error",
218 "sort-keys": "off",
219 "sort-vars": "off",
220 "space-before-blocks": ["error", "always"],
221 "space-before-function-paren": ["error", { "anonymous": "always", "named": "never" }],
222 "space-in-parens": ["error", "never"],
223 "space-infix-ops": "error",
224 "space-unary-ops": ["error", { "words": true, "nonwords": false }],
225 "spaced-comment": ["error", "always", { "markers": ["///"] }],
226 "unicode-bom": ["error", "never"],
227 "wrap-regex": "off"
228 }
229 }