js-style-kit 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +33 -0
  3. package/dist/chunk-3H3TV7WG.js +21 -0
  4. package/dist/chunk-3H3TV7WG.js.map +1 -0
  5. package/dist/chunk-7D4SUZUM.js +38 -0
  6. package/dist/chunk-7D4SUZUM.js.map +1 -0
  7. package/dist/chunk-AL3W54BT.js +137 -0
  8. package/dist/chunk-AL3W54BT.js.map +1 -0
  9. package/dist/chunk-EQOUQWIX.js +45 -0
  10. package/dist/chunk-EQOUQWIX.js.map +1 -0
  11. package/dist/chunk-ETHEVVRU.js +1 -0
  12. package/dist/chunk-ETHEVVRU.js.map +1 -0
  13. package/dist/chunk-GE5ZPFK5.js +32 -0
  14. package/dist/chunk-GE5ZPFK5.js.map +1 -0
  15. package/dist/chunk-GZC424B7.js +36 -0
  16. package/dist/chunk-GZC424B7.js.map +1 -0
  17. package/dist/chunk-IOVQNUC6.js +21 -0
  18. package/dist/chunk-IOVQNUC6.js.map +1 -0
  19. package/dist/chunk-JY5TAY3J.js +428 -0
  20. package/dist/chunk-JY5TAY3J.js.map +1 -0
  21. package/dist/chunk-Q3UZX7NT.js +14 -0
  22. package/dist/chunk-Q3UZX7NT.js.map +1 -0
  23. package/dist/chunk-SVENELEJ.js +17576 -0
  24. package/dist/chunk-SVENELEJ.js.map +1 -0
  25. package/dist/chunk-TQWE6NWW.js +133 -0
  26. package/dist/chunk-TQWE6NWW.js.map +1 -0
  27. package/dist/chunk-UTXH73LC.js +42 -0
  28. package/dist/chunk-UTXH73LC.js.map +1 -0
  29. package/dist/chunk-W56QT6S7.js +14 -0
  30. package/dist/chunk-W56QT6S7.js.map +1 -0
  31. package/dist/chunk-YS5XHQB5.js +23 -0
  32. package/dist/chunk-YS5XHQB5.js.map +1 -0
  33. package/dist/eslint/constants.d.ts +10 -0
  34. package/dist/eslint/constants.js +8 -0
  35. package/dist/eslint/constants.js.map +1 -0
  36. package/dist/eslint/ignores.d.ts +5 -0
  37. package/dist/eslint/ignores.js +9 -0
  38. package/dist/eslint/ignores.js.map +1 -0
  39. package/dist/eslint/index.d.ts +25 -0
  40. package/dist/eslint/index.js +18 -0
  41. package/dist/eslint/index.js.map +1 -0
  42. package/dist/eslint/index.test.d.ts +2 -0
  43. package/dist/eslint/index.test.js +60 -0
  44. package/dist/eslint/index.test.js.map +1 -0
  45. package/dist/eslint/javascript/config.d.ts +6 -0
  46. package/dist/eslint/javascript/config.js +10 -0
  47. package/dist/eslint/javascript/config.js.map +1 -0
  48. package/dist/eslint/javascript/rules.d.ts +13 -0
  49. package/dist/eslint/javascript/rules.js +8 -0
  50. package/dist/eslint/javascript/rules.js.map +1 -0
  51. package/dist/eslint/perfectionist/config.d.ts +5 -0
  52. package/dist/eslint/perfectionist/config.js +10 -0
  53. package/dist/eslint/perfectionist/config.js.map +1 -0
  54. package/dist/eslint/perfectionist/rules.d.ts +10 -0
  55. package/dist/eslint/perfectionist/rules.js +8 -0
  56. package/dist/eslint/perfectionist/rules.js.map +1 -0
  57. package/dist/eslint/react/config.d.ts +6 -0
  58. package/dist/eslint/react/config.js +10 -0
  59. package/dist/eslint/react/config.js.map +1 -0
  60. package/dist/eslint/react/rules.d.ts +16 -0
  61. package/dist/eslint/react/rules.js +8 -0
  62. package/dist/eslint/react/rules.js.map +1 -0
  63. package/dist/eslint/typescript/config.d.ts +5 -0
  64. package/dist/eslint/typescript/config.js +10 -0
  65. package/dist/eslint/typescript/config.js.map +1 -0
  66. package/dist/eslint/typescript/rules.d.ts +5 -0
  67. package/dist/eslint/typescript/rules.js +8 -0
  68. package/dist/eslint/typescript/rules.js.map +1 -0
  69. package/dist/index.d.ts +7 -0
  70. package/dist/index.js +23 -0
  71. package/dist/index.js.map +1 -0
  72. package/dist/magic-string.es-UEL4LDHN.js +1300 -0
  73. package/dist/magic-string.es-UEL4LDHN.js.map +1 -0
  74. package/dist/prettier/index.d.ts +27 -0
  75. package/dist/prettier/index.js +8 -0
  76. package/dist/prettier/index.js.map +1 -0
  77. package/dist/prettier/index.test.d.ts +2 -0
  78. package/dist/prettier/index.test.js +52 -0
  79. package/dist/prettier/index.test.js.map +1 -0
  80. package/dist/types.d.ts +5 -0
  81. package/dist/types.js +1 -0
  82. package/dist/types.js.map +1 -0
  83. package/package.json +48 -0
