source: imaps-frontend/node_modules/eslint/lib/rules/index.js@ d565449

main
Last change on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 17.9 KB
Line 
1/**
2 * @fileoverview Collects the built-in rules into a map structure so that they can be imported all at once and without
3 * using the file-system directly.
4 * @author Peter (Somogyvari) Metz
5 */
6
7"use strict";
8
9/* eslint sort-keys: ["error", "asc"] -- More readable for long list */
10
11const { LazyLoadingRuleMap } = require("./utils/lazy-loading-rule-map");
12
13/** @type {Map<string, import("../shared/types").Rule>} */
14module.exports = new LazyLoadingRuleMap(Object.entries({
15 "accessor-pairs": () => require("./accessor-pairs"),
16 "array-bracket-newline": () => require("./array-bracket-newline"),
17 "array-bracket-spacing": () => require("./array-bracket-spacing"),
18 "array-callback-return": () => require("./array-callback-return"),
19 "array-element-newline": () => require("./array-element-newline"),
20 "arrow-body-style": () => require("./arrow-body-style"),
21 "arrow-parens": () => require("./arrow-parens"),
22 "arrow-spacing": () => require("./arrow-spacing"),
23 "block-scoped-var": () => require("./block-scoped-var"),
24 "block-spacing": () => require("./block-spacing"),
25 "brace-style": () => require("./brace-style"),
26 "callback-return": () => require("./callback-return"),
27 camelcase: () => require("./camelcase"),
28 "capitalized-comments": () => require("./capitalized-comments"),
29 "class-methods-use-this": () => require("./class-methods-use-this"),
30 "comma-dangle": () => require("./comma-dangle"),
31 "comma-spacing": () => require("./comma-spacing"),
32 "comma-style": () => require("./comma-style"),
33 complexity: () => require("./complexity"),
34 "computed-property-spacing": () => require("./computed-property-spacing"),
35 "consistent-return": () => require("./consistent-return"),
36 "consistent-this": () => require("./consistent-this"),
37 "constructor-super": () => require("./constructor-super"),
38 curly: () => require("./curly"),
39 "default-case": () => require("./default-case"),
40 "default-case-last": () => require("./default-case-last"),
41 "default-param-last": () => require("./default-param-last"),
42 "dot-location": () => require("./dot-location"),
43 "dot-notation": () => require("./dot-notation"),
44 "eol-last": () => require("./eol-last"),
45 eqeqeq: () => require("./eqeqeq"),
46 "for-direction": () => require("./for-direction"),
47 "func-call-spacing": () => require("./func-call-spacing"),
48 "func-name-matching": () => require("./func-name-matching"),
49 "func-names": () => require("./func-names"),
50 "func-style": () => require("./func-style"),
51 "function-call-argument-newline": () => require("./function-call-argument-newline"),
52 "function-paren-newline": () => require("./function-paren-newline"),
53 "generator-star-spacing": () => require("./generator-star-spacing"),
54 "getter-return": () => require("./getter-return"),
55 "global-require": () => require("./global-require"),
56 "grouped-accessor-pairs": () => require("./grouped-accessor-pairs"),
57 "guard-for-in": () => require("./guard-for-in"),
58 "handle-callback-err": () => require("./handle-callback-err"),
59 "id-blacklist": () => require("./id-blacklist"),
60 "id-denylist": () => require("./id-denylist"),
61 "id-length": () => require("./id-length"),
62 "id-match": () => require("./id-match"),
63 "implicit-arrow-linebreak": () => require("./implicit-arrow-linebreak"),
64 indent: () => require("./indent"),
65 "indent-legacy": () => require("./indent-legacy"),
66 "init-declarations": () => require("./init-declarations"),
67 "jsx-quotes": () => require("./jsx-quotes"),
68 "key-spacing": () => require("./key-spacing"),
69 "keyword-spacing": () => require("./keyword-spacing"),
70 "line-comment-position": () => require("./line-comment-position"),
71 "linebreak-style": () => require("./linebreak-style"),
72 "lines-around-comment": () => require("./lines-around-comment"),
73 "lines-around-directive": () => require("./lines-around-directive"),
74 "lines-between-class-members": () => require("./lines-between-class-members"),
75 "logical-assignment-operators": () => require("./logical-assignment-operators"),
76 "max-classes-per-file": () => require("./max-classes-per-file"),
77 "max-depth": () => require("./max-depth"),
78 "max-len": () => require("./max-len"),
79 "max-lines": () => require("./max-lines"),
80 "max-lines-per-function": () => require("./max-lines-per-function"),
81 "max-nested-callbacks": () => require("./max-nested-callbacks"),
82 "max-params": () => require("./max-params"),
83 "max-statements": () => require("./max-statements"),
84 "max-statements-per-line": () => require("./max-statements-per-line"),
85 "multiline-comment-style": () => require("./multiline-comment-style"),
86 "multiline-ternary": () => require("./multiline-ternary"),
87 "new-cap": () => require("./new-cap"),
88 "new-parens": () => require("./new-parens"),
89 "newline-after-var": () => require("./newline-after-var"),
90 "newline-before-return": () => require("./newline-before-return"),
91 "newline-per-chained-call": () => require("./newline-per-chained-call"),
92 "no-alert": () => require("./no-alert"),
93 "no-array-constructor": () => require("./no-array-constructor"),
94 "no-async-promise-executor": () => require("./no-async-promise-executor"),
95 "no-await-in-loop": () => require("./no-await-in-loop"),
96 "no-bitwise": () => require("./no-bitwise"),
97 "no-buffer-constructor": () => require("./no-buffer-constructor"),
98 "no-caller": () => require("./no-caller"),
99 "no-case-declarations": () => require("./no-case-declarations"),
100 "no-catch-shadow": () => require("./no-catch-shadow"),
101 "no-class-assign": () => require("./no-class-assign"),
102 "no-compare-neg-zero": () => require("./no-compare-neg-zero"),
103 "no-cond-assign": () => require("./no-cond-assign"),
104 "no-confusing-arrow": () => require("./no-confusing-arrow"),
105 "no-console": () => require("./no-console"),
106 "no-const-assign": () => require("./no-const-assign"),
107 "no-constant-binary-expression": () => require("./no-constant-binary-expression"),
108 "no-constant-condition": () => require("./no-constant-condition"),
109 "no-constructor-return": () => require("./no-constructor-return"),
110 "no-continue": () => require("./no-continue"),
111 "no-control-regex": () => require("./no-control-regex"),
112 "no-debugger": () => require("./no-debugger"),
113 "no-delete-var": () => require("./no-delete-var"),
114 "no-div-regex": () => require("./no-div-regex"),
115 "no-dupe-args": () => require("./no-dupe-args"),
116 "no-dupe-class-members": () => require("./no-dupe-class-members"),
117 "no-dupe-else-if": () => require("./no-dupe-else-if"),
118 "no-dupe-keys": () => require("./no-dupe-keys"),
119 "no-duplicate-case": () => require("./no-duplicate-case"),
120 "no-duplicate-imports": () => require("./no-duplicate-imports"),
121 "no-else-return": () => require("./no-else-return"),
122 "no-empty": () => require("./no-empty"),
123 "no-empty-character-class": () => require("./no-empty-character-class"),
124 "no-empty-function": () => require("./no-empty-function"),
125 "no-empty-pattern": () => require("./no-empty-pattern"),
126 "no-empty-static-block": () => require("./no-empty-static-block"),
127 "no-eq-null": () => require("./no-eq-null"),
128 "no-eval": () => require("./no-eval"),
129 "no-ex-assign": () => require("./no-ex-assign"),
130 "no-extend-native": () => require("./no-extend-native"),
131 "no-extra-bind": () => require("./no-extra-bind"),
132 "no-extra-boolean-cast": () => require("./no-extra-boolean-cast"),
133 "no-extra-label": () => require("./no-extra-label"),
134 "no-extra-parens": () => require("./no-extra-parens"),
135 "no-extra-semi": () => require("./no-extra-semi"),
136 "no-fallthrough": () => require("./no-fallthrough"),
137 "no-floating-decimal": () => require("./no-floating-decimal"),
138 "no-func-assign": () => require("./no-func-assign"),
139 "no-global-assign": () => require("./no-global-assign"),
140 "no-implicit-coercion": () => require("./no-implicit-coercion"),
141 "no-implicit-globals": () => require("./no-implicit-globals"),
142 "no-implied-eval": () => require("./no-implied-eval"),
143 "no-import-assign": () => require("./no-import-assign"),
144 "no-inline-comments": () => require("./no-inline-comments"),
145 "no-inner-declarations": () => require("./no-inner-declarations"),
146 "no-invalid-regexp": () => require("./no-invalid-regexp"),
147 "no-invalid-this": () => require("./no-invalid-this"),
148 "no-irregular-whitespace": () => require("./no-irregular-whitespace"),
149 "no-iterator": () => require("./no-iterator"),
150 "no-label-var": () => require("./no-label-var"),
151 "no-labels": () => require("./no-labels"),
152 "no-lone-blocks": () => require("./no-lone-blocks"),
153 "no-lonely-if": () => require("./no-lonely-if"),
154 "no-loop-func": () => require("./no-loop-func"),
155 "no-loss-of-precision": () => require("./no-loss-of-precision"),
156 "no-magic-numbers": () => require("./no-magic-numbers"),
157 "no-misleading-character-class": () => require("./no-misleading-character-class"),
158 "no-mixed-operators": () => require("./no-mixed-operators"),
159 "no-mixed-requires": () => require("./no-mixed-requires"),
160 "no-mixed-spaces-and-tabs": () => require("./no-mixed-spaces-and-tabs"),
161 "no-multi-assign": () => require("./no-multi-assign"),
162 "no-multi-spaces": () => require("./no-multi-spaces"),
163 "no-multi-str": () => require("./no-multi-str"),
164 "no-multiple-empty-lines": () => require("./no-multiple-empty-lines"),
165 "no-native-reassign": () => require("./no-native-reassign"),
166 "no-negated-condition": () => require("./no-negated-condition"),
167 "no-negated-in-lhs": () => require("./no-negated-in-lhs"),
168 "no-nested-ternary": () => require("./no-nested-ternary"),
169 "no-new": () => require("./no-new"),
170 "no-new-func": () => require("./no-new-func"),
171 "no-new-native-nonconstructor": () => require("./no-new-native-nonconstructor"),
172 "no-new-object": () => require("./no-new-object"),
173 "no-new-require": () => require("./no-new-require"),
174 "no-new-symbol": () => require("./no-new-symbol"),
175 "no-new-wrappers": () => require("./no-new-wrappers"),
176 "no-nonoctal-decimal-escape": () => require("./no-nonoctal-decimal-escape"),
177 "no-obj-calls": () => require("./no-obj-calls"),
178 "no-object-constructor": () => require("./no-object-constructor"),
179 "no-octal": () => require("./no-octal"),
180 "no-octal-escape": () => require("./no-octal-escape"),
181 "no-param-reassign": () => require("./no-param-reassign"),
182 "no-path-concat": () => require("./no-path-concat"),
183 "no-plusplus": () => require("./no-plusplus"),
184 "no-process-env": () => require("./no-process-env"),
185 "no-process-exit": () => require("./no-process-exit"),
186 "no-promise-executor-return": () => require("./no-promise-executor-return"),
187 "no-proto": () => require("./no-proto"),
188 "no-prototype-builtins": () => require("./no-prototype-builtins"),
189 "no-redeclare": () => require("./no-redeclare"),
190 "no-regex-spaces": () => require("./no-regex-spaces"),
191 "no-restricted-exports": () => require("./no-restricted-exports"),
192 "no-restricted-globals": () => require("./no-restricted-globals"),
193 "no-restricted-imports": () => require("./no-restricted-imports"),
194 "no-restricted-modules": () => require("./no-restricted-modules"),
195 "no-restricted-properties": () => require("./no-restricted-properties"),
196 "no-restricted-syntax": () => require("./no-restricted-syntax"),
197 "no-return-assign": () => require("./no-return-assign"),
198 "no-return-await": () => require("./no-return-await"),
199 "no-script-url": () => require("./no-script-url"),
200 "no-self-assign": () => require("./no-self-assign"),
201 "no-self-compare": () => require("./no-self-compare"),
202 "no-sequences": () => require("./no-sequences"),
203 "no-setter-return": () => require("./no-setter-return"),
204 "no-shadow": () => require("./no-shadow"),
205 "no-shadow-restricted-names": () => require("./no-shadow-restricted-names"),
206 "no-spaced-func": () => require("./no-spaced-func"),
207 "no-sparse-arrays": () => require("./no-sparse-arrays"),
208 "no-sync": () => require("./no-sync"),
209 "no-tabs": () => require("./no-tabs"),
210 "no-template-curly-in-string": () => require("./no-template-curly-in-string"),
211 "no-ternary": () => require("./no-ternary"),
212 "no-this-before-super": () => require("./no-this-before-super"),
213 "no-throw-literal": () => require("./no-throw-literal"),
214 "no-trailing-spaces": () => require("./no-trailing-spaces"),
215 "no-undef": () => require("./no-undef"),
216 "no-undef-init": () => require("./no-undef-init"),
217 "no-undefined": () => require("./no-undefined"),
218 "no-underscore-dangle": () => require("./no-underscore-dangle"),
219 "no-unexpected-multiline": () => require("./no-unexpected-multiline"),
220 "no-unmodified-loop-condition": () => require("./no-unmodified-loop-condition"),
221 "no-unneeded-ternary": () => require("./no-unneeded-ternary"),
222 "no-unreachable": () => require("./no-unreachable"),
223 "no-unreachable-loop": () => require("./no-unreachable-loop"),
224 "no-unsafe-finally": () => require("./no-unsafe-finally"),
225 "no-unsafe-negation": () => require("./no-unsafe-negation"),
226 "no-unsafe-optional-chaining": () => require("./no-unsafe-optional-chaining"),
227 "no-unused-expressions": () => require("./no-unused-expressions"),
228 "no-unused-labels": () => require("./no-unused-labels"),
229 "no-unused-private-class-members": () => require("./no-unused-private-class-members"),
230 "no-unused-vars": () => require("./no-unused-vars"),
231 "no-use-before-define": () => require("./no-use-before-define"),
232 "no-useless-backreference": () => require("./no-useless-backreference"),
233 "no-useless-call": () => require("./no-useless-call"),
234 "no-useless-catch": () => require("./no-useless-catch"),
235 "no-useless-computed-key": () => require("./no-useless-computed-key"),
236 "no-useless-concat": () => require("./no-useless-concat"),
237 "no-useless-constructor": () => require("./no-useless-constructor"),
238 "no-useless-escape": () => require("./no-useless-escape"),
239 "no-useless-rename": () => require("./no-useless-rename"),
240 "no-useless-return": () => require("./no-useless-return"),
241 "no-var": () => require("./no-var"),
242 "no-void": () => require("./no-void"),
243 "no-warning-comments": () => require("./no-warning-comments"),
244 "no-whitespace-before-property": () => require("./no-whitespace-before-property"),
245 "no-with": () => require("./no-with"),
246 "nonblock-statement-body-position": () => require("./nonblock-statement-body-position"),
247 "object-curly-newline": () => require("./object-curly-newline"),
248 "object-curly-spacing": () => require("./object-curly-spacing"),
249 "object-property-newline": () => require("./object-property-newline"),
250 "object-shorthand": () => require("./object-shorthand"),
251 "one-var": () => require("./one-var"),
252 "one-var-declaration-per-line": () => require("./one-var-declaration-per-line"),
253 "operator-assignment": () => require("./operator-assignment"),
254 "operator-linebreak": () => require("./operator-linebreak"),
255 "padded-blocks": () => require("./padded-blocks"),
256 "padding-line-between-statements": () => require("./padding-line-between-statements"),
257 "prefer-arrow-callback": () => require("./prefer-arrow-callback"),
258 "prefer-const": () => require("./prefer-const"),
259 "prefer-destructuring": () => require("./prefer-destructuring"),
260 "prefer-exponentiation-operator": () => require("./prefer-exponentiation-operator"),
261 "prefer-named-capture-group": () => require("./prefer-named-capture-group"),
262 "prefer-numeric-literals": () => require("./prefer-numeric-literals"),
263 "prefer-object-has-own": () => require("./prefer-object-has-own"),
264 "prefer-object-spread": () => require("./prefer-object-spread"),
265 "prefer-promise-reject-errors": () => require("./prefer-promise-reject-errors"),
266 "prefer-reflect": () => require("./prefer-reflect"),
267 "prefer-regex-literals": () => require("./prefer-regex-literals"),
268 "prefer-rest-params": () => require("./prefer-rest-params"),
269 "prefer-spread": () => require("./prefer-spread"),
270 "prefer-template": () => require("./prefer-template"),
271 "quote-props": () => require("./quote-props"),
272 quotes: () => require("./quotes"),
273 radix: () => require("./radix"),
274 "require-atomic-updates": () => require("./require-atomic-updates"),
275 "require-await": () => require("./require-await"),
276 "require-jsdoc": () => require("./require-jsdoc"),
277 "require-unicode-regexp": () => require("./require-unicode-regexp"),
278 "require-yield": () => require("./require-yield"),
279 "rest-spread-spacing": () => require("./rest-spread-spacing"),
280 semi: () => require("./semi"),
281 "semi-spacing": () => require("./semi-spacing"),
282 "semi-style": () => require("./semi-style"),
283 "sort-imports": () => require("./sort-imports"),
284 "sort-keys": () => require("./sort-keys"),
285 "sort-vars": () => require("./sort-vars"),
286 "space-before-blocks": () => require("./space-before-blocks"),
287 "space-before-function-paren": () => require("./space-before-function-paren"),
288 "space-in-parens": () => require("./space-in-parens"),
289 "space-infix-ops": () => require("./space-infix-ops"),
290 "space-unary-ops": () => require("./space-unary-ops"),
291 "spaced-comment": () => require("./spaced-comment"),
292 strict: () => require("./strict"),
293 "switch-colon-spacing": () => require("./switch-colon-spacing"),
294 "symbol-description": () => require("./symbol-description"),
295 "template-curly-spacing": () => require("./template-curly-spacing"),
296 "template-tag-spacing": () => require("./template-tag-spacing"),
297 "unicode-bom": () => require("./unicode-bom"),
298 "use-isnan": () => require("./use-isnan"),
299 "valid-jsdoc": () => require("./valid-jsdoc"),
300 "valid-typeof": () => require("./valid-typeof"),
301 "vars-on-top": () => require("./vars-on-top"),
302 "wrap-iife": () => require("./wrap-iife"),
303 "wrap-regex": () => require("./wrap-regex"),
304 "yield-star-spacing": () => require("./yield-star-spacing"),
305 yoda: () => require("./yoda")
306}));
Note: See TracBrowser for help on using the repository browser.