minor adjustment to readme
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / eslint / lib / rules / index.js
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"] */
10
11 const { LazyLoadingRuleMap } = require("./utils/lazy-loading-rule-map");
12
13 /** @type {Map<string, import("../shared/types").Rule>} */
14 module.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-param-last": () => require("./default-param-last"),
41     "dot-location": () => require("./dot-location"),
42     "dot-notation": () => require("./dot-notation"),
43     "eol-last": () => require("./eol-last"),
44     eqeqeq: () => require("./eqeqeq"),
45     "for-direction": () => require("./for-direction"),
46     "func-call-spacing": () => require("./func-call-spacing"),
47     "func-name-matching": () => require("./func-name-matching"),
48     "func-names": () => require("./func-names"),
49     "func-style": () => require("./func-style"),
50     "function-call-argument-newline": () => require("./function-call-argument-newline"),
51     "function-paren-newline": () => require("./function-paren-newline"),
52     "generator-star-spacing": () => require("./generator-star-spacing"),
53     "getter-return": () => require("./getter-return"),
54     "global-require": () => require("./global-require"),
55     "grouped-accessor-pairs": () => require("./grouped-accessor-pairs"),
56     "guard-for-in": () => require("./guard-for-in"),
57     "handle-callback-err": () => require("./handle-callback-err"),
58     "id-blacklist": () => require("./id-blacklist"),
59     "id-length": () => require("./id-length"),
60     "id-match": () => require("./id-match"),
61     "implicit-arrow-linebreak": () => require("./implicit-arrow-linebreak"),
62     indent: () => require("./indent"),
63     "indent-legacy": () => require("./indent-legacy"),
64     "init-declarations": () => require("./init-declarations"),
65     "jsx-quotes": () => require("./jsx-quotes"),
66     "key-spacing": () => require("./key-spacing"),
67     "keyword-spacing": () => require("./keyword-spacing"),
68     "line-comment-position": () => require("./line-comment-position"),
69     "linebreak-style": () => require("./linebreak-style"),
70     "lines-around-comment": () => require("./lines-around-comment"),
71     "lines-around-directive": () => require("./lines-around-directive"),
72     "lines-between-class-members": () => require("./lines-between-class-members"),
73     "max-classes-per-file": () => require("./max-classes-per-file"),
74     "max-depth": () => require("./max-depth"),
75     "max-len": () => require("./max-len"),
76     "max-lines": () => require("./max-lines"),
77     "max-lines-per-function": () => require("./max-lines-per-function"),
78     "max-nested-callbacks": () => require("./max-nested-callbacks"),
79     "max-params": () => require("./max-params"),
80     "max-statements": () => require("./max-statements"),
81     "max-statements-per-line": () => require("./max-statements-per-line"),
82     "multiline-comment-style": () => require("./multiline-comment-style"),
83     "multiline-ternary": () => require("./multiline-ternary"),
84     "new-cap": () => require("./new-cap"),
85     "new-parens": () => require("./new-parens"),
86     "newline-after-var": () => require("./newline-after-var"),
87     "newline-before-return": () => require("./newline-before-return"),
88     "newline-per-chained-call": () => require("./newline-per-chained-call"),
89     "no-alert": () => require("./no-alert"),
90     "no-array-constructor": () => require("./no-array-constructor"),
91     "no-async-promise-executor": () => require("./no-async-promise-executor"),
92     "no-await-in-loop": () => require("./no-await-in-loop"),
93     "no-bitwise": () => require("./no-bitwise"),
94     "no-buffer-constructor": () => require("./no-buffer-constructor"),
95     "no-caller": () => require("./no-caller"),
96     "no-case-declarations": () => require("./no-case-declarations"),
97     "no-catch-shadow": () => require("./no-catch-shadow"),
98     "no-class-assign": () => require("./no-class-assign"),
99     "no-compare-neg-zero": () => require("./no-compare-neg-zero"),
100     "no-cond-assign": () => require("./no-cond-assign"),
101     "no-confusing-arrow": () => require("./no-confusing-arrow"),
102     "no-console": () => require("./no-console"),
103     "no-const-assign": () => require("./no-const-assign"),
104     "no-constant-condition": () => require("./no-constant-condition"),
105     "no-constructor-return": () => require("./no-constructor-return"),
106     "no-continue": () => require("./no-continue"),
107     "no-control-regex": () => require("./no-control-regex"),
108     "no-debugger": () => require("./no-debugger"),
109     "no-delete-var": () => require("./no-delete-var"),
110     "no-div-regex": () => require("./no-div-regex"),
111     "no-dupe-args": () => require("./no-dupe-args"),
112     "no-dupe-class-members": () => require("./no-dupe-class-members"),
113     "no-dupe-else-if": () => require("./no-dupe-else-if"),
114     "no-dupe-keys": () => require("./no-dupe-keys"),
115     "no-duplicate-case": () => require("./no-duplicate-case"),
116     "no-duplicate-imports": () => require("./no-duplicate-imports"),
117     "no-else-return": () => require("./no-else-return"),
118     "no-empty": () => require("./no-empty"),
119     "no-empty-character-class": () => require("./no-empty-character-class"),
120     "no-empty-function": () => require("./no-empty-function"),
121     "no-empty-pattern": () => require("./no-empty-pattern"),
122     "no-eq-null": () => require("./no-eq-null"),
123     "no-eval": () => require("./no-eval"),
124     "no-ex-assign": () => require("./no-ex-assign"),
125     "no-extend-native": () => require("./no-extend-native"),
126     "no-extra-bind": () => require("./no-extra-bind"),
127     "no-extra-boolean-cast": () => require("./no-extra-boolean-cast"),
128     "no-extra-label": () => require("./no-extra-label"),
129     "no-extra-parens": () => require("./no-extra-parens"),
130     "no-extra-semi": () => require("./no-extra-semi"),
131     "no-fallthrough": () => require("./no-fallthrough"),
132     "no-floating-decimal": () => require("./no-floating-decimal"),
133     "no-func-assign": () => require("./no-func-assign"),
134     "no-global-assign": () => require("./no-global-assign"),
135     "no-implicit-coercion": () => require("./no-implicit-coercion"),
136     "no-implicit-globals": () => require("./no-implicit-globals"),
137     "no-implied-eval": () => require("./no-implied-eval"),
138     "no-import-assign": () => require("./no-import-assign"),
139     "no-inline-comments": () => require("./no-inline-comments"),
140     "no-inner-declarations": () => require("./no-inner-declarations"),
141     "no-invalid-regexp": () => require("./no-invalid-regexp"),
142     "no-invalid-this": () => require("./no-invalid-this"),
143     "no-irregular-whitespace": () => require("./no-irregular-whitespace"),
144     "no-iterator": () => require("./no-iterator"),
145     "no-label-var": () => require("./no-label-var"),
146     "no-labels": () => require("./no-labels"),
147     "no-lone-blocks": () => require("./no-lone-blocks"),
148     "no-lonely-if": () => require("./no-lonely-if"),
149     "no-loop-func": () => require("./no-loop-func"),
150     "no-magic-numbers": () => require("./no-magic-numbers"),
151     "no-misleading-character-class": () => require("./no-misleading-character-class"),
152     "no-mixed-operators": () => require("./no-mixed-operators"),
153     "no-mixed-requires": () => require("./no-mixed-requires"),
154     "no-mixed-spaces-and-tabs": () => require("./no-mixed-spaces-and-tabs"),
155     "no-multi-assign": () => require("./no-multi-assign"),
156     "no-multi-spaces": () => require("./no-multi-spaces"),
157     "no-multi-str": () => require("./no-multi-str"),
158     "no-multiple-empty-lines": () => require("./no-multiple-empty-lines"),
159     "no-native-reassign": () => require("./no-native-reassign"),
160     "no-negated-condition": () => require("./no-negated-condition"),
161     "no-negated-in-lhs": () => require("./no-negated-in-lhs"),
162     "no-nested-ternary": () => require("./no-nested-ternary"),
163     "no-new": () => require("./no-new"),
164     "no-new-func": () => require("./no-new-func"),
165     "no-new-object": () => require("./no-new-object"),
166     "no-new-require": () => require("./no-new-require"),
167     "no-new-symbol": () => require("./no-new-symbol"),
168     "no-new-wrappers": () => require("./no-new-wrappers"),
169     "no-obj-calls": () => require("./no-obj-calls"),
170     "no-octal": () => require("./no-octal"),
171     "no-octal-escape": () => require("./no-octal-escape"),
172     "no-param-reassign": () => require("./no-param-reassign"),
173     "no-path-concat": () => require("./no-path-concat"),
174     "no-plusplus": () => require("./no-plusplus"),
175     "no-process-env": () => require("./no-process-env"),
176     "no-process-exit": () => require("./no-process-exit"),
177     "no-proto": () => require("./no-proto"),
178     "no-prototype-builtins": () => require("./no-prototype-builtins"),
179     "no-redeclare": () => require("./no-redeclare"),
180     "no-regex-spaces": () => require("./no-regex-spaces"),
181     "no-restricted-globals": () => require("./no-restricted-globals"),
182     "no-restricted-imports": () => require("./no-restricted-imports"),
183     "no-restricted-modules": () => require("./no-restricted-modules"),
184     "no-restricted-properties": () => require("./no-restricted-properties"),
185     "no-restricted-syntax": () => require("./no-restricted-syntax"),
186     "no-return-assign": () => require("./no-return-assign"),
187     "no-return-await": () => require("./no-return-await"),
188     "no-script-url": () => require("./no-script-url"),
189     "no-self-assign": () => require("./no-self-assign"),
190     "no-self-compare": () => require("./no-self-compare"),
191     "no-sequences": () => require("./no-sequences"),
192     "no-setter-return": () => require("./no-setter-return"),
193     "no-shadow": () => require("./no-shadow"),
194     "no-shadow-restricted-names": () => require("./no-shadow-restricted-names"),
195     "no-spaced-func": () => require("./no-spaced-func"),
196     "no-sparse-arrays": () => require("./no-sparse-arrays"),
197     "no-sync": () => require("./no-sync"),
198     "no-tabs": () => require("./no-tabs"),
199     "no-template-curly-in-string": () => require("./no-template-curly-in-string"),
200     "no-ternary": () => require("./no-ternary"),
201     "no-this-before-super": () => require("./no-this-before-super"),
202     "no-throw-literal": () => require("./no-throw-literal"),
203     "no-trailing-spaces": () => require("./no-trailing-spaces"),
204     "no-undef": () => require("./no-undef"),
205     "no-undef-init": () => require("./no-undef-init"),
206     "no-undefined": () => require("./no-undefined"),
207     "no-underscore-dangle": () => require("./no-underscore-dangle"),
208     "no-unexpected-multiline": () => require("./no-unexpected-multiline"),
209     "no-unmodified-loop-condition": () => require("./no-unmodified-loop-condition"),
210     "no-unneeded-ternary": () => require("./no-unneeded-ternary"),
211     "no-unreachable": () => require("./no-unreachable"),
212     "no-unsafe-finally": () => require("./no-unsafe-finally"),
213     "no-unsafe-negation": () => require("./no-unsafe-negation"),
214     "no-unused-expressions": () => require("./no-unused-expressions"),
215     "no-unused-labels": () => require("./no-unused-labels"),
216     "no-unused-vars": () => require("./no-unused-vars"),
217     "no-use-before-define": () => require("./no-use-before-define"),
218     "no-useless-call": () => require("./no-useless-call"),
219     "no-useless-catch": () => require("./no-useless-catch"),
220     "no-useless-computed-key": () => require("./no-useless-computed-key"),
221     "no-useless-concat": () => require("./no-useless-concat"),
222     "no-useless-constructor": () => require("./no-useless-constructor"),
223     "no-useless-escape": () => require("./no-useless-escape"),
224     "no-useless-rename": () => require("./no-useless-rename"),
225     "no-useless-return": () => require("./no-useless-return"),
226     "no-var": () => require("./no-var"),
227     "no-void": () => require("./no-void"),
228     "no-warning-comments": () => require("./no-warning-comments"),
229     "no-whitespace-before-property": () => require("./no-whitespace-before-property"),
230     "no-with": () => require("./no-with"),
231     "nonblock-statement-body-position": () => require("./nonblock-statement-body-position"),
232     "object-curly-newline": () => require("./object-curly-newline"),
233     "object-curly-spacing": () => require("./object-curly-spacing"),
234     "object-property-newline": () => require("./object-property-newline"),
235     "object-shorthand": () => require("./object-shorthand"),
236     "one-var": () => require("./one-var"),
237     "one-var-declaration-per-line": () => require("./one-var-declaration-per-line"),
238     "operator-assignment": () => require("./operator-assignment"),
239     "operator-linebreak": () => require("./operator-linebreak"),
240     "padded-blocks": () => require("./padded-blocks"),
241     "padding-line-between-statements": () => require("./padding-line-between-statements"),
242     "prefer-arrow-callback": () => require("./prefer-arrow-callback"),
243     "prefer-const": () => require("./prefer-const"),
244     "prefer-destructuring": () => require("./prefer-destructuring"),
245     "prefer-exponentiation-operator": () => require("./prefer-exponentiation-operator"),
246     "prefer-named-capture-group": () => require("./prefer-named-capture-group"),
247     "prefer-numeric-literals": () => require("./prefer-numeric-literals"),
248     "prefer-object-spread": () => require("./prefer-object-spread"),
249     "prefer-promise-reject-errors": () => require("./prefer-promise-reject-errors"),
250     "prefer-reflect": () => require("./prefer-reflect"),
251     "prefer-regex-literals": () => require("./prefer-regex-literals"),
252     "prefer-rest-params": () => require("./prefer-rest-params"),
253     "prefer-spread": () => require("./prefer-spread"),
254     "prefer-template": () => require("./prefer-template"),
255     "quote-props": () => require("./quote-props"),
256     quotes: () => require("./quotes"),
257     radix: () => require("./radix"),
258     "require-atomic-updates": () => require("./require-atomic-updates"),
259     "require-await": () => require("./require-await"),
260     "require-jsdoc": () => require("./require-jsdoc"),
261     "require-unicode-regexp": () => require("./require-unicode-regexp"),
262     "require-yield": () => require("./require-yield"),
263     "rest-spread-spacing": () => require("./rest-spread-spacing"),
264     semi: () => require("./semi"),
265     "semi-spacing": () => require("./semi-spacing"),
266     "semi-style": () => require("./semi-style"),
267     "sort-imports": () => require("./sort-imports"),
268     "sort-keys": () => require("./sort-keys"),
269     "sort-vars": () => require("./sort-vars"),
270     "space-before-blocks": () => require("./space-before-blocks"),
271     "space-before-function-paren": () => require("./space-before-function-paren"),
272     "space-in-parens": () => require("./space-in-parens"),
273     "space-infix-ops": () => require("./space-infix-ops"),
274     "space-unary-ops": () => require("./space-unary-ops"),
275     "spaced-comment": () => require("./spaced-comment"),
276     strict: () => require("./strict"),
277     "switch-colon-spacing": () => require("./switch-colon-spacing"),
278     "symbol-description": () => require("./symbol-description"),
279     "template-curly-spacing": () => require("./template-curly-spacing"),
280     "template-tag-spacing": () => require("./template-tag-spacing"),
281     "unicode-bom": () => require("./unicode-bom"),
282     "use-isnan": () => require("./use-isnan"),
283     "valid-jsdoc": () => require("./valid-jsdoc"),
284     "valid-typeof": () => require("./valid-typeof"),
285     "vars-on-top": () => require("./vars-on-top"),
286     "wrap-iife": () => require("./wrap-iife"),
287     "wrap-regex": () => require("./wrap-regex"),
288     "yield-star-spacing": () => require("./yield-star-spacing"),
289     yoda: () => require("./yoda")
290 }));