@@ -0,0 +1,428 @@
1
+ // src/eslint/javascript/rules.ts
2
+ var baseEslintRules = (functionStyle) => ({
3
+ /**
4
+ * Require return statements in array methods callbacks.
5
+ *
6
+ * 🚫 Not fixable -https://eslint.org/docs/rules/array-callback-return
7
+ */
8
+ "array-callback-return": [
9
+ "warn",
10
+ { allowImplicit: true, checkForEach: true }
11
+ ],
12
+ /**
13
+ * Treat `var` statements as if they were block scoped.
14
+ *
15
+ * 🚫 Not fixable - https://eslint.org/docs/rules/block-scoped-var
16
+ */
17
+ "block-scoped-var": "warn",
18
+ /**
19
+ * Require camel case names.
20
+ *
21
+ * 🚫 Not fixable - https://eslint.org/docs/rules/camelcase
22
+ */
23
+ camelcase: [
24
+ "warn",
25
+ { allow: ["^UNSAFE_"], ignoreDestructuring: false, properties: "never" }
26
+ ],
27
+ /**
28
+ * Require curly braces for multiline blocks.
29
+ *
30
+ * 🔧 Fixable - https://eslint.org/docs/rules/curly
31
+ */
32
+ curly: ["warn", "multi-line"],
33
+ /**
34
+ * Require default clauses in switch statements to be last (if used).
35
+ *
36
+ * 🚫 Not fixable - https://eslint.org/docs/rules/default-case-last
37
+ */
38
+ "default-case-last": "warn",
39
+ /**
40
+ * Require triple equals (`===` and `!==`).
41
+ *Ã¥
42
+ * 🔧 Fixable - https://eslint.org/docs/rules/eqeqeq
43
+ */
44
+ eqeqeq: "warn",
45
+ "for-direction": "warn",
46
+ /**
47
+ * Require function expressions to have a name.
48
+ *
49
+ * 🚫 Not fixable - https://eslint.org/docs/rules/func-names
50
+ */
51
+ "func-names": ["warn", "as-needed"],
52
+ "func-style": [
53
+ "warn",
54
+ functionStyle === "arrow" ? "expression" : functionStyle,
55
+ { allowArrowFunctions: true }
56
+ ],
57
+ /**
58
+ * Require grouped accessor pairs in object literals and classes.
59
+ *
60
+ * 🚫 Not fixable - https://eslint.org/docs/rules/grouped-accessor-pairs
61
+ */
62
+ "grouped-accessor-pairs": "warn",
63
+ /**
64
+ * Require a capital letter for constructors.
65
+ *
66
+ * 🚫 Not fixable - https://eslint.org/docs/rules/new-cap
67
+ */
68
+ "new-cap": ["warn", { capIsNew: false }],
69
+ /**
70
+ * Disallow use of `alert()`.
71
+ *
72
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-alert
73
+ */
74
+ "no-alert": "warn",
75
+ "no-async-promise-executor": "warn",
76
+ /**
77
+ * Disallow use of bitwise operators.
78
+ *
79
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-bitwise
80
+ */
81
+ "no-bitwise": "warn",
82
+ /**
83
+ * Disallow use of `caller`/`callee`.
84
+ *
85
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-caller
86
+ */
87
+ "no-caller": "warn",
88
+ "no-case-declarations": "warn",
89
+ "no-compare-neg-zero": "warn",
90
+ "no-cond-assign": "warn",
91
+ /**
92
+ * Disallow the use of console.
93
+ *
94
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-console
95
+ */
96
+ "no-console": ["warn", { allow: ["info", "warn", "error"] }],
97
+ /**
98
+ * Disallow expressions where the operation doesn't affect the value.
99
+ *
100
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-console
101
+ */
102
+ "no-constant-binary-expression": "warn",
103
+ "no-constant-condition": "warn",
104
+ /**
105
+ * Disallow returning value in constructor.
106
+ *
107
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-constructor-return
108
+ */
109
+ "no-constructor-return": "warn",
110
+ "no-control-regex": "warn",
111
+ "no-debugger": "warn",
112
+ "no-delete-var": "warn",
113
+ "no-dupe-else-if": "warn",
114
+ "no-duplicate-case": "warn",
115
+ /**
116
+ * Disallow using an `else` if the `if` block contains a return.
117
+ *
118
+ * 🔧 Fixable - https://eslint.org/docs/rules/no-else-return
119
+ */
120
+ "no-else-return": "warn",
121
+ "no-empty": "warn",
122
+ "no-empty-character-class": "warn",
123
+ "no-empty-pattern": "warn",
124
+ "no-empty-static-block": "warn",
125
+ /**
126
+ * Disallow `eval()`.
127
+ *
128
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-eval
129
+ */
130
+ "no-eval": "warn",
131
+ "no-ex-assign": "warn",
132
+ /**
133
+ * Disallow extending native objects.
134
+ *
135
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-extend-native
136
+ */
137
+ "no-extend-native": "warn",
138
+ /**
139
+ * Disallow unnecessary function binding.
140
+ *
141
+ * 🔧 Fixable - https://eslint.org/docs/rules/no-extra-bind
142
+ */
143
+ "no-extra-bind": "warn",
144
+ "no-extra-boolean-cast": "warn",
145
+ /**
146
+ * Disallow unnecessary labels.
147
+ *
148
+ * 🔧 Fixable - https://eslint.org/docs/rules/no-extra-label
149
+ */
150
+ "no-extra-label": "warn",
151
+ "no-fallthrough": "warn",
152
+ "no-global-assign": "warn",
153
+ /**
154
+ * Make people convert types explicitly e.g. `Boolean(foo)` instead of `!!foo`.
155
+ *
156
+ * 🔧 Partially Fixable - https://eslint.org/docs/rules/no-implicit-coercion
157
+ */
158
+ "no-implicit-coercion": "warn",
159
+ "no-invalid-regexp": "warn",
160
+ "no-irregular-whitespace": "warn",
161
+ /**
162
+ * Disallow usage of `__iterator__` property.
163
+ *
164
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-iterator
165
+ */
166
+ "no-iterator": "warn",
167
+ /**
168
+ * Disallow labels that share a name with a variable.
169
+ *
170
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-label-var
171
+ */
172
+ "no-label-var": "warn",
173
+ /**
174
+ * Disallow use of labels for anything other than loops and switches.
175
+ *
176
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-labels
177
+ */
178
+ "no-labels": ["warn"],
179
+ /**
180
+ * Disallow unnecessary nested blocks.
181
+ *
182
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-lone-blocks
183
+ */
184
+ "no-lone-blocks": "warn",
185
+ /**
186
+ * Disallow if as the only statement in an else block.
187
+ *
188
+ * 🔧 Fixable - https://eslint.org/docs/rules/no-lonely-if
189
+ */
190
+ "no-lonely-if": "warn",
191
+ "no-loss-of-precision": "warn",
192
+ "no-misleading-character-class": "warn",
193
+ /**
194
+ * Disallow use of chained assignment expressions.
195
+ *
196
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-multi-assign
197
+ */
198
+ "no-multi-assign": ["warn"],
199
+ /**
200
+ * Disallow nested ternary expressions.
201
+ *
202
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-nested-ternary
203
+ */
204
+ "no-nested-ternary": "warn",
205
+ /**
206
+ * Disallow `new` for side effects.
207
+ *
208
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-new
209
+ */
210
+ "no-new": "warn",
211
+ /**
212
+ * Disallow function constructors.
213
+ *
214
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-new-func
215
+ */
216
+ "no-new-func": "warn",
217
+ /**
218
+ * Disallow primitive wrapper instances, such as `new String('foo')`.
219
+ *
220
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-new-wrappers
221
+ */
222
+ "no-new-wrappers": "warn",
223
+ "no-nonoctal-decimal-escape": "warn",
224
+ "no-octal": "warn",
225
+ /**
226
+ * Disallow use of octal escape sequences in string literals.
227
+ *
228
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-octal-escape
229
+ */
230
+ "no-octal-escape": "warn",
231
+ /**
232
+ * Disallow reassignment of function parameters.
233
+ *
234
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-param-reassign
235
+ */
236
+ "no-param-reassign": "warn",
237
+ /**
238
+ * Disallow returning values from Promise executor functions.
239
+ *
240
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-promise-executor-return
241
+ */
242
+ "no-promise-executor-return": "warn",
243
+ /**
244
+ * Disallow usage of the deprecated `__proto__` property.
245
+ *
246
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-proto
247
+ */
248
+ "no-proto": "warn",
249
+ "no-prototype-builtins": "warn",
250
+ "no-regex-spaces": "warn",
251
+ /**
252
+ * Disallow assignment in `return` statement.
253
+ *
254
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-return-assign
255
+ */
256
+ "no-return-assign": "warn",
257
+ /**
258
+ * Disallow use of `javascript:` urls.
259
+ *
260
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-script-url
261
+ */
262
+ "no-script-url": "warn",
263
+ "no-self-assign": "warn",
264
+ /**
265
+ * Disallow comparisons where both sides are exactly the same.
266
+ *
267
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-self-compare
268
+ */
269
+ "no-self-compare": "warn",
270
+ /**
271
+ * Disallow use of comma operator.
272
+ *
273
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-sequences
274
+ */
275
+ "no-sequences": "warn",
276
+ "no-shadow-restricted-names": "warn",
277
+ "no-sparse-arrays": "warn",
278
+ /**
279
+ * Disallow template literal placeholder syntax in regular strings, as
280
+ * these are likely errors.
281
+ *
282
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-template-curly-in-string
283
+ */
284
+ "no-template-curly-in-string": "warn",
285
+ /**
286
+ * Disallow initializing variables to `undefined`.
287
+ *
288
+ * 🔧 Fixable - https://eslint.org/docs/rules/no-undef-init
289
+ */
290
+ "no-undef-init": "warn",
291
+ "no-unexpected-multiline": "warn",
292
+ /**
293
+ * Disallow ternary operators when simpler alternatives exist.
294
+ *
295
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-unneeded-ternary
296
+ */
297
+ "no-unneeded-ternary": "warn",
298
+ /**
299
+ * Disallow loops with a body that allows only one iteration.
300
+ *
301
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-unreachable-loop
302
+ */
303
+ "no-unreachable-loop": "warn",
304
+ "no-unsafe-finally": "warn",
305
+ "no-unsafe-optional-chaining": "warn",
306
+ "no-unused-labels": "warn",
307
+ "no-unused-private-class-members": "warn",
308
+ "no-useless-backreference": "warn",
309
+ /**
310
+ * Disallow unnecessary `.call()` and `.apply()`.
311
+ *
312
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-useless-call
313
+ */
314
+ "no-useless-call": "warn",
315
+ "no-useless-catch": "warn",
316
+ /**
317
+ * Disallow useless computed property keys.
318
+ *
319
+ * � Fixable - https://eslint.org/docs/rules/no-useless-computed-key
320
+ */
321
+ "no-useless-computed-key": "warn",
322
+ /**
323
+ * Disallow unnecessary concatenation of strings.
324
+ *
325
+ * � Not fixable - https://eslint.org/docs/rules/no-useless-concat
326
+ */
327
+ "no-useless-concat": "warn",
328
+ "no-useless-escape": "warn",
329
+ /**
330
+ * Disallow renaming import, export, and destructured assignments to the
331
+ * same name.
332
+ *
333
+ * � Fixable - https://eslint.org/docs/rules/no-useless-rename
334
+ */
335
+ "no-useless-rename": "warn",
336
+ /**
337
+ * Disallow redundant return statements.
338
+ *
339
+ * � Fixable - https://eslint.org/docs/rules/no-useless-return
340
+ */
341
+ "no-useless-return": "warn",
342
+ /**
343
+ * Require `let` or `const` instead of `var`.
344
+ * ts transpiles let/const to var, so no need for vars any more
345
+ *
346
+ * 🔧 Fixable - https://eslint.org/docs/rules/no-var
347
+ */
348
+ "no-var": "warn",
349
+ "no-with": "warn",
350
+ /**
351
+ * Require object literal shorthand syntax.
352
+ *
353
+ * 🔧 Fixable - https://eslint.org/docs/rules/object-shorthand
354
+ */
355
+ "object-shorthand": "warn",
356
+ /**
357
+ * Require default to `const` instead of `let`.
358
+ * ts provides better types with const
359
+ *
360
+ * 🔧 Fixable - https://eslint.org/docs/rules/prefer-const
361
+ */
362
+ "prefer-const": "warn",
363
+ /**
364
+ * Require using named capture groups in regular expressions.
365
+ *
366
+ * � Not fixable - https://eslint.org/docs/rules/prefer-named-capture-group
367
+ */
368
+ "prefer-named-capture-group": "warn",
369
+ /**
370
+ * Disallow parseInt() in favor of binary, octal, and hexadecimal literals.
371
+ *
372
+ * 🔧 Fixable - https://eslint.org/docs/rules/prefer-numeric-literals
373
+ */
374
+ "prefer-numeric-literals": "warn",
375
+ /**
376
+ * Require use of an object spread over Object.assign.
377
+ *
378
+ * 🔧 Fixable - https://eslint.org/docs/rules/prefer-object-spread
379
+ */
380
+ "prefer-object-spread": "warn",
381
+ /**
382
+ * Disallow use of the RegExp constructor in favor of regular expression
383
+ * literals.
384
+ *
385
+ * � Not fixable - https://eslint.org/docs/rules/prefer-regex-literals
386
+ */
387
+ "prefer-regex-literals": "warn",
388
+ /**
389
+ * Require using rest parameters instead of `arguments`.
390
+ * ts provides better types with rest args over arguments
391
+ *
392
+ * 🚫 Not fixable - https://eslint.org/docs/rules/prefer-rest-params
393
+ */
394
+ "prefer-rest-params": "warn",
395
+ /**
396
+ * Require using spread syntax instead of `.apply()`.
397
+ * ts transpiles spread to apply, so no need for manual apply
398
+ *
399
+ * 🚫 Not fixable - https://eslint.org/docs/rules/prefer-spread
400
+ */
401
+ "prefer-spread": "warn",
402
+ /**
403
+ * Require using template literals instead of string concatenation.
404
+ *
405
+ * 🔧 Fixable - https://eslint.org/docs/rules/prefer-template
406
+ */
407
+ "prefer-template": "warn",
408
+ "require-yield": "warn",
409
+ /**
410
+ * Require a `Symbol` description.
411
+ *
412
+ * 🚫 Not fixable - https://eslint.org/docs/rules/symbol-description
413
+ */
414
+ "symbol-description": "warn",
415
+ "use-isnan": "warn",
416
+ "valid-typeof": "warn",
417
+ /**
418
+ * Disallow "Yoda conditions", ensuring the comparison.
419
+ *
420
+ * 🔧 Fixable - https://eslint.org/docs/rules/yoda
421
+ */
422
+ yoda: "warn"
423
+ });
424
+
425
+ export {
426
+ baseEslintRules
427
+ };
428
+ //# sourceMappingURL=chunk-JY5TAY3J.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/eslint/javascript/rules.ts"],"sourcesContent":["import type { EslintRuleConfig, FunctionStyle } from \"../../types.js\";\n\ntype BaseRules = Record<string, EslintRuleConfig> & {\n \"func-style\"?: EslintRuleConfig<\n \"declaration\" | \"expression\",\n {\n allowArrowFunctions?: boolean;\n overrides?: {\n namedExports?: \"declaration\" | \"expression\" | \"ignore\";\n };\n }\n >;\n};\n\nexport const baseEslintRules = (functionStyle: FunctionStyle): BaseRules => ({\n /**\n * Require return statements in array methods callbacks.\n *\n * 🚫 Not fixable -https://eslint.org/docs/rules/array-callback-return\n */\n \"array-callback-return\": [\n \"warn\",\n { allowImplicit: true, checkForEach: true },\n ],\n /**\n * Treat `var` statements as if they were block scoped.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/block-scoped-var\n */\n \"block-scoped-var\": \"warn\",\n /**\n * Require camel case names.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/camelcase\n */\n camelcase: [\n \"warn\",\n { allow: [\"^UNSAFE_\"], ignoreDestructuring: false, properties: \"never\" },\n ],\n /**\n * Require curly braces for multiline blocks.\n *\n * 🔧 Fixable - https://eslint.org/docs/rules/curly\n */\n curly: [\"warn\", \"multi-line\"],\n /**\n * Require default clauses in switch statements to be last (if used).\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/default-case-last\n */\n \"default-case-last\": \"warn\",\n /**\n * Require triple equals (`===` and `!==`).\n *å\n * 🔧 Fixable - https://eslint.org/docs/rules/eqeqeq\n */\n eqeqeq: \"warn\",\n \"for-direction\": \"warn\",\n /**\n * Require function expressions to have a name.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/func-names\n */\n \"func-names\": [\"warn\", \"as-needed\"],\n \"func-style\": [\n \"warn\",\n functionStyle === \"arrow\" ? \"expression\" : functionStyle,\n { allowArrowFunctions: true },\n ],\n /**\n * Require grouped accessor pairs in object literals and classes.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/grouped-accessor-pairs\n */\n \"grouped-accessor-pairs\": \"warn\",\n /**\n * Require a capital letter for constructors.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/new-cap\n */\n \"new-cap\": [\"warn\", { capIsNew: false }],\n /**\n * Disallow use of `alert()`.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-alert\n */\n \"no-alert\": \"warn\",\n \"no-async-promise-executor\": \"warn\",\n /**\n * Disallow use of bitwise operators.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-bitwise\n */\n \"no-bitwise\": \"warn\",\n /**\n * Disallow use of `caller`/`callee`.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-caller\n */\n \"no-caller\": \"warn\",\n \"no-case-declarations\": \"warn\",\n \"no-compare-neg-zero\": \"warn\",\n \"no-cond-assign\": \"warn\",\n /**\n * Disallow the use of console.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-console\n */\n \"no-console\": [\"warn\", { allow: [\"info\", \"warn\", \"error\"] }],\n /**\n * Disallow expressions where the operation doesn't affect the value.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-console\n */\n \"no-constant-binary-expression\": \"warn\",\n \"no-constant-condition\": \"warn\",\n /**\n * Disallow returning value in constructor.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-constructor-return\n */\n \"no-constructor-return\": \"warn\",\n \"no-control-regex\": \"warn\",\n \"no-debugger\": \"warn\",\n \"no-delete-var\": \"warn\",\n \"no-dupe-else-if\": \"warn\",\n \"no-duplicate-case\": \"warn\",\n /**\n * Disallow using an `else` if the `if` block contains a return.\n *\n * 🔧 Fixable - https://eslint.org/docs/rules/no-else-return\n */\n \"no-else-return\": \"warn\",\n \"no-empty\": \"warn\",\n \"no-empty-character-class\": \"warn\",\n \"no-empty-pattern\": \"warn\",\n \"no-empty-static-block\": \"warn\",\n /**\n * Disallow `eval()`.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-eval\n */\n \"no-eval\": \"warn\",\n \"no-ex-assign\": \"warn\",\n /**\n * Disallow extending native objects.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-extend-native\n */\n \"no-extend-native\": \"warn\",\n /**\n * Disallow unnecessary function binding.\n *\n * 🔧 Fixable - https://eslint.org/docs/rules/no-extra-bind\n */\n \"no-extra-bind\": \"warn\",\n \"no-extra-boolean-cast\": \"warn\",\n /**\n * Disallow unnecessary labels.\n *\n * 🔧 Fixable - https://eslint.org/docs/rules/no-extra-label\n */\n \"no-extra-label\": \"warn\",\n \"no-fallthrough\": \"warn\",\n \"no-global-assign\": \"warn\",\n /**\n * Make people convert types explicitly e.g. `Boolean(foo)` instead of `!!foo`.\n *\n * 🔧 Partially Fixable - https://eslint.org/docs/rules/no-implicit-coercion\n */\n \"no-implicit-coercion\": \"warn\",\n \"no-invalid-regexp\": \"warn\",\n \"no-irregular-whitespace\": \"warn\",\n /**\n * Disallow usage of `__iterator__` property.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-iterator\n */\n \"no-iterator\": \"warn\",\n /**\n * Disallow labels that share a name with a variable.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-label-var\n */\n \"no-label-var\": \"warn\",\n /**\n * Disallow use of labels for anything other than loops and switches.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-labels\n */\n \"no-labels\": [\"warn\"],\n /**\n * Disallow unnecessary nested blocks.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-lone-blocks\n */\n \"no-lone-blocks\": \"warn\",\n /**\n * Disallow if as the only statement in an else block.\n *\n * 🔧 Fixable - https://eslint.org/docs/rules/no-lonely-if\n */\n \"no-lonely-if\": \"warn\",\n \"no-loss-of-precision\": \"warn\",\n \"no-misleading-character-class\": \"warn\",\n /**\n * Disallow use of chained assignment expressions.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-multi-assign\n */\n \"no-multi-assign\": [\"warn\"],\n /**\n * Disallow nested ternary expressions.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-nested-ternary\n */\n \"no-nested-ternary\": \"warn\",\n /**\n * Disallow `new` for side effects.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-new\n */\n \"no-new\": \"warn\",\n /**\n * Disallow function constructors.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-new-func\n */\n \"no-new-func\": \"warn\",\n /**\n * Disallow primitive wrapper instances, such as `new String('foo')`.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-new-wrappers\n */\n \"no-new-wrappers\": \"warn\",\n \"no-nonoctal-decimal-escape\": \"warn\",\n \"no-octal\": \"warn\",\n /**\n * Disallow use of octal escape sequences in string literals.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-octal-escape\n */\n \"no-octal-escape\": \"warn\",\n /**\n * Disallow reassignment of function parameters.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-param-reassign\n */\n \"no-param-reassign\": \"warn\",\n /**\n * Disallow returning values from Promise executor functions.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-promise-executor-return\n */\n \"no-promise-executor-return\": \"warn\",\n /**\n * Disallow usage of the deprecated `__proto__` property.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-proto\n */\n \"no-proto\": \"warn\",\n \"no-prototype-builtins\": \"warn\",\n \"no-regex-spaces\": \"warn\",\n /**\n * Disallow assignment in `return` statement.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-return-assign\n */\n \"no-return-assign\": \"warn\",\n /**\n * Disallow use of `javascript:` urls.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-script-url\n */\n \"no-script-url\": \"warn\",\n \"no-self-assign\": \"warn\",\n /**\n * Disallow comparisons where both sides are exactly the same.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-self-compare\n */\n \"no-self-compare\": \"warn\",\n /**\n * Disallow use of comma operator.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-sequences\n */\n \"no-sequences\": \"warn\",\n \"no-shadow-restricted-names\": \"warn\",\n \"no-sparse-arrays\": \"warn\",\n /**\n * Disallow template literal placeholder syntax in regular strings, as\n * these are likely errors.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-template-curly-in-string\n */\n \"no-template-curly-in-string\": \"warn\",\n /**\n * Disallow initializing variables to `undefined`.\n *\n * 🔧 Fixable - https://eslint.org/docs/rules/no-undef-init\n */\n \"no-undef-init\": \"warn\",\n \"no-unexpected-multiline\": \"warn\",\n /**\n * Disallow ternary operators when simpler alternatives exist.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-unneeded-ternary\n */\n \"no-unneeded-ternary\": \"warn\",\n /**\n * Disallow loops with a body that allows only one iteration.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-unreachable-loop\n */\n \"no-unreachable-loop\": \"warn\",\n \"no-unsafe-finally\": \"warn\",\n \"no-unsafe-optional-chaining\": \"warn\",\n \"no-unused-labels\": \"warn\",\n \"no-unused-private-class-members\": \"warn\",\n \"no-useless-backreference\": \"warn\",\n /**\n * Disallow unnecessary `.call()` and `.apply()`.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-useless-call\n */\n \"no-useless-call\": \"warn\",\n \"no-useless-catch\": \"warn\",\n /**\n * Disallow useless computed property keys.\n *\n * � Fixable - https://eslint.org/docs/rules/no-useless-computed-key\n */\n \"no-useless-computed-key\": \"warn\",\n /**\n * Disallow unnecessary concatenation of strings.\n *\n * � Not fixable - https://eslint.org/docs/rules/no-useless-concat\n */\n \"no-useless-concat\": \"warn\",\n \"no-useless-escape\": \"warn\",\n /**\n * Disallow renaming import, export, and destructured assignments to the\n * same name.\n *\n * � Fixable - https://eslint.org/docs/rules/no-useless-rename\n */\n \"no-useless-rename\": \"warn\",\n /**\n * Disallow redundant return statements.\n *\n * � Fixable - https://eslint.org/docs/rules/no-useless-return\n */\n \"no-useless-return\": \"warn\",\n /**\n * Require `let` or `const` instead of `var`.\n * ts transpiles let/const to var, so no need for vars any more\n *\n * 🔧 Fixable - https://eslint.org/docs/rules/no-var\n */\n \"no-var\": \"warn\",\n \"no-with\": \"warn\",\n /**\n * Require object literal shorthand syntax.\n *\n * 🔧 Fixable - https://eslint.org/docs/rules/object-shorthand\n */\n \"object-shorthand\": \"warn\",\n /**\n * Require default to `const` instead of `let`.\n * ts provides better types with const\n *\n * 🔧 Fixable - https://eslint.org/docs/rules/prefer-const\n */\n \"prefer-const\": \"warn\",\n /**\n * Require using named capture groups in regular expressions.\n *\n * � Not fixable - https://eslint.org/docs/rules/prefer-named-capture-group\n */\n \"prefer-named-capture-group\": \"warn\",\n /**\n * Disallow parseInt() in favor of binary, octal, and hexadecimal literals.\n *\n * 🔧 Fixable - https://eslint.org/docs/rules/prefer-numeric-literals\n */\n \"prefer-numeric-literals\": \"warn\",\n /**\n * Require use of an object spread over Object.assign.\n *\n * 🔧 Fixable - https://eslint.org/docs/rules/prefer-object-spread\n */\n \"prefer-object-spread\": \"warn\",\n /**\n * Disallow use of the RegExp constructor in favor of regular expression\n * literals.\n *\n * � Not fixable - https://eslint.org/docs/rules/prefer-regex-literals\n */\n \"prefer-regex-literals\": \"warn\",\n /**\n * Require using rest parameters instead of `arguments`.\n * ts provides better types with rest args over arguments\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/prefer-rest-params\n */\n \"prefer-rest-params\": \"warn\",\n /**\n * Require using spread syntax instead of `.apply()`.\n * ts transpiles spread to apply, so no need for manual apply\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/prefer-spread\n */\n \"prefer-spread\": \"warn\",\n /**\n * Require using template literals instead of string concatenation.\n *\n * 🔧 Fixable - https://eslint.org/docs/rules/prefer-template\n */\n \"prefer-template\": \"warn\",\n \"require-yield\": \"warn\",\n /**\n * Require a `Symbol` description.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/symbol-description\n */\n \"symbol-description\": \"warn\",\n \"use-isnan\": \"warn\",\n \"valid-typeof\": \"warn\",\n /**\n * Disallow \"Yoda conditions\", ensuring the comparison.\n *\n *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AqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMrB,qBAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOrB,UAAU;AAAA,EACV,WAAW;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMX,oBAAoB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOpB,gBAAgB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMhB,8BAA8B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAM9B,2BAA2B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAM3B,wBAAwB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOxB,yBAAyB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOzB,sBAAsB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOtB,iBAAiB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMjB,mBAAmB;AAAA,EACnB,iBAAiB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMjB,sBAAsB;AAAA,EACtB,aAAa;AAAA,EACb,gBAAgB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMhB,MAAM;AACR;","names":[]}
@@ -0,0 +1,14 @@
1
+ import {
2
+ configNames
3
+ } from "./chunk-W56QT6S7.js";
4
+
5
+ // src/eslint/ignores.ts
6
+ var ignoresConfig = (userIgnores) => ({
7
+ ignores: ["**/node_modules/", "**/dist/", ".git/", ...userIgnores],
8
+ name: configNames.ignores
9
+ });
10
+
11
+ export {
12
+ ignoresConfig
13
+ };
14
+ //# sourceMappingURL=chunk-Q3UZX7NT.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/eslint/ignores.ts"],"sourcesContent":["import type { Linter } from \"eslint\";\n\nimport { configNames } from \"./constants.js\";\n\nexport const ignoresConfig = (userIgnores: string[]): Linter.Config => ({\n ignores: [\"**/node_modules/\", \"**/dist/\", \".git/\", ...userIgnores],\n name: configNames.ignores,\n});\n"],"mappings":";;;;;AAIO,IAAM,gBAAgB,CAAC,iBAA0C;AAAA,EACtE,SAAS,CAAC,oBAAoB,YAAY,SAAS,GAAG,WAAW;AAAA,EACjE,MAAM,YAAY;AACpB;","names":[]}