@zayne-labs/eslint-config 0.2.11 → 0.3.0

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.
package/README.md CHANGED
@@ -303,7 +303,7 @@ export default combine(
303
303
 
304
304
  Check out the [configs](https://github.com/zayne-labs/eslint-config/blob/main/src/configs) and [factory](https://github.com/zayne-labs/eslint-config/blob/main/src/factory.ts) for more details.
305
305
 
306
- > Thanks to [zayne/eslint-config](https://github.com/zayne/eslint-config) for the inspiration and reference.
306
+ > Thanks to [antfu/eslint-config](https://github.com/antfu/eslint-config) for the inspiration and reference.
307
307
 
308
308
  ### Plugins Renaming
309
309
 
package/dist/index.d.ts CHANGED
@@ -278,233 +278,233 @@ interface Rules {
278
278
  'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>
279
279
  /**
280
280
  * Enforce or ban the use of inline type-only markers for named imports.
281
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/consistent-type-specifier-style.md
281
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/consistent-type-specifier-style.md
282
282
  */
283
283
  'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>
284
284
  /**
285
285
  * Ensure a default export is present, given a default import.
286
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/default.md
286
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/default.md
287
287
  */
288
288
  'import/default'?: Linter.RuleEntry<[]>
289
289
  /**
290
290
  * Enforce a leading comment with the webpackChunkName for dynamic imports.
291
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/dynamic-import-chunkname.md
291
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/dynamic-import-chunkname.md
292
292
  */
293
293
  'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>
294
294
  /**
295
295
  * Forbid any invalid exports, i.e. re-export of the same name.
296
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/export.md
296
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/export.md
297
297
  */
298
298
  'import/export'?: Linter.RuleEntry<[]>
299
299
  /**
300
300
  * Ensure all exports appear after other statements.
301
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/exports-last.md
301
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/exports-last.md
302
302
  */
303
303
  'import/exports-last'?: Linter.RuleEntry<[]>
304
304
  /**
305
305
  * Ensure consistent use of file extension within the import path.
306
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/extensions.md
306
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/extensions.md
307
307
  */
308
308
  'import/extensions'?: Linter.RuleEntry<ImportExtensions>
309
309
  /**
310
310
  * Ensure all imports appear before other statements.
311
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/first.md
311
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/first.md
312
312
  */
313
313
  'import/first'?: Linter.RuleEntry<ImportFirst>
314
314
  /**
315
315
  * Prefer named exports to be grouped together in a single export declaration.
316
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/group-exports.md
316
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/group-exports.md
317
317
  */
318
318
  'import/group-exports'?: Linter.RuleEntry<[]>
319
319
  /**
320
320
  * Replaced by `import-x/first`.
321
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/imports-first.md
321
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/imports-first.md
322
322
  * @deprecated
323
323
  */
324
324
  'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>
325
325
  /**
326
326
  * Enforce the maximum number of dependencies a module can have.
327
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/max-dependencies.md
327
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/max-dependencies.md
328
328
  */
329
329
  'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>
330
330
  /**
331
331
  * Ensure named imports correspond to a named export in the remote file.
332
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/named.md
332
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/named.md
333
333
  */
334
334
  'import/named'?: Linter.RuleEntry<ImportNamed>
335
335
  /**
336
336
  * Ensure imported namespaces contain dereferenced properties as they are dereferenced.
337
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/namespace.md
337
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/namespace.md
338
338
  */
339
339
  'import/namespace'?: Linter.RuleEntry<ImportNamespace>
340
340
  /**
341
341
  * Enforce a newline after import statements.
342
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/newline-after-import.md
342
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/newline-after-import.md
343
343
  */
344
344
  'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>
345
345
  /**
346
346
  * Forbid import of modules using absolute paths.
347
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-absolute-path.md
347
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-absolute-path.md
348
348
  */
349
349
  'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>
350
350
  /**
351
351
  * Forbid AMD `require` and `define` calls.
352
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-amd.md
352
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-amd.md
353
353
  */
354
354
  'import/no-amd'?: Linter.RuleEntry<[]>
355
355
  /**
356
356
  * Forbid anonymous values as default exports.
357
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-anonymous-default-export.md
357
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-anonymous-default-export.md
358
358
  */
359
359
  'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>
360
360
  /**
361
361
  * Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
362
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-commonjs.md
362
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-commonjs.md
363
363
  */
364
364
  'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>
365
365
  /**
366
366
  * Forbid a module from importing a module with a dependency path back to itself.
367
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-cycle.md
367
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-cycle.md
368
368
  */
369
369
  'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>
370
370
  /**
371
371
  * Forbid default exports.
372
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-default-export.md
372
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-default-export.md
373
373
  */
374
374
  'import/no-default-export'?: Linter.RuleEntry<[]>
375
375
  /**
376
376
  * Forbid imported names marked with `@deprecated` documentation tag.
377
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-deprecated.md
377
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-deprecated.md
378
378
  */
379
379
  'import/no-deprecated'?: Linter.RuleEntry<[]>
380
380
  /**
381
381
  * Forbid repeated import of the same module in multiple places.
382
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-duplicates.md
382
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-duplicates.md
383
383
  */
384
384
  'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>
385
385
  /**
386
386
  * Forbid `require()` calls with expressions.
387
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-dynamic-require.md
387
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-dynamic-require.md
388
388
  */
389
389
  'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>
390
390
  /**
391
391
  * Forbid empty named import blocks.
392
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-empty-named-blocks.md
392
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-empty-named-blocks.md
393
393
  */
394
394
  'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>
395
395
  /**
396
396
  * Forbid the use of extraneous packages.
397
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-extraneous-dependencies.md
397
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-extraneous-dependencies.md
398
398
  */
399
399
  'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>
400
400
  /**
401
401
  * Forbid import statements with CommonJS module.exports.
402
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-import-module-exports.md
402
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-import-module-exports.md
403
403
  */
404
404
  'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>
405
405
  /**
406
406
  * Forbid importing the submodules of other modules.
407
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-internal-modules.md
407
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-internal-modules.md
408
408
  */
409
409
  'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>
410
410
  /**
411
411
  * Forbid the use of mutable exports with `var` or `let`.
412
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-mutable-exports.md
412
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-mutable-exports.md
413
413
  */
414
414
  'import/no-mutable-exports'?: Linter.RuleEntry<[]>
415
415
  /**
416
416
  * Forbid use of exported name as identifier of default export.
417
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-named-as-default.md
417
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-named-as-default.md
418
418
  */
419
419
  'import/no-named-as-default'?: Linter.RuleEntry<[]>
420
420
  /**
421
421
  * Forbid use of exported name as property of default export.
422
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-named-as-default-member.md
422
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-named-as-default-member.md
423
423
  */
424
424
  'import/no-named-as-default-member'?: Linter.RuleEntry<[]>
425
425
  /**
426
426
  * Forbid named default exports.
427
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-named-default.md
427
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-named-default.md
428
428
  */
429
429
  'import/no-named-default'?: Linter.RuleEntry<[]>
430
430
  /**
431
431
  * Forbid named exports.
432
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-named-export.md
432
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-named-export.md
433
433
  */
434
434
  'import/no-named-export'?: Linter.RuleEntry<[]>
435
435
  /**
436
436
  * Forbid namespace (a.k.a. "wildcard" `*`) imports.
437
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-namespace.md
437
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-namespace.md
438
438
  */
439
439
  'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>
440
440
  /**
441
441
  * Forbid Node.js builtin modules.
442
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-nodejs-modules.md
442
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-nodejs-modules.md
443
443
  */
444
444
  'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>
445
445
  /**
446
446
  * Forbid importing packages through relative paths.
447
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-relative-packages.md
447
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-relative-packages.md
448
448
  */
449
449
  'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>
450
450
  /**
451
451
  * Forbid importing modules from parent directories.
452
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-relative-parent-imports.md
452
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-relative-parent-imports.md
453
453
  */
454
454
  'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>
455
455
  /**
456
456
  * Forbid importing a default export by a different name.
457
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-rename-default.md
457
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-rename-default.md
458
458
  */
459
459
  'import/no-rename-default'?: Linter.RuleEntry<ImportNoRenameDefault>
460
460
  /**
461
461
  * Enforce which files can be imported in a given folder.
462
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-restricted-paths.md
462
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-restricted-paths.md
463
463
  */
464
464
  'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>
465
465
  /**
466
466
  * Forbid a module from importing itself.
467
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-self-import.md
467
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-self-import.md
468
468
  */
469
469
  'import/no-self-import'?: Linter.RuleEntry<[]>
470
470
  /**
471
471
  * Forbid unassigned imports.
472
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-unassigned-import.md
472
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-unassigned-import.md
473
473
  */
474
474
  'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>
475
475
  /**
476
476
  * Ensure imports point to a file/module that can be resolved.
477
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-unresolved.md
477
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-unresolved.md
478
478
  */
479
479
  'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>
480
480
  /**
481
481
  * Forbid modules without exports, or exports without matching import in another module.
482
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-unused-modules.md
482
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-unused-modules.md
483
483
  */
484
484
  'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>
485
485
  /**
486
486
  * Forbid unnecessary path segments in import and require statements.
487
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-useless-path-segments.md
487
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-useless-path-segments.md
488
488
  */
489
489
  'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>
490
490
  /**
491
491
  * Forbid webpack loader syntax in imports.
492
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/no-webpack-loader-syntax.md
492
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-webpack-loader-syntax.md
493
493
  */
494
494
  'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
495
495
  /**
496
496
  * Enforce a convention in module import order.
497
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/order.md
497
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/order.md
498
498
  */
499
499
  'import/order'?: Linter.RuleEntry<ImportOrder>
500
500
  /**
501
501
  * Prefer a default export if module exports a single name or multiple names.
502
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/prefer-default-export.md
502
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/prefer-default-export.md
503
503
  */
504
504
  'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>
505
505
  /**
506
506
  * Forbid potentially ambiguous parse goal (`script` vs. `module`).
507
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.3/docs/rules/unambiguous.md
507
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/unambiguous.md
508
508
  */
509
509
  'import/unambiguous'?: Linter.RuleEntry<[]>
510
510
  /**
@@ -1327,7 +1327,7 @@ interface Rules {
1327
1327
  */
1328
1328
  'no-class-assign'?: Linter.RuleEntry<[]>
1329
1329
  /**
1330
- * Disallow comparing against -0
1330
+ * Disallow comparing against `-0`
1331
1331
  * @see https://eslint.org/docs/latest/rules/no-compare-neg-zero
1332
1332
  */
1333
1333
  'no-compare-neg-zero'?: Linter.RuleEntry<[]>
@@ -2598,6 +2598,11 @@ interface Rules {
2598
2598
  * @see https://eslint-react.xyz/docs/rules/dom-no-script-url
2599
2599
  */
2600
2600
  'react-dom/no-script-url'?: Linter.RuleEntry<[]>
2601
+ /**
2602
+ * disallow usage of unknown DOM property
2603
+ * @see https://eslint-react.xyz/docs/rules/dom-no-unknown-property
2604
+ */
2605
+ 'react-dom/no-unknown-property'?: Linter.RuleEntry<ReactDomNoUnknownProperty>
2601
2606
  /**
2602
2607
  * disallow unsafe iframe 'sandbox' attribute combinations
2603
2608
  * @see https://eslint-react.xyz/docs/rules/dom-no-unsafe-iframe-sandbox
@@ -2714,6 +2719,16 @@ interface Rules {
2714
2719
  * @see https://eslint-react.xyz/docs/rules/ensure-forward-ref-using-ref
2715
2720
  */
2716
2721
  'react/ensure-forward-ref-using-ref'?: Linter.RuleEntry<[]>
2722
+ /**
2723
+ * disallow duplicate props
2724
+ * @see https://eslint-react.xyz/docs/rules/jsx-no-duplicate-props
2725
+ */
2726
+ 'react/jsx-no-duplicate-props'?: Linter.RuleEntry<[]>
2727
+ /**
2728
+ * a helper rule to mark variables as used
2729
+ * @see https://eslint-react.xyz/docs/rules/jsx-uses-vars
2730
+ */
2731
+ 'react/jsx-uses-vars'?: Linter.RuleEntry<[]>
2717
2732
  /**
2718
2733
  * disallow accessing 'this.state' within 'setState'
2719
2734
  * @see https://eslint-react.xyz/docs/rules/no-access-state-in-setstate
@@ -5630,6 +5645,7 @@ type JsdocInformativeDocs = []|[{
5630
5645
  }]
5631
5646
  // ----- jsdoc/lines-before-block -----
5632
5647
  type JsdocLinesBeforeBlock = []|[{
5648
+ checkBlockStarts?: boolean
5633
5649
  excludedTags?: string[]
5634
5650
  ignoreSameLine?: boolean
5635
5651
  lines?: number
@@ -7497,6 +7513,10 @@ type PerfectionistSortArrayIncludes = []|[{
7497
7513
  // ----- perfectionist/sort-classes -----
7498
7514
  type PerfectionistSortClasses = []|[{
7499
7515
 
7516
+ ignoreCallbackDependenciesPatterns?: string[]
7517
+
7518
+ partitionByComment?: (string[] | boolean | string)
7519
+
7500
7520
  customGroups?: ({
7501
7521
 
7502
7522
  groupName?: string
@@ -7506,12 +7526,12 @@ type PerfectionistSortClasses = []|[{
7506
7526
  order?: ("desc" | "asc")
7507
7527
  anyOf?: {
7508
7528
 
7509
- modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]
7510
-
7511
7529
  elementValuePattern?: string
7512
7530
 
7513
7531
  decoratorNamePattern?: string
7514
7532
 
7533
+ modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]
7534
+
7515
7535
  selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method")
7516
7536
 
7517
7537
  elementNamePattern?: string
@@ -7524,21 +7544,17 @@ type PerfectionistSortClasses = []|[{
7524
7544
 
7525
7545
  order?: ("desc" | "asc")
7526
7546
 
7527
- modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]
7528
-
7529
7547
  elementValuePattern?: string
7530
7548
 
7531
7549
  decoratorNamePattern?: string
7532
7550
 
7551
+ modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]
7552
+
7533
7553
  selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method")
7534
7554
 
7535
7555
  elementNamePattern?: string
7536
7556
  })[]
7537
7557
 
7538
- ignoreCallbackDependenciesPatterns?: string[]
7539
-
7540
- partitionByComment?: (string[] | boolean | string)
7541
-
7542
7558
  partitionByNewLine?: boolean
7543
7559
 
7544
7560
  specialCharacters?: ("remove" | "trim" | "keep")
@@ -7701,8 +7717,39 @@ type PerfectionistSortInterfaces = []|[{
7701
7717
  ignorePattern?: string[]
7702
7718
 
7703
7719
  partitionByComment?: (string[] | boolean | string)
7720
+ customGroups?: ({
7721
+ [k: string]: (string | string[]) | undefined
7722
+ } | ({
7723
+
7724
+ groupName?: string
7725
+
7726
+ type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
7727
+
7728
+ order?: ("desc" | "asc")
7729
+ anyOf?: {
7730
+
7731
+ modifiers?: ("optional" | "required" | "multiline")[]
7732
+
7733
+ selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
7734
+
7735
+ elementNamePattern?: string
7736
+ }[]
7737
+ } | {
7738
+
7739
+ groupName?: string
7740
+
7741
+ type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
7742
+
7743
+ order?: ("desc" | "asc")
7744
+
7745
+ modifiers?: ("optional" | "required" | "multiline")[]
7746
+
7747
+ selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
7748
+
7749
+ elementNamePattern?: string
7750
+ })[])
7704
7751
 
7705
- groupKind?: ("mixed" | "optional-first" | "required-first")
7752
+ groupKind?: ("mixed" | "required-first" | "optional-first")
7706
7753
 
7707
7754
  partitionByNewLine?: boolean
7708
7755
 
@@ -7710,10 +7757,6 @@ type PerfectionistSortInterfaces = []|[{
7710
7757
 
7711
7758
  newlinesBetween?: ("ignore" | "always" | "never")
7712
7759
 
7713
- customGroups?: {
7714
- [k: string]: (string | string[]) | undefined
7715
- }
7716
-
7717
7760
  ignoreCase?: boolean
7718
7761
 
7719
7762
  locales?: (string | string[])
@@ -7786,6 +7829,8 @@ type PerfectionistSortMaps = []|[{
7786
7829
  // ----- perfectionist/sort-modules -----
7787
7830
  type PerfectionistSortModules = []|[{
7788
7831
 
7832
+ partitionByComment?: (string[] | boolean | string)
7833
+
7789
7834
  customGroups?: ({
7790
7835
 
7791
7836
  groupName?: string
@@ -7795,12 +7840,10 @@ type PerfectionistSortModules = []|[{
7795
7840
  order?: ("desc" | "asc")
7796
7841
  anyOf?: {
7797
7842
 
7798
- modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[]
7799
-
7800
- elementValuePattern?: string
7801
-
7802
7843
  decoratorNamePattern?: string
7803
7844
 
7845
+ modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[]
7846
+
7804
7847
  selector?: ("enum" | "function" | "interface" | "type" | "class")
7805
7848
 
7806
7849
  elementNamePattern?: string
@@ -7813,19 +7856,15 @@ type PerfectionistSortModules = []|[{
7813
7856
 
7814
7857
  order?: ("desc" | "asc")
7815
7858
 
7816
- modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[]
7817
-
7818
- elementValuePattern?: string
7819
-
7820
7859
  decoratorNamePattern?: string
7821
7860
 
7861
+ modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[]
7862
+
7822
7863
  selector?: ("enum" | "function" | "interface" | "type" | "class")
7823
7864
 
7824
7865
  elementNamePattern?: string
7825
7866
  })[]
7826
7867
 
7827
- partitionByComment?: (string[] | boolean | string)
7828
-
7829
7868
  partitionByNewLine?: boolean
7830
7869
 
7831
7870
  specialCharacters?: ("remove" | "trim" | "keep")
@@ -7885,7 +7924,40 @@ type PerfectionistSortNamedImports = []|[{
7885
7924
  // ----- perfectionist/sort-object-types -----
7886
7925
  type PerfectionistSortObjectTypes = []|[{
7887
7926
 
7927
+ ignorePattern?: string[]
7928
+
7888
7929
  partitionByComment?: (string[] | boolean | string)
7930
+ customGroups?: ({
7931
+ [k: string]: (string | string[]) | undefined
7932
+ } | ({
7933
+
7934
+ groupName?: string
7935
+
7936
+ type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
7937
+
7938
+ order?: ("desc" | "asc")
7939
+ anyOf?: {
7940
+
7941
+ modifiers?: ("optional" | "required" | "multiline")[]
7942
+
7943
+ selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
7944
+
7945
+ elementNamePattern?: string
7946
+ }[]
7947
+ } | {
7948
+
7949
+ groupName?: string
7950
+
7951
+ type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
7952
+
7953
+ order?: ("desc" | "asc")
7954
+
7955
+ modifiers?: ("optional" | "required" | "multiline")[]
7956
+
7957
+ selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
7958
+
7959
+ elementNamePattern?: string
7960
+ })[])
7889
7961
 
7890
7962
  groupKind?: ("mixed" | "required-first" | "optional-first")
7891
7963
 
@@ -7895,10 +7967,6 @@ type PerfectionistSortObjectTypes = []|[{
7895
7967
 
7896
7968
  newlinesBetween?: ("ignore" | "always" | "never")
7897
7969
 
7898
- customGroups?: {
7899
- [k: string]: (string | string[]) | undefined
7900
- }
7901
-
7902
7970
  ignoreCase?: boolean
7903
7971
 
7904
7972
  locales?: (string | string[])
@@ -7912,12 +7980,19 @@ type PerfectionistSortObjectTypes = []|[{
7912
7980
  // ----- perfectionist/sort-objects -----
7913
7981
  type PerfectionistSortObjects = []|[{
7914
7982
 
7983
+ destructuredObjects?: (boolean | {
7984
+
7985
+ groups?: boolean
7986
+ })
7987
+
7915
7988
  ignorePattern?: string[]
7916
7989
 
7917
7990
  partitionByComment?: (string[] | boolean | string)
7918
7991
 
7919
7992
  destructureOnly?: boolean
7920
7993
 
7994
+ objectDeclarations?: boolean
7995
+
7921
7996
  styledComponents?: boolean
7922
7997
 
7923
7998
  partitionByNewLine?: boolean
@@ -8073,6 +8148,11 @@ type Quotes = []|[("single" | "double" | "backtick")]|[("single" | "double" | "b
8073
8148
  })]
8074
8149
  // ----- radix -----
8075
8150
  type Radix = []|[("always" | "as-needed")]
8151
+ // ----- react-dom/no-unknown-property -----
8152
+ type ReactDomNoUnknownProperty = []|[{
8153
+ ignore?: string[]
8154
+ requireDataLowercase?: boolean
8155
+ }]
8076
8156
  // ----- react-hooks/exhaustive-deps -----
8077
8157
  type ReactHooksExhaustiveDeps = []|[{
8078
8158
  additionalHooks?: string
@@ -8096,15 +8176,18 @@ type ReactNamingConventionFilename = []|[(("PascalCase" | "camelCase" | "kebab-c
8096
8176
  type ReactNamingConventionFilenameExtension = []|[(("always" | "as-needed") | {
8097
8177
  allow?: ("always" | "as-needed")
8098
8178
  extensions?: string[]
8179
+ ignoreFilesWithoutCode?: boolean
8099
8180
  })]
8100
8181
  // ----- react-refresh/only-export-components -----
8101
8182
  type ReactRefreshOnlyExportComponents = []|[{
8183
+ allowExportNames?: string[]
8102
8184
  allowConstantExport?: boolean
8185
+ customHOCs?: string[]
8103
8186
  checkJS?: boolean
8104
- allowExportNames?: string[]
8105
8187
  }]
8106
8188
  // ----- react/no-useless-fragment -----
8107
8189
  type ReactNoUselessFragment = []|[{
8190
+
8108
8191
  allowExpressions?: boolean
8109
8192
  }]
8110
8193
  // ----- require-atomic-updates -----
@@ -8146,6 +8229,7 @@ type SortKeys = []|[("asc" | "desc")]|[("asc" | "desc"), {
8146
8229
  natural?: boolean
8147
8230
  minKeys?: number
8148
8231
  allowLineSeparatedGroups?: boolean
8232
+ ignoreComputedKeys?: boolean
8149
8233
  }]
8150
8234
  // ----- sort-vars -----
8151
8235
  type SortVars = []|[{
@@ -10370,6 +10454,10 @@ type TsEslintPreferOptionalChain = []|[{
10370
10454
  type TsEslintPreferPromiseRejectErrors = []|[{
10371
10455
 
10372
10456
  allowEmptyReject?: boolean
10457
+
10458
+ allowThrowingAny?: boolean
10459
+
10460
+ allowThrowingUnknown?: boolean
10373
10461
  }]
10374
10462
  // ----- ts-eslint/prefer-readonly -----
10375
10463
  type TsEslintPreferReadonly = []|[{
package/dist/index.js CHANGED
@@ -1077,6 +1077,7 @@ var react = async (options = {}) => {
1077
1077
  "react/no-missing-component-display-name": "error",
1078
1078
  "react/no-useless-fragment": "error",
1079
1079
  "react/prefer-destructuring-assignment": "error",
1080
+ "react/prefer-read-only-props": "off",
1080
1081
  "react/prefer-shorthand-fragment": "error",
1081
1082
  ...overrides
1082
1083
  }
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/utils.ts","../src/globs.ts","../src/configs/ignores.ts","../src/configs/javascript.ts","../src/configs/tailwindcss.ts","../src/configs/typescript.ts","../src/configs/unicorn.ts","../src/configs/imports.ts","../src/configs/perfectionist.ts","../src/configs/stylistic.ts","../src/configs/jsonc.ts","../src/configs/jsdoc.ts","../src/constants.ts","../src/configs/react.ts","../src/configs/tanstack.ts","../src/configs/sort.ts","../src/configs/node.ts","../src/configs/jsx.ts","../src/factory.ts"],"names":["stylistic","ignores","typescript","jsx","isPackageExists"],"mappings":";;;;;;;AAKa,IAAA,QAAA,GAAW,CAA0C,KAAqC,KAAA;AACtG,EAAO,OAAA,OAAO,UAAU,QAAY,IAAA,KAAA,KAAU,QAAQ,CAAC,KAAA,CAAM,QAAQ,KAAK,CAAA;AAC3E;AAKa,IAAA,OAAA,GAAU,UACnB,OACC,KAAA;AACJ,EAAA,MAAM,QAAW,GAAA,MAAM,OAAQ,CAAA,GAAA,CAAI,OAAO,CAAA;AAE1C,EAAA,OAAO,SAAS,IAAK,EAAA;AACtB;AAEa,IAAA,cAAA,GAAiB,OAC7B,MAC2F,KAAA;AAC3F,EAAA,MAAM,WAAW,MAAM,MAAA;AAGvB,EAAA,OAAQ,SAAgC,OAAW,IAAA,QAAA;AACpD;AAoBa,IAAA,WAAA,GAAc,CAC1B,KAAA,EACA,SACI,KAAA;AACJ,EAAA,IAAI,CAAC,KAAO,EAAA;AAEZ,EAAM,MAAA,mBAAA,GAAsB,MAAO,CAAA,OAAA,CAAQ,KAAK,CAAA,CAAE,IAAI,CAAC,CAAC,OAAS,EAAA,SAAS,CAAM,KAAA;AAC/E,IAAA,KAAA,MAAW,CAAC,WAAa,EAAA,WAAW,KAAK,MAAO,CAAA,OAAA,CAAQ,SAAS,CAAG,EAAA;AACnE,MAAA,IAAI,OAAQ,CAAA,UAAA,CAAW,CAAG,EAAA,WAAW,GAAG,CAAG,EAAA;AAC1C,QAAO,OAAA,CAAC,CAAG,EAAA,WAAW,CAAG,EAAA,OAAA,CAAQ,MAAM,WAAY,CAAA,MAAM,CAAC,CAAA,CAAA,EAAI,SAAS,CAAA;AAAA;AACxE;AAGD,IAAO,OAAA,CAAC,SAAS,SAAS,CAA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ACrD;AAAA,KACF;AAAA;AAGD,EAAA,IAAI,WAAa,EAAA;AAChB,IAAQ,OAAA,CAAA,IAAA;AAAA,MACP,KAAM,CAAA;AAAA,QACL,GAAG,eAAe,WAAW,CAAA;AAAA,QAC7B,UAAA,EAAY,QAAQ,YAAY;AAAA,OAChC;AAAA,KACF;AAAA;AAGD,EAAA,IAAI,WAAW,aAAe,EAAA;AAC7B,IAAA,MAAM,IAAI,KAAA;AAAA,MACT;AAAA,KACD;AAAA;AAGD,EAAI,IAAA,QAAA,GAAW,IAAI,kBAAqD,EAAA;AAExE,EAAA,QAAA,GAAW,QAAS,CAAA,MAAA,CAAO,GAAG,OAAA,EAAS,GAAI,WAAuB,CAAA;AAElE,EAAA,IAAI,iBAAmB,EAAA;AACtB,IAAW,QAAA,GAAA,QAAA,CAAS,cAAc,sBAAsB,CAAA;AAAA;AAGzD,EAAO,OAAA,QAAA;AACR","file":"index.js","sourcesContent":["import { fileURLToPath } from \"node:url\";\nimport type { ESLint } from \"eslint\";\nimport { isPackageExists } from \"local-pkg\";\nimport type { Awaitable, TypedFlatConfigItem } from \"./types\";\n\nexport const isObject = <TObject extends Record<string, unknown>>(value: unknown): value is TObject => {\n\treturn typeof value === \"object\" && value !== null && !Array.isArray(value);\n};\n\n/**\n * @description - Combine array and non-array configs into a single array.\n */\nexport const combine = async (\n\t...configs: Array<Awaitable<TypedFlatConfigItem | TypedFlatConfigItem[]>>\n) => {\n\tconst resolved = await Promise.all(configs);\n\n\treturn resolved.flat();\n};\n\nexport const interopDefault = async <TModule>(\n\tmodule: Awaitable<TModule>\n): Promise<TModule extends { default: infer TDefaultExport } ? TDefaultExport : TModule> => {\n\tconst resolved = await module;\n\n\t// eslint-disable-next-line ts-eslint/no-unnecessary-condition\n\treturn (resolved as { default: never }).default ?? resolved;\n};\n\n/**\n * @description - Rename plugin prefixes in a rule object.\n * Accepts a map of prefixes to rename.\n *\n * @example\n * ```ts\n * import { renameRules } from '@zayne-labs/eslint-config'\n *\n * export default [{\n * rules: renameRules(\n * {\n * '@typescript-eslint/indent': 'error'\n * },\n * { '@typescript-eslint': 'ts' }\n * )\n * }]\n * ```\n */\nexport const renameRules = (\n\trules: Record<string, unknown> | undefined,\n\trenameMap: Record<string, string>\n) => {\n\tif (!rules) return;\n\n\tconst renamedRulesEntries = Object.entries(rules).map(([ruleKey, ruleValue]) => {\n\t\tfor (const [oldRuleName, newRuleName] of Object.entries(renameMap)) {\n\t\t\tif (ruleKey.startsWith(`${oldRuleName}/`)) {\n\t\t\t\treturn [`${newRuleName}${ruleKey.slice(oldRuleName.length)}`, ruleValue];\n\t\t\t}\n\t\t}\n\n\t\treturn [ruleKey, ruleValue];\n\t});\n\n\treturn Object.fromEntries(renamedRulesEntries) as TypedFlatConfigItem[\"rules\"];\n};\n\nexport const renamePlugins = (\n\tplugins: Record<string, unknown> | undefined,\n\trenameMap: Record<string, string>\n) => {\n\tif (!plugins) return;\n\n\tconst renamedPluginEntries = Object.entries(plugins).map(([pluginKey, pluginValue]) => {\n\t\tif (pluginKey in renameMap) {\n\t\t\treturn [renameMap[pluginKey], pluginValue];\n\t\t}\n\n\t\treturn [pluginKey, pluginValue];\n\t});\n\n\treturn Object.fromEntries(renamedPluginEntries) as Record<string, ESLint.Plugin>;\n};\n\n/**\n * @description - Rename plugin names a flat configs array\n *\n * @example\n * ```ts\n * import { renamePluginInConfigs } from '@zayne-labs/eslint-config'\n * import someConfigs from './some-configs'\n *\n * export default renamePluginInConfigs(someConfigs, {\n * '@typescript-eslint': 'ts',\n * 'import-x': 'import',\n * })\n * ```\n */\nexport const renamePluginInConfigs = (\n\tconfigs: TypedFlatConfigItem[],\n\trenameMap: Record<string, string>,\n\textraOverrides?: TypedFlatConfigItem\n): TypedFlatConfigItem[] => {\n\tconst renamedConfigs = configs.map((config) => ({\n\t\t...config,\n\t\t...extraOverrides,\n\t\t...(isObject(config.rules) && { rules: renameRules(config.rules, renameMap) }),\n\t\t...(isObject(config.plugins) && { plugins: renamePlugins(config.plugins, renameMap) }),\n\t}));\n\n\treturn renamedConfigs;\n};\n\nconst scopeUrl = fileURLToPath(new URL(\".\", import.meta.url));\nconst isCwdInScope = isPackageExists(\"@zayne-labs/eslint-config\");\n\nexport const isPackageInScope = (name: string): boolean => isPackageExists(name, { paths: [scopeUrl] });\n\n/**\n * @description - Ensure that packages are installed in the current scope. If they are not\n * installed, and the user is in a TTY, and the user is not in a CI environment,\n * and the user is in the same scope as this package, then prompt the user to\n * install the packages.\n * @param packages - The packages to ensure are installed.\n */\nexport const ensurePackages = async (packages: Array<string | undefined>): Promise<void> => {\n\tif (process.env.CI || !process.stdout.isTTY || !isCwdInScope) return;\n\n\tconst nonExistingPackages = packages.filter((pkg) => pkg && !isPackageInScope(pkg));\n\n\tif (nonExistingPackages.length === 0) return;\n\n\tconst clackPrompt = await import(\"@clack/prompts\");\n\n\tconst result = await clackPrompt.confirm({\n\t\tmessage: `${nonExistingPackages.length === 1 ? \"Package is\" : \"Packages are\"} required for this config: ${nonExistingPackages.join(\", \")}. Do you want to install them?`,\n\t});\n\n\tif (result) {\n\t\tconst antfuPkg = await import(\"@antfu/install-pkg\");\n\n\t\tawait antfuPkg.installPackage(nonExistingPackages as string[], { dev: true });\n\t}\n};\n","export const GLOB_SRC_EXT = \"?([cm])[jt]s?(x)\";\nexport const GLOB_SRC = \"**/*.?([cm])[jt]s?(x)\";\n\nexport const GLOB_JS = \"**/*.?([cm])js\";\nexport const GLOB_JSX = \"**/*.?([cm])jsx\";\n\nexport const GLOB_TS = \"**/*.?([cm])ts\";\nexport const GLOB_TSX = \"**/*.?([cm])tsx\";\n\nexport const GLOB_STYLES = \"**/*.{c,le,sc}ss\";\nexport const GLOB_CSS = \"**/*.css\";\nexport const GLOB_POSTCSS = \"**/*.{p,post}css\";\nexport const GLOB_LESS = \"**/*.less\";\nexport const GLOB_SCSS = \"**/*.scss\";\n\nexport const GLOB_JSON = \"**/*.json\";\nexport const GLOB_JSON5 = \"**/*.json5\";\nexport const GLOB_JSONC = \"**/*.jsonc\";\n\nexport const GLOB_MARKDOWN = \"**/*.md\";\nexport const GLOB_MARKDOWN_IN_MARKDOWN = \"**/*.md/*.md\";\nexport const GLOB_SVELTE = \"**/*.svelte\";\nexport const GLOB_VUE = \"**/*.vue\";\nexport const GLOB_YAML = \"**/*.y?(a)ml\";\nexport const GLOB_TOML = \"**/*.toml\";\nexport const GLOB_XML = \"**/*.xml\";\nexport const GLOB_SVG = \"**/*.svg\";\nexport const GLOB_HTML = \"**/*.htm?(l)\";\nexport const GLOB_ASTRO = \"**/*.astro\";\nexport const GLOB_ASTRO_TS = \"**/*.astro/*.ts\";\nexport const GLOB_GRAPHQL = \"**/*.{g,graph}ql\";\n\nexport const GLOB_MARKDOWN_CODE = `${GLOB_MARKDOWN}/${GLOB_SRC}`;\n\nexport const GLOB_TESTS = [\n\t`**/__tests__/**/*.${GLOB_SRC_EXT}`,\n\t`**/*.spec.${GLOB_SRC_EXT}`,\n\t`**/*.test.${GLOB_SRC_EXT}`,\n\t`**/*.bench.${GLOB_SRC_EXT}`,\n\t`**/*.benchmark.${GLOB_SRC_EXT}`,\n];\n\nexport const GLOB_ALL_SRC = [\n\tGLOB_SRC,\n\tGLOB_STYLES,\n\tGLOB_JSON,\n\tGLOB_JSON5,\n\tGLOB_MARKDOWN,\n\tGLOB_SVELTE,\n\tGLOB_VUE,\n\tGLOB_YAML,\n\tGLOB_XML,\n\tGLOB_HTML,\n];\n\nexport const GLOB_EXCLUDE = [\n\t\"**/node_modules\",\n\t\"**/dist\",\n\t\"**/package-lock.json\",\n\t\"**/yarn.lock\",\n\t\"**/pnpm-lock.yaml\",\n\t\"**/bun.lockb\",\n\n\t\"**/output\",\n\t\"**/coverage\",\n\t\"**/temp\",\n\t\"**/.temp\",\n\t\"**/tmp\",\n\t\"**/.tmp\",\n\t\"**/.history\",\n\t\"**/.vitepress/cache\",\n\t\"**/.nuxt\",\n\t\"**/.next\",\n\t\"**/.svelte-kit\",\n\t\"**/.vercel\",\n\t\"**/.changeset\",\n\t\"**/.idea\",\n\t\"**/.cache\",\n\t\"**/.output\",\n\t\"**/.vite-inspect\",\n\t\"**/.yarn\",\n\t\"**/vite.config.*.timestamp-*\",\n\n\t\"**/CHANGELOG*.md\",\n\t\"**/*.min.*\",\n\t\"**/LICENSE*\",\n\t\"**/__snapshots__\",\n\t\"**/auto-import?(s).d.ts\",\n\t\"**/components.d.ts\",\n];\n","import { interopDefault } from \"@/utils\";\nimport type { FlatGitignoreOptions } from \"eslint-config-flat-gitignore\";\nimport { GLOB_EXCLUDE } from \"../globs\";\nimport type { TypedFlatConfigItem } from \"../types\";\n\nexport const ignores = (userIgnores: string[] = []): TypedFlatConfigItem[] => [\n\t{\n\t\tignores: [...GLOB_EXCLUDE, ...userIgnores],\n\t\tname: \"zayne/defaults/ignores\",\n\t},\n];\n\nexport const gitIgnores = async (options?: FlatGitignoreOptions): Promise<TypedFlatConfigItem[]> => {\n\tconst antfuGitIgnore = await interopDefault(import(\"eslint-config-flat-gitignore\"));\n\n\tconst config = antfuGitIgnore({\n\t\tname: \"zayne/gitignore\",\n\t\tstrict: false,\n\t\t...options,\n\t});\n\n\treturn [config];\n};\n","import type { OptionsOverrides, TypedFlatConfigItem } from \"@/types\";\nimport { interopDefault } from \"@/utils\";\nimport globals from \"globals\";\n\nconst javascript = async (options: OptionsOverrides = {}): Promise<TypedFlatConfigItem[]> => {\n\tconst { overrides } = options;\n\n\tconst eslintJs = await interopDefault(import(\"@eslint/js\"));\n\n\treturn [\n\t\t{\n\t\t\tlanguageOptions: {\n\t\t\t\tecmaVersion: \"latest\",\n\n\t\t\t\tglobals: {\n\t\t\t\t\t...globals.browser,\n\t\t\t\t\t...globals.node,\n\t\t\t\t\tdocument: \"readonly\",\n\t\t\t\t\tnavigator: \"readonly\",\n\t\t\t\t\twindow: \"readonly\",\n\t\t\t\t},\n\n\t\t\t\tparserOptions: {\n\t\t\t\t\tecmaFeatures: {\n\t\t\t\t\t\tjsx: true,\n\t\t\t\t\t},\n\t\t\t\t\tecmaVersion: \"latest\",\n\t\t\t\t\tsourceType: \"module\",\n\t\t\t\t},\n\n\t\t\t\tsourceType: \"module\",\n\t\t\t},\n\n\t\t\tlinterOptions: {\n\t\t\t\treportUnusedDisableDirectives: true,\n\t\t\t},\n\n\t\t\tname: \"zayne/js-eslint/setup\",\n\t\t},\n\t\t{\n\t\t\tname: \"zayne/js-eslint/recommended\",\n\t\t\t...eslintJs.configs.recommended,\n\t\t},\n\t\t{\n\t\t\tname: \"zayne/js-eslint/rules\",\n\n\t\t\trules: {\n\t\t\t\t\"accessor-pairs\": [\"error\", { enforceForClassMembers: true, setWithoutGet: true }],\n\t\t\t\t\"array-callback-return\": [\"error\", { allowImplicit: true }],\n\t\t\t\t\"block-scoped-var\": \"error\",\n\t\t\t\t\"class-methods-use-this\": \"error\",\n\t\t\t\tcomplexity: [\"warn\", 50],\n\t\t\t\t\"constructor-super\": \"error\",\n\t\t\t\tcurly: [\"error\", \"multi-line\"],\n\t\t\t\t\"default-case\": [\"error\", { commentPattern: \"^no default$\" }],\n\t\t\t\t\"default-case-last\": \"error\",\n\t\t\t\t\"default-param-last\": \"error\",\n\t\t\t\t\"dot-notation\": [\"error\", { allowKeywords: true }],\n\t\t\t\teqeqeq: [\"error\", \"always\", { null: \"ignore\" }],\n\t\t\t\t\"grouped-accessor-pairs\": \"error\",\n\t\t\t\t\"logical-assignment-operators\": \"warn\",\n\t\t\t\t\"max-depth\": [\"error\", 2],\n\t\t\t\t\"new-cap\": [\"error\", { capIsNew: false, newIsCap: true, properties: true }],\n\t\t\t\t\"no-alert\": \"warn\",\n\t\t\t\t\"no-array-constructor\": \"error\",\n\t\t\t\t\"no-async-promise-executor\": \"error\",\n\t\t\t\t\"no-await-in-loop\": \"error\",\n\t\t\t\t\"no-caller\": \"error\",\n\t\t\t\t\"no-case-declarations\": \"error\",\n\t\t\t\t\"no-class-assign\": \"error\",\n\t\t\t\t\"no-compare-neg-zero\": \"error\",\n\t\t\t\t\"no-cond-assign\": [\"error\", \"always\"],\n\t\t\t\t\"no-console\": [\"error\", { allow: [\"warn\", \"error\", \"info\", \"trace\"] }],\n\t\t\t\t\"no-const-assign\": \"error\",\n\t\t\t\t\"no-constant-condition\": \"warn\",\n\t\t\t\t\"no-constructor-return\": \"error\",\n\t\t\t\t\"no-control-regex\": \"error\",\n\t\t\t\t\"no-debugger\": \"error\",\n\t\t\t\t\"no-delete-var\": \"error\",\n\t\t\t\t\"no-dupe-args\": \"error\",\n\t\t\t\t\"no-dupe-class-members\": \"error\",\n\t\t\t\t\"no-dupe-keys\": \"error\",\n\t\t\t\t\"no-duplicate-case\": \"error\",\n\t\t\t\t\"no-else-return\": [\"error\", { allowElseIf: false }],\n\t\t\t\t\"no-empty\": [\"error\", { allowEmptyCatch: true }],\n\t\t\t\t\"no-empty-character-class\": \"error\",\n\t\t\t\t\"no-empty-pattern\": \"error\",\n\t\t\t\t\"no-eval\": \"error\",\n\t\t\t\t\"no-ex-assign\": \"error\",\n\t\t\t\t\"no-extend-native\": \"error\",\n\t\t\t\t\"no-extra-bind\": \"error\",\n\t\t\t\t\"no-extra-boolean-cast\": \"error\",\n\t\t\t\t\"no-fallthrough\": \"error\",\n\t\t\t\t\"no-func-assign\": \"error\",\n\t\t\t\t\"no-global-assign\": \"error\",\n\t\t\t\t\"no-implicit-coercion\": \"warn\",\n\t\t\t\t\"no-implied-eval\": \"error\",\n\t\t\t\t\"no-import-assign\": \"error\",\n\t\t\t\t\"no-invalid-regexp\": \"error\",\n\t\t\t\t\"no-irregular-whitespace\": \"error\",\n\t\t\t\t\"no-iterator\": \"error\",\n\t\t\t\t\"no-labels\": [\"error\", { allowLoop: false, allowSwitch: false }],\n\t\t\t\t\"no-lone-blocks\": \"error\",\n\t\t\t\t\"no-loop-func\": \"error\",\n\t\t\t\t\"no-loss-of-precision\": \"error\",\n\t\t\t\t\"no-misleading-character-class\": \"error\",\n\t\t\t\t\"no-multi-str\": \"error\",\n\t\t\t\t\"no-new\": \"error\",\n\t\t\t\t\"no-new-func\": \"error\",\n\t\t\t\t\"no-new-native-nonconstructor\": \"error\",\n\t\t\t\t\"no-new-wrappers\": \"error\",\n\t\t\t\t\"no-obj-calls\": \"error\",\n\t\t\t\t\"no-octal\": \"error\",\n\t\t\t\t\"no-octal-escape\": \"error\",\n\t\t\t\t\"no-param-reassign\": [\n\t\t\t\t\t\"error\",\n\t\t\t\t\t{\n\t\t\t\t\t\tignorePropertyModificationsFor: [\n\t\t\t\t\t\t\t\"acc\", // for reduce accumulators\n\t\t\t\t\t\t\t\"accumulator\", // for reduce accumulators\n\t\t\t\t\t\t\t\"e\", // for e.returnvalue\n\t\t\t\t\t\t\t\"ctx\", // for Koa routing\n\t\t\t\t\t\t\t\"context\", // for Koa routing\n\t\t\t\t\t\t\t\"req\", // for Express requests\n\t\t\t\t\t\t\t\"request\", // for Express requests\n\t\t\t\t\t\t\t\"res\", // for Express responses\n\t\t\t\t\t\t\t\"response\", // for Express responses\n\t\t\t\t\t\t\t\"$scope\", // for Angular 1 scopes\n\t\t\t\t\t\t\t\"staticContext\", // for ReactRouter context\n\t\t\t\t\t\t],\n\t\t\t\t\t\tprops: true,\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t\"no-proto\": \"error\",\n\t\t\t\t\"no-prototype-builtins\": \"error\",\n\t\t\t\t\"no-redeclare\": [\"error\", { builtinGlobals: false }],\n\t\t\t\t\"no-regex-spaces\": \"error\",\n\t\t\t\t\"no-restricted-exports\": [\n\t\t\t\t\t\"error\",\n\t\t\t\t\t{\n\t\t\t\t\t\trestrictedNamedExports: [\n\t\t\t\t\t\t\t\"default\", // use `export default` to provide a default export\n\t\t\t\t\t\t\t\"then\", // this will cause tons of confusion when your module is dynamically `import()`ed, and will break in most node ESM versions\n\t\t\t\t\t\t],\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t\"no-restricted-globals\": [\n\t\t\t\t\t\"error\",\n\t\t\t\t\t{\n\t\t\t\t\t\tmessage:\n\t\t\t\t\t\t\t\"Use Number.isFinite instead https://github.com/airbnb/javascript#standard-library--isfinite\",\n\t\t\t\t\t\tname: \"isFinite\",\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tmessage:\n\t\t\t\t\t\t\t\"Use Number.isNaN instead https://github.com/airbnb/javascript#standard-library--isnan\",\n\t\t\t\t\t\tname: \"isNaN\",\n\t\t\t\t\t},\n\t\t\t\t\t{ message: \"Use `globalThis` instead.\", name: \"global\" },\n\t\t\t\t\t{ message: \"Use `globalThis` instead.\", name: \"self\" },\n\t\t\t\t],\n\t\t\t\t\"no-restricted-imports\": [\"off\", { paths: [], patterns: [] }],\n\t\t\t\t\"no-restricted-properties\": [\n\t\t\t\t\t\"error\",\n\t\t\t\t\t{\n\t\t\t\t\t\tmessage: \"arguments.callee is deprecated\",\n\t\t\t\t\t\tobject: \"arguments\",\n\t\t\t\t\t\tproperty: \"callee\",\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tmessage: \"Please use Number.isFinite instead\",\n\t\t\t\t\t\tobject: \"global\",\n\t\t\t\t\t\tproperty: \"isFinite\",\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tmessage: \"Please use Number.isFinite instead\",\n\t\t\t\t\t\tobject: \"self\",\n\t\t\t\t\t\tproperty: \"isFinite\",\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tmessage: \"Please use Number.isFinite instead\",\n\t\t\t\t\t\tobject: \"window\",\n\t\t\t\t\t\tproperty: \"isFinite\",\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tmessage: \"Please use Number.isNaN instead\",\n\t\t\t\t\t\tobject: \"global\",\n\t\t\t\t\t\tproperty: \"isNaN\",\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tmessage: \"Please use Number.isNaN instead\",\n\t\t\t\t\t\tobject: \"self\",\n\t\t\t\t\t\tproperty: \"isNaN\",\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tmessage: \"Please use Number.isNaN instead\",\n\t\t\t\t\t\tobject: \"window\",\n\t\t\t\t\t\tproperty: \"isNaN\",\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tmessage: \"Use the exponentiation operator (**) instead.\",\n\t\t\t\t\t\tobject: \"Math\",\n\t\t\t\t\t\tproperty: \"pow\",\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tmessage: \"Use `Object.getPrototypeOf` or `Object.setPrototypeOf` instead.\",\n\t\t\t\t\t\tproperty: \"__proto__\",\n\t\t\t\t\t},\n\t\t\t\t\t{ message: \"Use `Object.defineProperty` instead.\", property: \"__defineGetter__\" },\n\t\t\t\t\t{ message: \"Use `Object.defineProperty` instead.\", property: \"__defineSetter__\" },\n\t\t\t\t\t{ message: \"Use `Object.getOwnPropertyDescriptor` instead.\", property: \"__lookupGetter__\" },\n\t\t\t\t\t{ message: \"Use `Object.getOwnPropertyDescriptor` instead.\", property: \"__lookupSetter__\" },\n\t\t\t\t],\n\t\t\t\t\"no-restricted-syntax\": [\n\t\t\t\t\t\"error\",\n\t\t\t\t\t\"ForInStatement\",\n\t\t\t\t\t\"LabeledStatement\",\n\t\t\t\t\t\"WithStatement\",\n\t\t\t\t\t\"TSEnumDeclaration[const=true]\",\n\t\t\t\t\t\"TSExportAssignment\",\n\t\t\t\t],\n\t\t\t\t\"no-return-assign\": [\"error\", \"except-parens\"],\n\t\t\t\t\"no-script-url\": \"error\",\n\t\t\t\t\"no-self-assign\": [\"error\", { props: true }],\n\t\t\t\t\"no-self-compare\": \"error\",\n\t\t\t\t\"no-sequences\": \"error\",\n\t\t\t\t\"no-shadow-restricted-names\": \"error\",\n\t\t\t\t\"no-sparse-arrays\": \"error\",\n\t\t\t\t\"no-template-curly-in-string\": \"error\",\n\t\t\t\t\"no-this-before-super\": \"error\",\n\t\t\t\t\"no-throw-literal\": \"error\",\n\t\t\t\t\"no-undef\": \"error\",\n\t\t\t\t\"no-undef-init\": \"error\",\n\t\t\t\t\"no-unexpected-multiline\": \"error\",\n\t\t\t\t\"no-unmodified-loop-condition\": \"error\",\n\t\t\t\t\"no-unneeded-ternary\": [\"warn\", { defaultAssignment: false }],\n\t\t\t\t\"no-unreachable\": \"error\",\n\t\t\t\t\"no-unreachable-loop\": \"error\",\n\t\t\t\t\"no-unsafe-finally\": \"error\",\n\t\t\t\t\"no-unsafe-negation\": \"error\",\n\t\t\t\t\"no-unused-expressions\": [\n\t\t\t\t\t\"error\",\n\t\t\t\t\t{\n\t\t\t\t\t\tallowShortCircuit: true,\n\t\t\t\t\t\tallowTaggedTemplates: true,\n\t\t\t\t\t\tallowTernary: true,\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t\"no-unused-vars\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t{\n\t\t\t\t\t\targs: \"none\",\n\t\t\t\t\t\tcaughtErrors: \"none\",\n\t\t\t\t\t\tignoreRestSiblings: true,\n\t\t\t\t\t\tvars: \"all\",\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t\"no-useless-backreference\": \"error\",\n\t\t\t\t\"no-useless-call\": \"error\",\n\t\t\t\t\"no-useless-catch\": \"error\",\n\t\t\t\t\"no-useless-computed-key\": \"error\",\n\t\t\t\t\"no-useless-concat\": \"error\",\n\t\t\t\t\"no-useless-constructor\": \"error\",\n\t\t\t\t\"no-useless-rename\": [\n\t\t\t\t\t\"error\",\n\t\t\t\t\t{ ignoreDestructuring: false, ignoreExport: false, ignoreImport: false },\n\t\t\t\t],\n\t\t\t\t\"no-useless-return\": \"error\",\n\t\t\t\t\"no-var\": \"error\",\n\t\t\t\t\"no-with\": \"error\",\n\t\t\t\t\"object-shorthand\": [\"error\", \"always\", { avoidQuotes: true, ignoreConstructors: false }],\n\t\t\t\t\"one-var\": [\"error\", { initialized: \"never\" }],\n\t\t\t\t\"operator-assignment\": \"warn\",\n\t\t\t\t\"prefer-arrow-callback\": [\n\t\t\t\t\t\"error\",\n\t\t\t\t\t{\n\t\t\t\t\t\tallowNamedFunctions: false,\n\t\t\t\t\t\tallowUnboundThis: true,\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t\"prefer-const\": [\n\t\t\t\t\t\"error\",\n\t\t\t\t\t{\n\t\t\t\t\t\tdestructuring: \"all\",\n\t\t\t\t\t\tignoreReadBeforeAssign: true,\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t\"prefer-exponentiation-operator\": \"error\",\n\t\t\t\t\"prefer-object-has-own\": \"error\",\n\t\t\t\t\"prefer-object-spread\": \"warn\",\n\t\t\t\t\"prefer-promise-reject-errors\": \"error\",\n\t\t\t\t\"prefer-regex-literals\": [\"error\", { disallowRedundantWrapping: true }],\n\t\t\t\t\"prefer-rest-params\": \"error\",\n\t\t\t\t\"prefer-spread\": \"error\",\n\t\t\t\t\"prefer-template\": \"error\",\n\t\t\t\tradix: \"error\",\n\t\t\t\t\"symbol-description\": \"error\",\n\t\t\t\t\"unicode-bom\": [\"error\", \"never\"],\n\t\t\t\t\"use-isnan\": [\"error\", { enforceForIndexOf: true, enforceForSwitchCase: true }],\n\t\t\t\t\"valid-typeof\": [\"error\", { requireStringLiterals: true }],\n\t\t\t\t\"vars-on-top\": \"error\",\n\t\t\t\tyoda: [\"error\", \"never\"],\n\n\t\t\t\t...overrides,\n\t\t\t},\n\t\t},\n\t];\n};\n\nexport { javascript };\n","import type { OptionsOverrides, OptionsTailwindCSS, TypedFlatConfigItem } from \"@/types\";\nimport { ensurePackages, interopDefault } from \"@/utils\";\n\nconst tailwindcss = async (\n\toptions: OptionsOverrides & OptionsTailwindCSS = {}\n): Promise<TypedFlatConfigItem[]> => {\n\tconst { overrides, settings: tailwindCssSettings } = options;\n\n\tawait ensurePackages([\"eslint-plugin-tailwindcss\"]);\n\n\tconst eslintPluginTailwindCss = await interopDefault(import(\"eslint-plugin-tailwindcss\"));\n\n\treturn [\n\t\t{\n\t\t\tname: \"zayne/tailwindcss/setup\",\n\t\t\tplugins: {\n\t\t\t\ttailwindcss: eslintPluginTailwindCss,\n\t\t\t},\n\t\t\tsettings: {\n\t\t\t\ttailwindcss: {\n\t\t\t\t\tcallees: [\"tv\", \"cnMerge\", \"cn\", \"cnJoin\", \"twMerge\", \"twJoin\"],\n\t\t\t\t\tclassRegex: \"^class(Name|Names)?$\",\n\t\t\t\t\tcssFiles: [],\n\t\t\t\t\tremoveDuplicates: false, // Turned off cuz prettier already handles this via plugin\n\t\t\t\t\t...tailwindCssSettings,\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\n\t\t{\n\t\t\tname: \"zayne/tailwindcss/recommended\",\n\t\t\trules: eslintPluginTailwindCss.configs[\"flat/recommended\"][1]?.rules,\n\t\t},\n\n\t\t{\n\t\t\tname: \"zayne/tailwindcss/rules\",\n\n\t\t\trules: {\n\t\t\t\t\"tailwindcss/no-contradicting-classname\": \"off\", // Turned off cuz tw intellisense already handles this\n\t\t\t\t\"tailwindcss/no-custom-classname\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t{ ignoredKeys: [\"compoundVariants\", \"defaultVariants\", \"responsiveVariants\"] },\n\t\t\t\t],\n\n\t\t\t\t...overrides,\n\t\t\t},\n\t\t},\n\t];\n};\n\nexport { tailwindcss };\n","import { interopDefault, renamePluginInConfigs } from \"@/utils\";\nimport { GLOB_ASTRO_TS, GLOB_MARKDOWN, GLOB_TS, GLOB_TSX } from \"../globs\";\nimport type {\n\tOptionsComponentExts,\n\tOptionsFiles,\n\tOptionsOverrides,\n\tOptionsStylistic,\n\tOptionsTypeScriptParserOptions,\n\tOptionsTypeScriptWithTypes,\n\tTypedFlatConfigItem,\n} from \"../types\";\n\nexport const typescript = async (\n\toptions: OptionsComponentExts &\n\t\tOptionsFiles &\n\t\tOptionsOverrides &\n\t\tOptionsStylistic &\n\t\tOptionsTypeScriptParserOptions &\n\t\tOptionsTypeScriptWithTypes = {}\n): Promise<TypedFlatConfigItem[]> => {\n\tconst {\n\t\tallowDefaultProjects,\n\t\tcomponentExts = [],\n\t\tfiles = [GLOB_TS, GLOB_TSX, ...componentExts.map((ext) => `**/*.${ext}`)],\n\t\tfilesTypeAware = [GLOB_TS, GLOB_TSX],\n\t\tignoresTypeAware = [`${GLOB_MARKDOWN}/**`, GLOB_ASTRO_TS],\n\t\toverrides,\n\t\tparserOptions,\n\t\tstylistic = true,\n\t\ttsconfigPath,\n\t} = options;\n\n\tconst isTypeAware = Boolean(tsconfigPath);\n\n\tconst tsEslint = await interopDefault(import(\"typescript-eslint\"));\n\n\tconst makeParser = (parsedFiles: string[], ignores?: string[]): TypedFlatConfigItem => ({\n\t\tfiles: parsedFiles,\n\n\t\t...(ignores && { ignores }),\n\n\t\tlanguageOptions: {\n\t\t\tparser: tsEslint.parser,\n\n\t\t\tparserOptions: {\n\t\t\t\tecmaFeatures: { globalReturn: true },\n\n\t\t\t\textraFileExtensions: componentExts.map((ext) => `.${ext}`),\n\n\t\t\t\t...(isTypeAware && {\n\t\t\t\t\t...(allowDefaultProjects\n\t\t\t\t\t\t? {\n\t\t\t\t\t\t\t\tprojectService: {\n\t\t\t\t\t\t\t\t\tallowDefaultProject: allowDefaultProjects,\n\t\t\t\t\t\t\t\t\tdefaultProject: tsconfigPath,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t: { project: tsconfigPath }),\n\n\t\t\t\t\ttsconfigRootDir: process.cwd(),\n\t\t\t\t}),\n\n\t\t\t\tsourceType: \"module\",\n\n\t\t\t\t...parserOptions,\n\t\t\t},\n\t\t},\n\t});\n\n\tconst typeAwareRules: TypedFlatConfigItem[\"rules\"] = {\n\t\t\"ts-eslint/no-unnecessary-type-parameters\": \"off\",\n\t\t\"ts-eslint/non-nullable-type-assertion-style\": \"off\",\n\t\t\"ts-eslint/prefer-nullish-coalescing\": [\"error\", { ignoreConditionalTests: true }],\n\t\t\"ts-eslint/restrict-template-expressions\": [\n\t\t\t\"error\",\n\t\t\t{ allowBoolean: true, allowNullish: true, allowNumber: true },\n\t\t],\n\t\t\"ts-eslint/return-await\": [\"error\", \"in-try-catch\"],\n\t};\n\n\treturn [\n\t\t{\n\t\t\tname: `zayne/ts-eslint/${isTypeAware ? \"type-aware-setup\" : \"setup\"}`,\n\n\t\t\t...makeParser(files),\n\t\t\t...(isTypeAware && makeParser(filesTypeAware, ignoresTypeAware)),\n\t\t},\n\n\t\t...renamePluginInConfigs(\n\t\t\ttsEslint.configs[isTypeAware ? \"strictTypeChecked\" : \"strict\"],\n\t\t\t{ \"@typescript-eslint\": \"ts-eslint\" },\n\t\t\t{ files, name: `zayne/ts-eslint/${isTypeAware ? \"strictTypeChecked\" : \"strict\"}` }\n\t\t),\n\n\t\t...(stylistic\n\t\t\t? renamePluginInConfigs(\n\t\t\t\t\ttsEslint.configs[isTypeAware ? \"stylisticTypeChecked\" : \"stylistic\"],\n\t\t\t\t\t{ \"@typescript-eslint\": \"ts-eslint\" },\n\t\t\t\t\t{ files, name: `zayne/ts-eslint/${isTypeAware ? \"stylisticTypeChecked\" : \"stylistic\"}` }\n\t\t\t\t)\n\t\t\t: []),\n\n\t\t{\n\t\t\tfiles,\n\n\t\t\tname: \"zayne/ts-eslint/rules\",\n\n\t\t\trules: {\n\t\t\t\t\"ts-eslint/array-type\": [\"error\", { default: \"array-simple\" }],\n\t\t\t\t\"ts-eslint/consistent-type-definitions\": [\"error\", \"type\"],\n\t\t\t\t\"ts-eslint/default-param-last\": \"error\",\n\t\t\t\t\"ts-eslint/member-ordering\": \"error\",\n\t\t\t\t\"ts-eslint/method-signature-style\": [\"error\", \"property\"],\n\t\t\t\t\"ts-eslint/no-confusing-void-expression\": \"off\",\n\t\t\t\t\"ts-eslint/no-empty-function\": [\n\t\t\t\t\t\"error\",\n\t\t\t\t\t{ allow: [\"arrowFunctions\", \"functions\", \"methods\"] },\n\t\t\t\t],\n\t\t\t\t\"ts-eslint/no-import-type-side-effects\": \"error\",\n\t\t\t\t\"ts-eslint/no-shadow\": \"error\",\n\t\t\t\t\"ts-eslint/no-unused-expressions\": [\n\t\t\t\t\t\"error\",\n\t\t\t\t\t{\n\t\t\t\t\t\tallowShortCircuit: true,\n\t\t\t\t\t\tallowTernary: true,\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t\"ts-eslint/no-unused-vars\": [\"warn\", { argsIgnorePattern: \"^_\" }],\n\t\t\t\t\"ts-eslint/no-use-before-define\": \"off\",\n\t\t\t\t\"ts-eslint/no-useless-constructor\": \"error\",\n\n\t\t\t\t...(isTypeAware && typeAwareRules),\n\n\t\t\t\t...overrides,\n\t\t\t},\n\t\t},\n\t];\n};\n","import { interopDefault } from \"@/utils\";\nimport type { OptionsAppType, OptionsOverrides, TypedFlatConfigItem } from \"../types\";\n\nexport const unicorn = async (\n\toptions: OptionsAppType & OptionsOverrides = {}\n): Promise<TypedFlatConfigItem[]> => {\n\tconst { overrides, type = \"app\" } = options;\n\n\tconst eslintPluginUnicorn = await interopDefault(import(\"eslint-plugin-unicorn\"));\n\n\treturn [\n\t\t{ ...eslintPluginUnicorn.configs[\"flat/recommended\"], name: \"zayne/unicorn/recommended\" },\n\t\t{\n\t\t\tname: \"zayne/unicorn/rules\",\n\n\t\t\trules: {\n\t\t\t\t\"unicorn/filename-case\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t{\n\t\t\t\t\t\tcases: {\n\t\t\t\t\t\t\tcamelCase: true,\n\t\t\t\t\t\t\tkebabCase: true,\n\t\t\t\t\t\t\tpascalCase: true,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t],\n\n\t\t\t\t...(type === \"app\"\n\t\t\t\t\t? {\n\t\t\t\t\t\t\t\"unicorn/prefer-global-this\": \"off\",\n\t\t\t\t\t\t}\n\t\t\t\t\t: {\n\t\t\t\t\t\t\t\"unicorn/prefer-global-this\": \"warn\",\n\t\t\t\t\t\t}),\n\n\t\t\t\t\"unicorn/new-for-builtins\": \"off\",\n\t\t\t\t\"unicorn/no-array-for-each\": \"off\",\n\t\t\t\t\"unicorn/no-array-reduce\": \"off\",\n\t\t\t\t\"unicorn/no-negated-condition\": \"off\",\n\t\t\t\t\"unicorn/no-null\": \"off\",\n\t\t\t\t\"unicorn/no-useless-undefined\": [\"error\", { checkArguments: true }],\n\t\t\t\t\"unicorn/numeric-separators-style\": \"off\",\n\t\t\t\t\"unicorn/prevent-abbreviations\": \"off\",\n\n\t\t\t\t...overrides,\n\t\t\t},\n\t\t},\n\t];\n};\n","import type {\n\tOptionsHasTypeScript,\n\tOptionsOverrides,\n\tOptionsStylistic,\n\tTypedFlatConfigItem,\n} from \"@/types\";\nimport { interopDefault } from \"@/utils\";\n\nconst imports = async (\n\toptions: OptionsHasTypeScript & OptionsOverrides & OptionsStylistic = {}\n): Promise<TypedFlatConfigItem[]> => {\n\tconst { overrides, stylistic = true, typescript = true } = options;\n\n\tconst eslintPluginImportX = await interopDefault(import(\"eslint-plugin-import-x\"));\n\n\treturn [\n\t\t{\n\t\t\tplugins: {\n\t\t\t\timport: eslintPluginImportX,\n\t\t\t},\n\t\t\t...(typescript && { settings: eslintPluginImportX.flatConfigs.typescript.settings }),\n\t\t\tname: \"zayne/import/setup\",\n\t\t},\n\n\t\t{\n\t\t\tname: \"zayne/import/recommended\",\n\n\t\t\trules: {\n\t\t\t\t...eslintPluginImportX.flatConfigs.recommended.rules,\n\t\t\t\t...(typescript && eslintPluginImportX.flatConfigs.typescript.rules),\n\t\t\t},\n\t\t},\n\n\t\t{\n\t\t\tname: \"zayne/import/rules\",\n\n\t\t\trules: {\n\t\t\t\t\"import/extensions\": [\n\t\t\t\t\t\"error\",\n\t\t\t\t\t\"never\",\n\t\t\t\t\t{ ignorePackages: true, pattern: { png: \"always\", svg: \"always\" } },\n\t\t\t\t],\n\t\t\t\t\"import/first\": \"error\",\n\t\t\t\t\"import/no-absolute-path\": \"error\",\n\t\t\t\t\"import/no-cycle\": [\"error\", { ignoreExternal: true, maxDepth: 3 }],\n\t\t\t\t\"import/no-duplicates\": \"error\",\n\t\t\t\t\"import/no-extraneous-dependencies\": [\"error\", { devDependencies: true }],\n\t\t\t\t\"import/no-mutable-exports\": \"error\",\n\t\t\t\t\"import/no-named-default\": \"error\",\n\t\t\t\t\"import/no-relative-packages\": \"error\",\n\t\t\t\t\"import/no-self-import\": \"error\",\n\t\t\t\t\"import/no-unresolved\": \"off\",\n\t\t\t\t\"import/no-useless-path-segments\": [\"error\", { commonjs: true }],\n\t\t\t\t\"import/no-webpack-loader-syntax\": \"error\",\n\n\t\t\t\t...(stylistic && { \"import/newline-after-import\": \"error\" }),\n\n\t\t\t\t...overrides,\n\t\t\t},\n\t\t},\n\t];\n};\n\nexport { imports };\n","import type { OptionsOverrides, TypedFlatConfigItem } from \"@/types\";\nimport { interopDefault } from \"@/utils\";\n\nconst perfectionist = async (options: OptionsOverrides = {}): Promise<TypedFlatConfigItem[]> => {\n\tconst { overrides } = options;\n\n\tconst eslintPluginPerfectionist = await interopDefault(import(\"eslint-plugin-perfectionist\"));\n\n\treturn [\n\t\t{\n\t\t\tname: \"zayne/perfectionist/rules\",\n\n\t\t\tplugins: {\n\t\t\t\tperfectionist: eslintPluginPerfectionist,\n\t\t\t},\n\n\t\t\trules: {\n\t\t\t\t\"perfectionist/sort-array-includes\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t{\n\t\t\t\t\t\torder: \"asc\",\n\t\t\t\t\t\ttype: \"alphabetical\",\n\t\t\t\t\t},\n\t\t\t\t],\n\n\t\t\t\t\"perfectionist/sort-classes\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t{\n\t\t\t\t\t\torder: \"asc\",\n\t\t\t\t\t\ttype: \"alphabetical\",\n\t\t\t\t\t},\n\t\t\t\t],\n\n\t\t\t\t\"perfectionist/sort-interfaces\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t{\n\t\t\t\t\t\torder: \"asc\",\n\t\t\t\t\t\ttype: \"alphabetical\",\n\t\t\t\t\t},\n\t\t\t\t],\n\n\t\t\t\t\"perfectionist/sort-intersection-types\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t{\n\t\t\t\t\t\tgroups: [\n\t\t\t\t\t\t\t\"conditional\",\n\t\t\t\t\t\t\t\"literal\",\n\t\t\t\t\t\t\t\"import\",\n\t\t\t\t\t\t\t\"intersection\",\n\t\t\t\t\t\t\t\"keyword\",\n\t\t\t\t\t\t\t\"tuple\",\n\t\t\t\t\t\t\t\"named\",\n\t\t\t\t\t\t\t\"object\",\n\t\t\t\t\t\t\t\"function\",\n\t\t\t\t\t\t\t\"operator\",\n\t\t\t\t\t\t\t\"union\",\n\t\t\t\t\t\t\t\"nullish\",\n\t\t\t\t\t\t],\n\t\t\t\t\t\torder: \"asc\",\n\t\t\t\t\t\ttype: \"alphabetical\",\n\t\t\t\t\t},\n\t\t\t\t],\n\n\t\t\t\t\"perfectionist/sort-maps\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t{\n\t\t\t\t\t\torder: \"asc\",\n\t\t\t\t\t\ttype: \"alphabetical\",\n\t\t\t\t\t},\n\t\t\t\t],\n\n\t\t\t\t\"perfectionist/sort-object-types\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t{\n\t\t\t\t\t\torder: \"asc\",\n\t\t\t\t\t\ttype: \"alphabetical\",\n\t\t\t\t\t},\n\t\t\t\t],\n\n\t\t\t\t\"perfectionist/sort-objects\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t{\n\t\t\t\t\t\torder: \"asc\",\n\t\t\t\t\t\ttype: \"alphabetical\",\n\t\t\t\t\t},\n\t\t\t\t],\n\n\t\t\t\t\"perfectionist/sort-switch-case\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t{\n\t\t\t\t\t\torder: \"asc\",\n\t\t\t\t\t\ttype: \"alphabetical\",\n\t\t\t\t\t},\n\t\t\t\t],\n\n\t\t\t\t\"perfectionist/sort-union-types\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t{\n\t\t\t\t\t\tgroups: [\n\t\t\t\t\t\t\t\"conditional\",\n\t\t\t\t\t\t\t\"literal\",\n\t\t\t\t\t\t\t\"import\",\n\t\t\t\t\t\t\t\"intersection\",\n\t\t\t\t\t\t\t\"keyword\",\n\t\t\t\t\t\t\t\"tuple\",\n\t\t\t\t\t\t\t\"named\",\n\t\t\t\t\t\t\t\"object\",\n\t\t\t\t\t\t\t\"function\",\n\t\t\t\t\t\t\t\"operator\",\n\t\t\t\t\t\t\t\"union\",\n\t\t\t\t\t\t\t\"nullish\",\n\t\t\t\t\t\t],\n\t\t\t\t\t\torder: \"asc\",\n\t\t\t\t\t\ttype: \"alphabetical\",\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t\"perfectionist/sort-variable-declarations\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t{\n\t\t\t\t\t\torder: \"asc\",\n\t\t\t\t\t\ttype: \"alphabetical\",\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t// \"perfectionist/sort-svelte-attributes\": [\n\t\t\t\t// \t\"warn\",\n\t\t\t\t// \t{\n\t\t\t\t// \t\torder: \"asc\",\n\t\t\t\t// \t\ttype: \"alphabetical\",\n\t\t\t\t// \t},\n\t\t\t\t// ],\n\t\t\t\t// \"perfectionist/sort-astro-attributes\": [\n\t\t\t\t// \t\"warn\",\n\t\t\t\t// \t{\n\t\t\t\t// \t\torder: \"asc\",\n\t\t\t\t// \t\ttype: \"alphabetical\",\n\t\t\t\t// \t},\n\t\t\t\t// ],\n\t\t\t\t// \"perfectionist/sort-vue-attributes\": [\n\t\t\t\t// \t\"warn\",\n\t\t\t\t// \t{\n\t\t\t\t// \t\torder: \"asc\",\n\t\t\t\t// \t\ttype: \"alphabetical\",\n\t\t\t\t// \t},\n\t\t\t\t// ],\n\t\t\t\t// \"perfectionist/sort-jsx-props\": [\n\t\t\t\t// \t\"warn\",\n\t\t\t\t// \t{\n\t\t\t\t// \t\t// ignorePattern: [\"src\"],\n\t\t\t\t// \t\torder: \"asc\",\n\t\t\t\t// \t\ttype: \"alphabetical\",\n\t\t\t\t// \t},\n\t\t\t\t// ],\n\n\t\t\t\t...overrides,\n\t\t\t},\n\t\t},\n\t];\n};\n\nexport { perfectionist };\n","import type { OptionsHasJsx, OptionsOverrides, TypedFlatConfigItem } from \"@/types\";\nimport { interopDefault } from \"@/utils\";\n\nconst stylistic = async (\n\toptions: OptionsHasJsx & OptionsOverrides = {}\n): Promise<TypedFlatConfigItem[]> => {\n\tconst { jsx = true, overrides } = options;\n\tconst eslintPluginStylistic = await interopDefault(import(\"@stylistic/eslint-plugin\"));\n\n\treturn [\n\t\t// == Stylistic Rules (Optional)\n\t\t{\n\t\t\tname: \"zayne/stylistic/rules\",\n\n\t\t\tplugins: {\n\t\t\t\tstylistic: eslintPluginStylistic,\n\t\t\t},\n\n\t\t\trules: {\n\t\t\t\t\"stylistic/no-floating-decimal\": \"error\",\n\t\t\t\t\"stylistic/spaced-comment\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t\"always\",\n\t\t\t\t\t{\n\t\t\t\t\t\tblock: {\n\t\t\t\t\t\t\tbalanced: true,\n\t\t\t\t\t\t\texceptions: [\"*\"],\n\t\t\t\t\t\t\tmarkers: [\"!\"],\n\t\t\t\t\t\t},\n\t\t\t\t\t\tline: {\n\t\t\t\t\t\t\texceptions: [\"/\", \"#\"],\n\t\t\t\t\t\t\tmarkers: [\"/\"],\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t],\n\n\t\t\t\t...(jsx && {\n\t\t\t\t\t\"stylistic/jsx-self-closing-comp\": \"error\",\n\t\t\t\t}),\n\n\t\t\t\t...overrides,\n\t\t\t},\n\t\t},\n\t];\n};\n\nexport { stylistic };\n","import { GLOB_JSON, GLOB_JSON5, GLOB_JSONC } from \"@/globs\";\nimport type { OptionsFiles, OptionsOverrides, OptionsStylistic, TypedFlatConfigItem } from \"@/types\";\nimport { interopDefault } from \"@/utils\";\n\nconst jsonc = async (\n\toptions: OptionsFiles & OptionsOverrides & OptionsStylistic = {}\n): Promise<TypedFlatConfigItem[]> => {\n\tconst { files, overrides, stylistic = true } = options;\n\n\tconst [eslintPluginJsonc, jsoncParser] = await Promise.all([\n\t\tinteropDefault(import(\"eslint-plugin-jsonc\")),\n\t\tinteropDefault(import(\"jsonc-eslint-parser\")),\n\t] as const);\n\n\treturn [\n\t\t{\n\t\t\tname: \"zayne/jsonc/setup\",\n\n\t\t\tplugins: {\n\t\t\t\tjsonc: eslintPluginJsonc,\n\t\t\t},\n\t\t},\n\n\t\t{\n\t\t\tfiles: files ?? [GLOB_JSON, GLOB_JSON5, GLOB_JSONC],\n\n\t\t\tlanguageOptions: {\n\t\t\t\tparser: jsoncParser,\n\t\t\t},\n\n\t\t\tname: \"zayne/jsonc/rules\",\n\n\t\t\trules: {\n\t\t\t\t\"jsonc/no-bigint-literals\": \"error\",\n\t\t\t\t\"jsonc/no-binary-expression\": \"error\",\n\t\t\t\t\"jsonc/no-binary-numeric-literals\": \"error\",\n\t\t\t\t\"jsonc/no-dupe-keys\": \"error\",\n\t\t\t\t\"jsonc/no-escape-sequence-in-identifier\": \"error\",\n\t\t\t\t\"jsonc/no-floating-decimal\": \"error\",\n\t\t\t\t\"jsonc/no-hexadecimal-numeric-literals\": \"error\",\n\t\t\t\t\"jsonc/no-infinity\": \"error\",\n\t\t\t\t\"jsonc/no-multi-str\": \"error\",\n\t\t\t\t\"jsonc/no-nan\": \"error\",\n\t\t\t\t\"jsonc/no-number-props\": \"error\",\n\t\t\t\t\"jsonc/no-numeric-separators\": \"error\",\n\t\t\t\t\"jsonc/no-octal\": \"error\",\n\t\t\t\t\"jsonc/no-octal-escape\": \"error\",\n\t\t\t\t\"jsonc/no-octal-numeric-literals\": \"error\",\n\t\t\t\t\"jsonc/no-parenthesized\": \"error\",\n\t\t\t\t\"jsonc/no-plus-sign\": \"error\",\n\t\t\t\t\"jsonc/no-regexp-literals\": \"error\",\n\t\t\t\t\"jsonc/no-sparse-arrays\": \"error\",\n\t\t\t\t\"jsonc/no-template-literals\": \"error\",\n\t\t\t\t\"jsonc/no-undefined-value\": \"error\",\n\t\t\t\t\"jsonc/no-unicode-codepoint-escapes\": \"error\",\n\t\t\t\t\"jsonc/no-useless-escape\": \"error\",\n\t\t\t\t\"jsonc/space-unary-ops\": \"error\",\n\t\t\t\t\"jsonc/valid-json-number\": \"error\",\n\t\t\t\t\"jsonc/vue-custom-block/no-parsing-error\": \"error\",\n\n\t\t\t\t...(stylistic && {\n\t\t\t\t\t\"jsonc/array-bracket-spacing\": [\"error\", \"never\"],\n\t\t\t\t\t\"jsonc/comma-dangle\": [\"error\", \"never\"],\n\t\t\t\t\t\"jsonc/comma-style\": [\"error\", \"last\"],\n\t\t\t\t\t\"jsonc/key-spacing\": [\"error\", { afterColon: true, beforeColon: false }],\n\t\t\t\t\t\"jsonc/object-curly-newline\": [\"error\", { consistent: true, multiline: true }],\n\t\t\t\t\t\"jsonc/object-curly-spacing\": [\"error\", \"always\"],\n\t\t\t\t\t\"jsonc/object-property-newline\": [\"error\", { allowMultiplePropertiesPerLine: true }],\n\t\t\t\t\t\"jsonc/quote-props\": \"error\",\n\t\t\t\t\t\"jsonc/quotes\": \"error\",\n\t\t\t\t}),\n\n\t\t\t\t...overrides,\n\t\t\t},\n\t\t},\n\t];\n};\n\nexport { jsonc };\n","import type { OptionsOverrides, OptionsStylistic, TypedFlatConfigItem } from \"@/types\";\nimport { interopDefault } from \"@/utils\";\n\nconst jsdoc = async (\n\toptions: OptionsOverrides & OptionsStylistic = {}\n): Promise<TypedFlatConfigItem[]> => {\n\tconst { overrides, stylistic = true } = options;\n\n\tconst eslintPluginJsdoc = await interopDefault(import(\"eslint-plugin-jsdoc\"));\n\n\treturn [\n\t\t{\n\t\t\tname: \"zayne/jsdoc/rules\",\n\t\t\tplugins: {\n\t\t\t\tjsdoc: eslintPluginJsdoc,\n\t\t\t},\n\t\t\trules: {\n\t\t\t\t\"jsdoc/check-access\": \"warn\",\n\t\t\t\t\"jsdoc/check-param-names\": \"warn\",\n\t\t\t\t\"jsdoc/check-property-names\": \"warn\",\n\t\t\t\t\"jsdoc/check-types\": \"warn\",\n\t\t\t\t\"jsdoc/empty-tags\": \"warn\",\n\t\t\t\t\"jsdoc/implements-on-classes\": \"warn\",\n\t\t\t\t\"jsdoc/no-defaults\": \"warn\",\n\t\t\t\t\"jsdoc/no-multi-asterisks\": \"warn\",\n\t\t\t\t\"jsdoc/require-description\": [\"warn\", { descriptionStyle: \"any\" }],\n\t\t\t\t\"jsdoc/require-param-name\": \"warn\",\n\t\t\t\t\"jsdoc/require-property\": \"warn\",\n\t\t\t\t\"jsdoc/require-property-description\": \"warn\",\n\t\t\t\t\"jsdoc/require-property-name\": \"warn\",\n\t\t\t\t\"jsdoc/require-returns-check\": \"warn\",\n\t\t\t\t\"jsdoc/require-returns-description\": \"warn\",\n\t\t\t\t\"jsdoc/require-yields-check\": \"warn\",\n\n\t\t\t\t...(stylistic && {\n\t\t\t\t\t\"jsdoc/check-alignment\": \"warn\",\n\t\t\t\t\t\"jsdoc/multiline-blocks\": \"warn\",\n\t\t\t\t\t\"jsdoc/require-description\": [\"warn\", { descriptionStyle: \"tag\" }],\n\t\t\t\t}),\n\n\t\t\t\t...overrides,\n\t\t\t},\n\t\t},\n\t];\n};\n\nexport { jsdoc };\n","export const defaultPluginRenameMap = {\n\t\"@eslint-react/debug\": \"react-debug\",\n\t\"@eslint-react/dom\": \"react-dom\",\n\t\"@eslint-react/hooks-extra\": \"react-hooks-extra\",\n\t\"@eslint-react/naming-convention\": \"react-naming-convention\",\n\t\"@eslint-react/web-api\": \"react-web-api\",\n\n\t/* eslint-disable perfectionist/sort-objects */\n\t// @eslint-react has to be below the rest to avoid rename issues\n\t\"@eslint-react\": \"react\",\n\n\t\"@next/next\": \"nextjs-next\",\n\n\t\"@stylistic\": \"stylistic\",\n\n\t\"@tanstack/query\": \"tanstack-query\",\n\n\t\"@typescript-eslint\": \"ts-eslint\",\n\n\t\"import-x\": \"import\",\n\n\tn: \"node\",\n} as const;\n","import type {\n\tOptionsFiles,\n\tOptionsHasTypeScript,\n\tOptionsOverrides,\n\tOptionsReact,\n\tTypedFlatConfigItem,\n} from \"@/types\";\n\nimport { defaultPluginRenameMap } from \"@/constants\";\nimport { GLOB_SRC } from \"@/globs\";\nimport { ensurePackages, interopDefault, renamePlugins, renameRules } from \"@/utils\";\nimport { fixupPluginRules } from \"@eslint/compat\";\nimport { isPackageExists } from \"local-pkg\";\n\n// react refresh\nconst ReactRefreshAllowConstantExportPackages = [\"vite\"];\nconst RemixPackages = [\"@remix-run/node\", \"@remix-run/react\", \"@remix-run/serve\", \"@remix-run/dev\"];\nconst NextJsPackages = [\"next\"];\n\nconst isAllowConstantExport = ReactRefreshAllowConstantExportPackages.some((i) => isPackageExists(i));\nconst isUsingRemix = RemixPackages.some((i) => isPackageExists(i));\nconst isUsingNext = NextJsPackages.some((i) => isPackageExists(i));\n\nconst react = async (\n\toptions: OptionsFiles & OptionsHasTypeScript & OptionsOverrides & OptionsReact = {}\n): Promise<TypedFlatConfigItem[]> => {\n\tconst { files = [GLOB_SRC], nextjs = isUsingNext, overrides, typescript = true } = options;\n\n\tawait ensurePackages([\n\t\t\"@eslint-react/eslint-plugin\",\n\t\t\"eslint-plugin-react-hooks\",\n\t\t\"eslint-plugin-react-refresh\",\n\t\t...(nextjs ? [\"@next/eslint-plugin-next\"] : []),\n\t\t\"typescript-eslint\",\n\t]);\n\n\tconst [eslintPluginReact, eslintReactHooks, eslintPluginReactRefresh, eslintPluginNextjs] =\n\t\tawait Promise.all([\n\t\t\tinteropDefault(import(\"@eslint-react/eslint-plugin\")),\n\t\t\tinteropDefault(import(\"eslint-plugin-react-hooks\")),\n\t\t\tinteropDefault(import(\"eslint-plugin-react-refresh\")),\n\t\t\t...(nextjs ? [interopDefault(import(\"@next/eslint-plugin-next\"))] : []),\n\t\t] as const);\n\n\t// prettier-ignore\n\tconst recommendedReactConfig = eslintPluginReact.configs[typescript ? \"recommended-type-checked\" : \"recommended\"];\n\n\tconst config: TypedFlatConfigItem[] = [\n\t\t{\n\t\t\tname: \"zayne/react/setup\",\n\n\t\t\tplugins: {\n\t\t\t\t...renamePlugins(recommendedReactConfig.plugins, defaultPluginRenameMap),\n\t\t\t\t\"react-hooks\": fixupPluginRules(eslintReactHooks),\n\t\t\t\t\"react-refresh\": eslintPluginReactRefresh,\n\t\t\t},\n\n\t\t\tsettings: recommendedReactConfig.settings,\n\t\t},\n\n\t\t{\n\t\t\tfiles,\n\n\t\t\tname: \"zayne/react/recommended\",\n\n\t\t\trules: renameRules(recommendedReactConfig.rules, defaultPluginRenameMap),\n\t\t},\n\n\t\t{\n\t\t\tfiles,\n\n\t\t\tname: \"zayne/react/rules\",\n\n\t\t\trules: {\n\t\t\t\t// Hook rules\n\t\t\t\t\"react-hooks-extra/ensure-custom-hooks-using-other-hooks\": \"error\",\n\t\t\t\t\"react-hooks-extra/no-unnecessary-use-callback\": \"warn\",\n\t\t\t\t\"react-hooks-extra/no-unnecessary-use-memo\": \"warn\",\n\t\t\t\t\"react-hooks-extra/prefer-use-state-lazy-initialization\": \"error\",\n\t\t\t\t\"react-hooks/exhaustive-deps\": \"warn\",\n\t\t\t\t\"react-hooks/rules-of-hooks\": \"error\",\n\t\t\t\t// Naming convention rules\n\t\t\t\t\"react-naming-convention/component-name\": \"warn\",\n\t\t\t\t\"react-naming-convention/use-state\": \"warn\",\n\t\t\t\t// React refresh rules\n\t\t\t\t\"react-refresh/only-export-components\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t{\n\t\t\t\t\t\tallowConstantExport: isAllowConstantExport,\n\t\t\t\t\t\tallowExportNames: [\n\t\t\t\t\t\t\t...(isUsingNext\n\t\t\t\t\t\t\t\t? [\n\t\t\t\t\t\t\t\t\t\t\"dynamic\",\n\t\t\t\t\t\t\t\t\t\t\"dynamicParams\",\n\t\t\t\t\t\t\t\t\t\t\"revalidate\",\n\t\t\t\t\t\t\t\t\t\t\"fetchCache\",\n\t\t\t\t\t\t\t\t\t\t\"runtime\",\n\t\t\t\t\t\t\t\t\t\t\"preferredRegion\",\n\t\t\t\t\t\t\t\t\t\t\"maxDuration\",\n\t\t\t\t\t\t\t\t\t\t\"config\",\n\t\t\t\t\t\t\t\t\t\t\"generateStaticParams\",\n\t\t\t\t\t\t\t\t\t\t\"metadata\",\n\t\t\t\t\t\t\t\t\t\t\"generateMetadata\",\n\t\t\t\t\t\t\t\t\t\t\"viewport\",\n\t\t\t\t\t\t\t\t\t\t\"generateViewport\",\n\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t: []),\n\t\t\t\t\t\t\t...(isUsingRemix ? [\"meta\", \"links\", \"headers\", \"loader\", \"action\"] : []),\n\t\t\t\t\t\t],\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t// Regular React rules\n\t\t\t\t\"react/avoid-shorthand-boolean\": \"error\",\n\t\t\t\t\"react/function-component-definition\": \"off\",\n\t\t\t\t\"react/no-array-index-key\": \"error\",\n\t\t\t\t\"react/no-children-count\": \"off\",\n\t\t\t\t\"react/no-children-only\": \"off\",\n\t\t\t\t\"react/no-children-prop\": \"error\",\n\t\t\t\t\"react/no-clone-element\": \"off\",\n\t\t\t\t\"react/no-complex-conditional-rendering\": \"warn\",\n\t\t\t\t\"react/no-missing-component-display-name\": \"error\",\n\t\t\t\t\"react/no-useless-fragment\": \"error\",\n\t\t\t\t\"react/prefer-destructuring-assignment\": \"error\",\n\t\t\t\t\"react/prefer-shorthand-fragment\": \"error\",\n\n\t\t\t\t...overrides,\n\t\t\t},\n\t\t},\n\t];\n\n\tif (nextjs && eslintPluginNextjs) {\n\t\tconfig.push({\n\t\t\tfiles,\n\n\t\t\tname: \"zayne/react/next\",\n\n\t\t\tplugins: {\n\t\t\t\t\"nextjs-next\": fixupPluginRules(eslintPluginNextjs),\n\t\t\t},\n\n\t\t\trules: renameRules(\n\t\t\t\t/* eslint-disable ts-eslint/no-unsafe-argument, ts-eslint/no-unsafe-member-access */\n\t\t\t\t{\n\t\t\t\t\t// @ts-expect-error - eslint-plugin-nextjs is not typed\n\t\t\t\t\t...eslintPluginNextjs.configs?.recommended?.rules,\n\t\t\t\t\t// @ts-expect-error - eslint-plugin-nextjs is not typed\n\t\t\t\t\t...eslintPluginNextjs.configs?.[\"core-web-vitals\"]?.rules,\n\t\t\t\t},\n\t\t\t\tdefaultPluginRenameMap\n\t\t\t),\n\t\t});\n\t}\n\n\treturn config;\n};\n\nexport { react };\n","import type { OptionsOverrides, OptionsTanstack, TypedFlatConfigItem } from \"@/types\";\nimport { ensurePackages, interopDefault, renameRules } from \"@/utils\";\nimport { defaultPluginRenameMap } from \"../constants\";\n\nconst tanstack = async (\n\toptions: OptionsOverrides & OptionsTanstack = {}\n): Promise<TypedFlatConfigItem[]> => {\n\tconst { query = true } = options;\n\n\tconst config: TypedFlatConfigItem[] = [];\n\n\tawait ensurePackages([...(query ? [\"@tanstack/eslint-plugin-query\"] : [])]);\n\n\tconst [eslintPluginTanstackQuery] = await Promise.all(\n\t\tquery ? [interopDefault(import(\"@tanstack/eslint-plugin-query\"))] : []\n\t);\n\n\tif (query && eslintPluginTanstackQuery) {\n\t\tconfig.push({\n\t\t\tname: \"zayne/tanstack/query-recommended\",\n\n\t\t\tplugins: {\n\t\t\t\t\"tanstack-query\": eslintPluginTanstackQuery,\n\t\t\t},\n\n\t\t\trules: renameRules(\n\t\t\t\teslintPluginTanstackQuery.configs[\"flat/recommended\"][0]?.rules,\n\t\t\t\tdefaultPluginRenameMap\n\t\t\t),\n\t\t});\n\t}\n\n\treturn config;\n};\n\nexport { tanstack };\n","import type { TypedFlatConfigItem } from \"@/types\";\n\n/**\n * @description - Sort package.json\n *\n * Requires `jsonc` config\n */\nexport const sortPackageJson = (): TypedFlatConfigItem[] => [\n\t{\n\t\tfiles: [\"**/package.json\"],\n\t\tname: \"zayne/sort/package-json\",\n\t\trules: {\n\t\t\t\"jsonc/sort-array-values\": [\n\t\t\t\t\"error\",\n\t\t\t\t{\n\t\t\t\t\torder: { type: \"asc\" },\n\t\t\t\t\tpathPattern: \"^files$\",\n\t\t\t\t},\n\t\t\t],\n\t\t\t\"jsonc/sort-keys\": [\n\t\t\t\t\"error\",\n\t\t\t\t{\n\t\t\t\t\torder: [\n\t\t\t\t\t\t\"publisher\",\n\t\t\t\t\t\t\"name\",\n\t\t\t\t\t\t\"displayName\",\n\t\t\t\t\t\t\"type\",\n\t\t\t\t\t\t\"version\",\n\t\t\t\t\t\t\"private\",\n\t\t\t\t\t\t\"packageManager\",\n\t\t\t\t\t\t\"description\",\n\t\t\t\t\t\t\"author\",\n\t\t\t\t\t\t\"contributors\",\n\t\t\t\t\t\t\"license\",\n\t\t\t\t\t\t\"funding\",\n\t\t\t\t\t\t\"homepage\",\n\t\t\t\t\t\t\"repository\",\n\t\t\t\t\t\t\"bugs\",\n\t\t\t\t\t\t\"keywords\",\n\t\t\t\t\t\t\"categories\",\n\t\t\t\t\t\t\"sideEffects\",\n\t\t\t\t\t\t\"exports\",\n\t\t\t\t\t\t\"main\",\n\t\t\t\t\t\t\"module\",\n\t\t\t\t\t\t\"unpkg\",\n\t\t\t\t\t\t\"jsdelivr\",\n\t\t\t\t\t\t\"types\",\n\t\t\t\t\t\t\"typesVersions\",\n\t\t\t\t\t\t\"bin\",\n\t\t\t\t\t\t\"icon\",\n\t\t\t\t\t\t\"files\",\n\t\t\t\t\t\t\"engines\",\n\t\t\t\t\t\t\"activationEvents\",\n\t\t\t\t\t\t\"contributes\",\n\t\t\t\t\t\t\"scripts\",\n\t\t\t\t\t\t\"peerDependencies\",\n\t\t\t\t\t\t\"peerDependenciesMeta\",\n\t\t\t\t\t\t\"dependencies\",\n\t\t\t\t\t\t\"optionalDependencies\",\n\t\t\t\t\t\t\"devDependencies\",\n\t\t\t\t\t\t\"pnpm\",\n\t\t\t\t\t\t\"overrides\",\n\t\t\t\t\t\t\"resolutions\",\n\t\t\t\t\t\t\"husky\",\n\t\t\t\t\t\t\"simple-git-hooks\",\n\t\t\t\t\t\t\"lint-staged\",\n\t\t\t\t\t\t\"eslintConfig\",\n\t\t\t\t\t],\n\t\t\t\t\tpathPattern: \"^$\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\torder: { type: \"asc\" },\n\t\t\t\t\tpathPattern: \"^(?:dev|peer|optional|bundled)?[Dd]ependencies(Meta)?$\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\torder: { type: \"asc\" },\n\t\t\t\t\tpathPattern: \"scripts\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\torder: { type: \"asc\" },\n\t\t\t\t\tpathPattern: \"^(?:resolutions|overrides|pnpm.overrides)$\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\torder: [\"types\", \"import\", \"require\", \"default\"],\n\t\t\t\t\tpathPattern: \"^exports.*$\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\torder: [\n\t\t\t\t\t\t// client hooks only\n\t\t\t\t\t\t\"pre-commit\",\n\t\t\t\t\t\t\"prepare-commit-msg\",\n\t\t\t\t\t\t\"commit-msg\",\n\t\t\t\t\t\t\"post-commit\",\n\t\t\t\t\t\t\"pre-rebase\",\n\t\t\t\t\t\t\"post-rewrite\",\n\t\t\t\t\t\t\"post-checkout\",\n\t\t\t\t\t\t\"post-merge\",\n\t\t\t\t\t\t\"pre-push\",\n\t\t\t\t\t\t\"pre-auto-gc\",\n\t\t\t\t\t],\n\t\t\t\t\tpathPattern: \"^(?:gitHooks|husky|simple-git-hooks)$\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t},\n];\n\n/**\n * Sort tsconfig.json\n *\n * Requires `jsonc` config\n */\n\nexport const sortTsconfig = (): TypedFlatConfigItem[] => [\n\t{\n\t\tfiles: [\"**/tsconfig.json\", \"**/tsconfig.*.json\"],\n\n\t\tname: \"zayne/sort/tsconfig-json\",\n\n\t\trules: {\n\t\t\t\"jsonc/sort-keys\": [\n\t\t\t\t\"error\",\n\t\t\t\t{\n\t\t\t\t\torder: [\"extends\", \"compilerOptions\", \"references\", \"files\", \"include\", \"exclude\"],\n\t\t\t\t\tpathPattern: \"^$\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\torder: [\n\t\t\t\t\t\t/* Projects */\n\t\t\t\t\t\t\"incremental\",\n\t\t\t\t\t\t\"composite\",\n\t\t\t\t\t\t\"tsBuildInfoFile\",\n\t\t\t\t\t\t\"disableSourceOfProjectReferenceRedirect\",\n\t\t\t\t\t\t\"disableSolutionSearching\",\n\t\t\t\t\t\t\"disableReferencedProjectLoad\",\n\t\t\t\t\t\t/* Language and Environment */\n\t\t\t\t\t\t\"target\",\n\t\t\t\t\t\t\"jsx\",\n\t\t\t\t\t\t\"jsxFactory\",\n\t\t\t\t\t\t\"jsxFragmentFactory\",\n\t\t\t\t\t\t\"jsxImportSource\",\n\t\t\t\t\t\t\"lib\",\n\t\t\t\t\t\t\"moduleDetection\",\n\t\t\t\t\t\t\"noLib\",\n\t\t\t\t\t\t\"reactNamespace\",\n\t\t\t\t\t\t\"useDefineForClassFields\",\n\t\t\t\t\t\t\"emitDecoratorMetadata\",\n\t\t\t\t\t\t\"experimentalDecorators\",\n\t\t\t\t\t\t/* Modules */\n\t\t\t\t\t\t\"baseUrl\",\n\t\t\t\t\t\t\"rootDir\",\n\t\t\t\t\t\t\"rootDirs\",\n\t\t\t\t\t\t\"customConditions\",\n\t\t\t\t\t\t\"module\",\n\t\t\t\t\t\t\"moduleResolution\",\n\t\t\t\t\t\t\"moduleSuffixes\",\n\t\t\t\t\t\t\"noResolve\",\n\t\t\t\t\t\t\"paths\",\n\t\t\t\t\t\t\"resolveJsonModule\",\n\t\t\t\t\t\t\"resolvePackageJsonExports\",\n\t\t\t\t\t\t\"resolvePackageJsonImports\",\n\t\t\t\t\t\t\"typeRoots\",\n\t\t\t\t\t\t\"types\",\n\t\t\t\t\t\t\"allowArbitraryExtensions\",\n\t\t\t\t\t\t\"allowImportingTsExtensions\",\n\t\t\t\t\t\t\"allowUmdGlobalAccess\",\n\t\t\t\t\t\t/* JavaScript Support */\n\t\t\t\t\t\t\"allowJs\",\n\t\t\t\t\t\t\"checkJs\",\n\t\t\t\t\t\t\"maxNodeModuleJsDepth\",\n\t\t\t\t\t\t/* Type Checking */\n\t\t\t\t\t\t\"strict\",\n\t\t\t\t\t\t\"strictBindCallApply\",\n\t\t\t\t\t\t\"strictFunctionTypes\",\n\t\t\t\t\t\t\"strictNullChecks\",\n\t\t\t\t\t\t\"strictPropertyInitialization\",\n\t\t\t\t\t\t\"allowUnreachableCode\",\n\t\t\t\t\t\t\"allowUnusedLabels\",\n\t\t\t\t\t\t\"alwaysStrict\",\n\t\t\t\t\t\t\"exactOptionalPropertyTypes\",\n\t\t\t\t\t\t\"noFallthroughCasesInSwitch\",\n\t\t\t\t\t\t\"noImplicitAny\",\n\t\t\t\t\t\t\"noImplicitOverride\",\n\t\t\t\t\t\t\"noImplicitReturns\",\n\t\t\t\t\t\t\"noImplicitThis\",\n\t\t\t\t\t\t\"noPropertyAccessFromIndexSignature\",\n\t\t\t\t\t\t\"noUncheckedIndexedAccess\",\n\t\t\t\t\t\t\"noUnusedLocals\",\n\t\t\t\t\t\t\"noUnusedParameters\",\n\t\t\t\t\t\t\"useUnknownInCatchVariables\",\n\t\t\t\t\t\t/* Emit */\n\t\t\t\t\t\t\"declaration\",\n\t\t\t\t\t\t\"declarationDir\",\n\t\t\t\t\t\t\"declarationMap\",\n\t\t\t\t\t\t\"downlevelIteration\",\n\t\t\t\t\t\t\"emitBOM\",\n\t\t\t\t\t\t\"emitDeclarationOnly\",\n\t\t\t\t\t\t\"importHelpers\",\n\t\t\t\t\t\t\"importsNotUsedAsValues\",\n\t\t\t\t\t\t\"inlineSourceMap\",\n\t\t\t\t\t\t\"inlineSources\",\n\t\t\t\t\t\t\"mapRoot\",\n\t\t\t\t\t\t\"newLine\",\n\t\t\t\t\t\t\"noEmit\",\n\t\t\t\t\t\t\"noEmitHelpers\",\n\t\t\t\t\t\t\"noEmitOnError\",\n\t\t\t\t\t\t\"outDir\",\n\t\t\t\t\t\t\"outFile\",\n\t\t\t\t\t\t\"preserveConstEnums\",\n\t\t\t\t\t\t\"preserveValueImports\",\n\t\t\t\t\t\t\"removeComments\",\n\t\t\t\t\t\t\"sourceMap\",\n\t\t\t\t\t\t\"sourceRoot\",\n\t\t\t\t\t\t\"stripInternal\",\n\t\t\t\t\t\t/* Interop Constraints */\n\t\t\t\t\t\t\"allowSyntheticDefaultImports\",\n\t\t\t\t\t\t\"esModuleInterop\",\n\t\t\t\t\t\t\"forceConsistentCasingInFileNames\",\n\t\t\t\t\t\t\"isolatedDeclarations\",\n\t\t\t\t\t\t\"isolatedModules\",\n\t\t\t\t\t\t\"preserveSymlinks\",\n\t\t\t\t\t\t\"verbatimModuleSyntax\",\n\t\t\t\t\t\t/* Completeness */\n\t\t\t\t\t\t\"skipDefaultLibCheck\",\n\t\t\t\t\t\t\"skipLibCheck\",\n\t\t\t\t\t],\n\t\t\t\t\tpathPattern: \"^compilerOptions$\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t},\n];\n","import type { OptionsAppType, OptionsNode, OptionsOverrides, TypedFlatConfigItem } from \"@/types\";\nimport { interopDefault, renameRules } from \"@/utils\";\n\nexport const node = async (\n\toptions: OptionsAppType & OptionsNode & OptionsOverrides = {}\n): Promise<TypedFlatConfigItem[]> => {\n\tconst { overrides, security = false, type = \"app\" } = options;\n\n\tconst eslintPluginNode = await interopDefault(import(\"eslint-plugin-n\"));\n\tconst eslintPluginSecurity = await interopDefault(import(\"eslint-plugin-security\"));\n\n\treturn [\n\t\t{\n\t\t\tname: \"zayne/node/setup\",\n\t\t\tplugins: {\n\t\t\t\tnode: eslintPluginNode,\n\t\t\t\t...(security && { security: eslintPluginSecurity }),\n\t\t\t},\n\t\t},\n\n\t\t{\n\t\t\tname: \"zayne/node/recommended\",\n\t\t\trules: {\n\t\t\t\t...renameRules(eslintPluginNode.configs[\"flat/recommended-module\"].rules, { n: \"node\" }),\n\t\t\t\t...(security && eslintPluginSecurity.configs.recommended.rules),\n\t\t\t},\n\t\t},\n\n\t\t{\n\t\t\tname: \"zayne/node/rules\",\n\n\t\t\trules: {\n\t\t\t\t\"node/no-deprecated-api\": \"error\",\n\t\t\t\t\"node/no-exports-assign\": \"error\",\n\t\t\t\t\"node/no-extraneous-import\": \"off\", // eslint-plugin-import-x handles this\n\t\t\t\t\"node/no-missing-import\": \"off\",\n\t\t\t\t\"node/no-path-concat\": \"error\",\n\t\t\t\t\"node/no-unpublished-import\": \"off\",\n\t\t\t\t\"node/process-exit-as-throw\": \"error\",\n\n\t\t\t\t...(type === \"lib-strict\"\n\t\t\t\t\t? {\n\t\t\t\t\t\t\t\"node/no-unsupported-features/es-syntax\": \"error\",\n\t\t\t\t\t\t\t\"node/no-unsupported-features/node-builtins\": \"error\",\n\t\t\t\t\t\t}\n\t\t\t\t\t: {\n\t\t\t\t\t\t\t\"node/no-unsupported-features/es-syntax\": \"off\",\n\t\t\t\t\t\t\t\"node/no-unsupported-features/node-builtins\": \"off\",\n\t\t\t\t\t\t}),\n\n\t\t\t\t...overrides,\n\t\t\t},\n\t\t},\n\t];\n};\n","import { GLOB_JSX, GLOB_TSX } from \"@/globs\";\nimport type { TypedFlatConfigItem } from \"@/types\";\n\nconst jsx = (): TypedFlatConfigItem[] => {\n\treturn [\n\t\t{\n\t\t\tfiles: [GLOB_JSX, GLOB_TSX],\n\n\t\t\tlanguageOptions: {\n\t\t\t\tparserOptions: {\n\t\t\t\t\tecmaFeatures: {\n\t\t\t\t\t\tjsx: true,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\n\t\t\tname: \"zayne/jsx/setup\",\n\t\t},\n\t];\n};\n\nexport { jsx };\n","import { isObject } from \"@/utils\";\nimport type { Linter } from \"eslint\";\nimport { FlatConfigComposer } from \"eslint-flat-config-utils\";\nimport { isPackageExists } from \"local-pkg\";\nimport {\n\tgitIgnores,\n\tignores,\n\timports,\n\tjavascript,\n\tjsdoc,\n\tjsonc,\n\tnode,\n\tperfectionist,\n\treact,\n\tsortPackageJson,\n\tsortTsconfig,\n\tstylistic,\n\ttailwindcss,\n\ttanstack,\n\ttypescript,\n\tunicorn,\n} from \"./configs\";\nimport { jsx } from \"./configs/jsx\";\nimport { defaultPluginRenameMap } from \"./constants\";\nimport type { Awaitable, ConfigNames, OptionsConfig, TypedFlatConfigItem } from \"./types\";\n\nconst ReactPackages = [\"react\", \"react-dom\"];\n\nconst resolveOptions = (option: unknown) => (isObject(option) ? option : {});\n\n/**\n * Construct an array of ESLint flat config items.\n * @param options\n * The options for generating the ESLint configurations.\n * @param userConfigs\n * The user configurations to be merged with the generated configurations.\n * @returns\n * The merged ESLint configurations.\n */\n\nexport const zayne = (\n\toptions: OptionsConfig & Pick<TypedFlatConfigItem, \"ignores\"> = {},\n\tuserConfigs: Array<\n\t\tAwaitable<FlatConfigComposer | Linter.Config[] | TypedFlatConfigItem | TypedFlatConfigItem[]>\n\t> = []\n): FlatConfigComposer<TypedFlatConfigItem, ConfigNames> => {\n\tconst {\n\t\tautoRenamePlugins = true,\n\t\tcomponentExts = [],\n\t\tgitignore: enableGitignore = true,\n\t\tjsonc: enableJsonc = true,\n\t\tjsx: enableJsx = true,\n\t\tnode: enableNode = true,\n\t\tperfectionist: enablePerfectionist = true,\n\t\treact: enableReact = ReactPackages.some((pkg) => isPackageExists(pkg)),\n\t\tstylistic: enableStylistic = true,\n\t\ttype = \"app\",\n\t\ttypescript: enableTypeScript = isPackageExists(\"typescript\"),\n\t\tunicorn: enableUnicorn = true,\n\t\t...restOfOptions\n\t} = options;\n\n\tconst isStylistic = Boolean(enableStylistic);\n\n\tconst tsconfigPath =\n\t\tisObject(enableTypeScript) && \"tsconfigPath\" in enableTypeScript\n\t\t\t? enableTypeScript.tsconfigPath\n\t\t\t: null;\n\n\tconst configs: Array<Awaitable<TypedFlatConfigItem[]>> = [];\n\n\tif (enableGitignore) {\n\t\tconfigs.push(gitIgnores(resolveOptions(enableGitignore)));\n\t}\n\n\t// Base configs\n\tconfigs.push(\n\t\tignores(restOfOptions.ignores),\n\t\tjavascript(restOfOptions.javascript),\n\t\timports({ stylistic: isStylistic }),\n\t\tjsdoc({ stylistic: isStylistic })\n\t);\n\n\tif (enableNode) {\n\t\tconfigs.push(node({ type, ...resolveOptions(enableNode) }));\n\t}\n\n\tif (enablePerfectionist) {\n\t\tconfigs.push(perfectionist(resolveOptions(enablePerfectionist)));\n\t}\n\n\tif (enableUnicorn) {\n\t\tconfigs.push(unicorn({ type, ...resolveOptions(enableUnicorn) }));\n\t}\n\n\tif (enableJsonc) {\n\t\tconfigs.push(\n\t\t\tjsonc({\n\t\t\t\tstylistic: isStylistic,\n\t\t\t\t...resolveOptions(enableJsonc),\n\t\t\t}),\n\t\t\tsortPackageJson(),\n\t\t\tsortTsconfig()\n\t\t);\n\t}\n\n\tif (enableTypeScript) {\n\t\tconfigs.push(\n\t\t\ttypescript({\n\t\t\t\tcomponentExts,\n\t\t\t\tstylistic: isStylistic,\n\t\t\t\t...resolveOptions(enableTypeScript),\n\t\t\t})\n\t\t);\n\t}\n\n\tif (restOfOptions.tailwindcss) {\n\t\tconfigs.push(tailwindcss(resolveOptions(restOfOptions.tailwindcss)));\n\t}\n\n\tif (restOfOptions.tanstack) {\n\t\tconfigs.push(tanstack(resolveOptions(restOfOptions.tanstack)));\n\t}\n\n\tif (enableJsx) {\n\t\tconfigs.push(jsx());\n\t}\n\n\tif (enableStylistic) {\n\t\tconst stylisticOptions = resolveOptions(enableStylistic);\n\n\t\tconfigs.push(\n\t\t\tstylistic({\n\t\t\t\t...stylisticOptions,\n\t\t\t\t...(!(\"jsx\" in stylisticOptions) && { jsx: enableJsx }),\n\t\t\t})\n\t\t);\n\t}\n\n\tif (enableReact) {\n\t\tconfigs.push(\n\t\t\treact({\n\t\t\t\t...resolveOptions(enableReact),\n\t\t\t\ttypescript: Boolean(tsconfigPath),\n\t\t\t})\n\t\t);\n\t}\n\n\tif (\"files\" in restOfOptions) {\n\t\tthrow new Error(\n\t\t\t'[@zayne-labs/eslint-config] The first argument should not contain the \"files\" property as the options are supposed to be global. Place it in the second config array instead.'\n\t\t);\n\t}\n\n\tlet composer = new FlatConfigComposer<TypedFlatConfigItem, ConfigNames>();\n\n\tcomposer = composer.append(...configs, ...(userConfigs as never[]));\n\n\tif (autoRenamePlugins) {\n\t\tcomposer = composer.renamePlugins(defaultPluginRenameMap);\n\t}\n\n\treturn composer;\n};\n"]}
1
+ {"version":3,"sources":["../src/utils.ts","../src/globs.ts","../src/configs/ignores.ts","../src/configs/javascript.ts","../src/configs/tailwindcss.ts","../src/configs/typescript.ts","../src/configs/unicorn.ts","../src/configs/imports.ts","../src/configs/perfectionist.ts","../src/configs/stylistic.ts","../src/configs/jsonc.ts","../src/configs/jsdoc.ts","../src/constants.ts","../src/configs/react.ts","../src/configs/tanstack.ts","../src/configs/sort.ts","../src/configs/node.ts","../src/configs/jsx.ts","../src/factory.ts"],"names":["stylistic","ignores","typescript","jsx","isPackageExists"],"mappings":";;;;;;;AAKa,IAAA,QAAA,GAAW,CAA0C,KAAqC,KAAA;AACtG,EAAO,OAAA,OAAO,UAAU,QAAY,IAAA,KAAA,KAAU,QAAQ,CAAC,KAAA,CAAM,QAAQ,KAAK,CAAA;AAC3E;AAKa,IAAA,OAAA,GAAU,UACnB,OACC,KAAA;AACJ,EAAA,MAAM,QAAW,GAAA,MAAM,OAAQ,CAAA,GAAA,CAAI,OAAO,CAAA;AAE1C,EAAA,OAAO,SAAS,IAAK,EAAA;AACtB;AAEa,IAAA,cAAA,GAAiB,OAC7B,MAC2F,KAAA;AAC3F,EAAA,MAAM,WAAW,MAAM,MAAA;AAGvB,EAAA,OAAQ,SAAgC,OAAW,IAAA,QAAA;AACpD;AAoBa,IAAA,WAAA,GAAc,CAC1B,KAAA,EACA,SACI,KAAA;AACJ,EAAA,IAAI,CAAC,KAAO,EAAA;AAEZ,EAAM,MAAA,mBAAA,GAAsB,MAA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C,CAAA;AAAA;AAGpE,EAAA,IAAI,cAAc,QAAU,EAAA;AAC3B,IAAA,OAAA,CAAQ,KAAK,QAAS,CAAA,cAAA,CAAe,aAAc,CAAA,QAAQ,CAAC,CAAC,CAAA;AAAA;AAG9D,EAAA,IAAI,SAAW,EAAA;AACd,IAAQ,OAAA,CAAA,IAAA,CAAK,KAAK,CAAA;AAAA;AAGnB,EAAA,IAAI,eAAiB,EAAA;AACpB,IAAM,MAAA,gBAAA,GAAmB,eAAe,eAAe,CAAA;AAEvD,IAAQ,OAAA,CAAA,IAAA;AAAA,MACP,SAAU,CAAA;AAAA,QACT,GAAG,gBAAA;AAAA,QACH,GAAI,EAAE,KAAA,IAAS,gBAAqB,CAAA,IAAA,EAAE,KAAK,SAAU;AAAA,OACrD;AAAA,KACF;AAAA;AAGD,EAAA,IAAI,WAAa,EAAA;AAChB,IAAQ,OAAA,CAAA,IAAA;AAAA,MACP,KAAM,CAAA;AAAA,QACL,GAAG,eAAe,WAAW,CAAA;AAAA,QAC7B,UAAA,EAAY,QAAQ,YAAY;AAAA,OAChC;AAAA,KACF;AAAA;AAGD,EAAA,IAAI,WAAW,aAAe,EAAA;AAC7B,IAAA,MAAM,IAAI,KAAA;AAAA,MACT;AAAA,KACD;AAAA;AAGD,EAAI,IAAA,QAAA,GAAW,IAAI,kBAAqD,EAAA;AAExE,EAAA,QAAA,GAAW,QAAS,CAAA,MAAA,CAAO,GAAG,OAAA,EAAS,GAAI,WAAuB,CAAA;AAElE,EAAA,IAAI,iBAAmB,EAAA;AACtB,IAAW,QAAA,GAAA,QAAA,CAAS,cAAc,sBAAsB,CAAA;AAAA;AAGzD,EAAO,OAAA,QAAA;AACR","file":"index.js","sourcesContent":["import { fileURLToPath } from \"node:url\";\nimport type { ESLint } from \"eslint\";\nimport { isPackageExists } from \"local-pkg\";\nimport type { Awaitable, TypedFlatConfigItem } from \"./types\";\n\nexport const isObject = <TObject extends Record<string, unknown>>(value: unknown): value is TObject => {\n\treturn typeof value === \"object\" && value !== null && !Array.isArray(value);\n};\n\n/**\n * @description - Combine array and non-array configs into a single array.\n */\nexport const combine = async (\n\t...configs: Array<Awaitable<TypedFlatConfigItem | TypedFlatConfigItem[]>>\n) => {\n\tconst resolved = await Promise.all(configs);\n\n\treturn resolved.flat();\n};\n\nexport const interopDefault = async <TModule>(\n\tmodule: Awaitable<TModule>\n): Promise<TModule extends { default: infer TDefaultExport } ? TDefaultExport : TModule> => {\n\tconst resolved = await module;\n\n\t// eslint-disable-next-line ts-eslint/no-unnecessary-condition\n\treturn (resolved as { default: never }).default ?? resolved;\n};\n\n/**\n * @description - Rename plugin prefixes in a rule object.\n * Accepts a map of prefixes to rename.\n *\n * @example\n * ```ts\n * import { renameRules } from '@zayne-labs/eslint-config'\n *\n * export default [{\n * rules: renameRules(\n * {\n * '@typescript-eslint/indent': 'error'\n * },\n * { '@typescript-eslint': 'ts' }\n * )\n * }]\n * ```\n */\nexport const renameRules = (\n\trules: Record<string, unknown> | undefined,\n\trenameMap: Record<string, string>\n) => {\n\tif (!rules) return;\n\n\tconst renamedRulesEntries = Object.entries(rules).map(([ruleKey, ruleValue]) => {\n\t\tfor (const [oldRuleName, newRuleName] of Object.entries(renameMap)) {\n\t\t\tif (ruleKey.startsWith(`${oldRuleName}/`)) {\n\t\t\t\treturn [`${newRuleName}${ruleKey.slice(oldRuleName.length)}`, ruleValue];\n\t\t\t}\n\t\t}\n\n\t\treturn [ruleKey, ruleValue];\n\t});\n\n\treturn Object.fromEntries(renamedRulesEntries) as TypedFlatConfigItem[\"rules\"];\n};\n\nexport const renamePlugins = (\n\tplugins: Record<string, unknown> | undefined,\n\trenameMap: Record<string, string>\n) => {\n\tif (!plugins) return;\n\n\tconst renamedPluginEntries = Object.entries(plugins).map(([pluginKey, pluginValue]) => {\n\t\tif (pluginKey in renameMap) {\n\t\t\treturn [renameMap[pluginKey], pluginValue];\n\t\t}\n\n\t\treturn [pluginKey, pluginValue];\n\t});\n\n\treturn Object.fromEntries(renamedPluginEntries) as Record<string, ESLint.Plugin>;\n};\n\n/**\n * @description - Rename plugin names a flat configs array\n *\n * @example\n * ```ts\n * import { renamePluginInConfigs } from '@zayne-labs/eslint-config'\n * import someConfigs from './some-configs'\n *\n * export default renamePluginInConfigs(someConfigs, {\n * '@typescript-eslint': 'ts',\n * 'import-x': 'import',\n * })\n * ```\n */\nexport const renamePluginInConfigs = (\n\tconfigs: TypedFlatConfigItem[],\n\trenameMap: Record<string, string>,\n\textraOverrides?: TypedFlatConfigItem\n): TypedFlatConfigItem[] => {\n\tconst renamedConfigs = configs.map((config) => ({\n\t\t...config,\n\t\t...extraOverrides,\n\t\t...(isObject(config.rules) && { rules: renameRules(config.rules, renameMap) }),\n\t\t...(isObject(config.plugins) && { plugins: renamePlugins(config.plugins, renameMap) }),\n\t}));\n\n\treturn renamedConfigs;\n};\n\nconst scopeUrl = fileURLToPath(new URL(\".\", import.meta.url));\nconst isCwdInScope = isPackageExists(\"@zayne-labs/eslint-config\");\n\nexport const isPackageInScope = (name: string): boolean => isPackageExists(name, { paths: [scopeUrl] });\n\n/**\n * @description - Ensure that packages are installed in the current scope. If they are not\n * installed, and the user is in a TTY, and the user is not in a CI environment,\n * and the user is in the same scope as this package, then prompt the user to\n * install the packages.\n * @param packages - The packages to ensure are installed.\n */\nexport const ensurePackages = async (packages: Array<string | undefined>): Promise<void> => {\n\tif (process.env.CI || !process.stdout.isTTY || !isCwdInScope) return;\n\n\tconst nonExistingPackages = packages.filter((pkg) => pkg && !isPackageInScope(pkg));\n\n\tif (nonExistingPackages.length === 0) return;\n\n\tconst clackPrompt = await import(\"@clack/prompts\");\n\n\tconst result = await clackPrompt.confirm({\n\t\tmessage: `${nonExistingPackages.length === 1 ? \"Package is\" : \"Packages are\"} required for this config: ${nonExistingPackages.join(\", \")}. Do you want to install them?`,\n\t});\n\n\tif (result) {\n\t\tconst antfuPkg = await import(\"@antfu/install-pkg\");\n\n\t\tawait antfuPkg.installPackage(nonExistingPackages as string[], { dev: true });\n\t}\n};\n","export const GLOB_SRC_EXT = \"?([cm])[jt]s?(x)\";\nexport const GLOB_SRC = \"**/*.?([cm])[jt]s?(x)\";\n\nexport const GLOB_JS = \"**/*.?([cm])js\";\nexport const GLOB_JSX = \"**/*.?([cm])jsx\";\n\nexport const GLOB_TS = \"**/*.?([cm])ts\";\nexport const GLOB_TSX = \"**/*.?([cm])tsx\";\n\nexport const GLOB_STYLES = \"**/*.{c,le,sc}ss\";\nexport const GLOB_CSS = \"**/*.css\";\nexport const GLOB_POSTCSS = \"**/*.{p,post}css\";\nexport const GLOB_LESS = \"**/*.less\";\nexport const GLOB_SCSS = \"**/*.scss\";\n\nexport const GLOB_JSON = \"**/*.json\";\nexport const GLOB_JSON5 = \"**/*.json5\";\nexport const GLOB_JSONC = \"**/*.jsonc\";\n\nexport const GLOB_MARKDOWN = \"**/*.md\";\nexport const GLOB_MARKDOWN_IN_MARKDOWN = \"**/*.md/*.md\";\nexport const GLOB_SVELTE = \"**/*.svelte\";\nexport const GLOB_VUE = \"**/*.vue\";\nexport const GLOB_YAML = \"**/*.y?(a)ml\";\nexport const GLOB_TOML = \"**/*.toml\";\nexport const GLOB_XML = \"**/*.xml\";\nexport const GLOB_SVG = \"**/*.svg\";\nexport const GLOB_HTML = \"**/*.htm?(l)\";\nexport const GLOB_ASTRO = \"**/*.astro\";\nexport const GLOB_ASTRO_TS = \"**/*.astro/*.ts\";\nexport const GLOB_GRAPHQL = \"**/*.{g,graph}ql\";\n\nexport const GLOB_MARKDOWN_CODE = `${GLOB_MARKDOWN}/${GLOB_SRC}`;\n\nexport const GLOB_TESTS = [\n\t`**/__tests__/**/*.${GLOB_SRC_EXT}`,\n\t`**/*.spec.${GLOB_SRC_EXT}`,\n\t`**/*.test.${GLOB_SRC_EXT}`,\n\t`**/*.bench.${GLOB_SRC_EXT}`,\n\t`**/*.benchmark.${GLOB_SRC_EXT}`,\n];\n\nexport const GLOB_ALL_SRC = [\n\tGLOB_SRC,\n\tGLOB_STYLES,\n\tGLOB_JSON,\n\tGLOB_JSON5,\n\tGLOB_MARKDOWN,\n\tGLOB_SVELTE,\n\tGLOB_VUE,\n\tGLOB_YAML,\n\tGLOB_XML,\n\tGLOB_HTML,\n];\n\nexport const GLOB_EXCLUDE = [\n\t\"**/node_modules\",\n\t\"**/dist\",\n\t\"**/package-lock.json\",\n\t\"**/yarn.lock\",\n\t\"**/pnpm-lock.yaml\",\n\t\"**/bun.lockb\",\n\n\t\"**/output\",\n\t\"**/coverage\",\n\t\"**/temp\",\n\t\"**/.temp\",\n\t\"**/tmp\",\n\t\"**/.tmp\",\n\t\"**/.history\",\n\t\"**/.vitepress/cache\",\n\t\"**/.nuxt\",\n\t\"**/.next\",\n\t\"**/.svelte-kit\",\n\t\"**/.vercel\",\n\t\"**/.changeset\",\n\t\"**/.idea\",\n\t\"**/.cache\",\n\t\"**/.output\",\n\t\"**/.vite-inspect\",\n\t\"**/.yarn\",\n\t\"**/vite.config.*.timestamp-*\",\n\n\t\"**/CHANGELOG*.md\",\n\t\"**/*.min.*\",\n\t\"**/LICENSE*\",\n\t\"**/__snapshots__\",\n\t\"**/auto-import?(s).d.ts\",\n\t\"**/components.d.ts\",\n];\n","import { interopDefault } from \"@/utils\";\nimport type { FlatGitignoreOptions } from \"eslint-config-flat-gitignore\";\nimport { GLOB_EXCLUDE } from \"../globs\";\nimport type { TypedFlatConfigItem } from \"../types\";\n\nexport const ignores = (userIgnores: string[] = []): TypedFlatConfigItem[] => [\n\t{\n\t\tignores: [...GLOB_EXCLUDE, ...userIgnores],\n\t\tname: \"zayne/defaults/ignores\",\n\t},\n];\n\nexport const gitIgnores = async (options?: FlatGitignoreOptions): Promise<TypedFlatConfigItem[]> => {\n\tconst antfuGitIgnore = await interopDefault(import(\"eslint-config-flat-gitignore\"));\n\n\tconst config = antfuGitIgnore({\n\t\tname: \"zayne/gitignore\",\n\t\tstrict: false,\n\t\t...options,\n\t});\n\n\treturn [config];\n};\n","import type { OptionsOverrides, TypedFlatConfigItem } from \"@/types\";\nimport { interopDefault } from \"@/utils\";\nimport globals from \"globals\";\n\nconst javascript = async (options: OptionsOverrides = {}): Promise<TypedFlatConfigItem[]> => {\n\tconst { overrides } = options;\n\n\tconst eslintJs = await interopDefault(import(\"@eslint/js\"));\n\n\treturn [\n\t\t{\n\t\t\tlanguageOptions: {\n\t\t\t\tecmaVersion: \"latest\",\n\n\t\t\t\tglobals: {\n\t\t\t\t\t...globals.browser,\n\t\t\t\t\t...globals.node,\n\t\t\t\t\tdocument: \"readonly\",\n\t\t\t\t\tnavigator: \"readonly\",\n\t\t\t\t\twindow: \"readonly\",\n\t\t\t\t},\n\n\t\t\t\tparserOptions: {\n\t\t\t\t\tecmaFeatures: {\n\t\t\t\t\t\tjsx: true,\n\t\t\t\t\t},\n\t\t\t\t\tecmaVersion: \"latest\",\n\t\t\t\t\tsourceType: \"module\",\n\t\t\t\t},\n\n\t\t\t\tsourceType: \"module\",\n\t\t\t},\n\n\t\t\tlinterOptions: {\n\t\t\t\treportUnusedDisableDirectives: true,\n\t\t\t},\n\n\t\t\tname: \"zayne/js-eslint/setup\",\n\t\t},\n\t\t{\n\t\t\tname: \"zayne/js-eslint/recommended\",\n\t\t\t...eslintJs.configs.recommended,\n\t\t},\n\t\t{\n\t\t\tname: \"zayne/js-eslint/rules\",\n\n\t\t\trules: {\n\t\t\t\t\"accessor-pairs\": [\"error\", { enforceForClassMembers: true, setWithoutGet: true }],\n\t\t\t\t\"array-callback-return\": [\"error\", { allowImplicit: true }],\n\t\t\t\t\"block-scoped-var\": \"error\",\n\t\t\t\t\"class-methods-use-this\": \"error\",\n\t\t\t\tcomplexity: [\"warn\", 50],\n\t\t\t\t\"constructor-super\": \"error\",\n\t\t\t\tcurly: [\"error\", \"multi-line\"],\n\t\t\t\t\"default-case\": [\"error\", { commentPattern: \"^no default$\" }],\n\t\t\t\t\"default-case-last\": \"error\",\n\t\t\t\t\"default-param-last\": \"error\",\n\t\t\t\t\"dot-notation\": [\"error\", { allowKeywords: true }],\n\t\t\t\teqeqeq: [\"error\", \"always\", { null: \"ignore\" }],\n\t\t\t\t\"grouped-accessor-pairs\": \"error\",\n\t\t\t\t\"logical-assignment-operators\": \"warn\",\n\t\t\t\t\"max-depth\": [\"error\", 2],\n\t\t\t\t\"new-cap\": [\"error\", { capIsNew: false, newIsCap: true, properties: true }],\n\t\t\t\t\"no-alert\": \"warn\",\n\t\t\t\t\"no-array-constructor\": \"error\",\n\t\t\t\t\"no-async-promise-executor\": \"error\",\n\t\t\t\t\"no-await-in-loop\": \"error\",\n\t\t\t\t\"no-caller\": \"error\",\n\t\t\t\t\"no-case-declarations\": \"error\",\n\t\t\t\t\"no-class-assign\": \"error\",\n\t\t\t\t\"no-compare-neg-zero\": \"error\",\n\t\t\t\t\"no-cond-assign\": [\"error\", \"always\"],\n\t\t\t\t\"no-console\": [\"error\", { allow: [\"warn\", \"error\", \"info\", \"trace\"] }],\n\t\t\t\t\"no-const-assign\": \"error\",\n\t\t\t\t\"no-constant-condition\": \"warn\",\n\t\t\t\t\"no-constructor-return\": \"error\",\n\t\t\t\t\"no-control-regex\": \"error\",\n\t\t\t\t\"no-debugger\": \"error\",\n\t\t\t\t\"no-delete-var\": \"error\",\n\t\t\t\t\"no-dupe-args\": \"error\",\n\t\t\t\t\"no-dupe-class-members\": \"error\",\n\t\t\t\t\"no-dupe-keys\": \"error\",\n\t\t\t\t\"no-duplicate-case\": \"error\",\n\t\t\t\t\"no-else-return\": [\"error\", { allowElseIf: false }],\n\t\t\t\t\"no-empty\": [\"error\", { allowEmptyCatch: true }],\n\t\t\t\t\"no-empty-character-class\": \"error\",\n\t\t\t\t\"no-empty-pattern\": \"error\",\n\t\t\t\t\"no-eval\": \"error\",\n\t\t\t\t\"no-ex-assign\": \"error\",\n\t\t\t\t\"no-extend-native\": \"error\",\n\t\t\t\t\"no-extra-bind\": \"error\",\n\t\t\t\t\"no-extra-boolean-cast\": \"error\",\n\t\t\t\t\"no-fallthrough\": \"error\",\n\t\t\t\t\"no-func-assign\": \"error\",\n\t\t\t\t\"no-global-assign\": \"error\",\n\t\t\t\t\"no-implicit-coercion\": \"warn\",\n\t\t\t\t\"no-implied-eval\": \"error\",\n\t\t\t\t\"no-import-assign\": \"error\",\n\t\t\t\t\"no-invalid-regexp\": \"error\",\n\t\t\t\t\"no-irregular-whitespace\": \"error\",\n\t\t\t\t\"no-iterator\": \"error\",\n\t\t\t\t\"no-labels\": [\"error\", { allowLoop: false, allowSwitch: false }],\n\t\t\t\t\"no-lone-blocks\": \"error\",\n\t\t\t\t\"no-loop-func\": \"error\",\n\t\t\t\t\"no-loss-of-precision\": \"error\",\n\t\t\t\t\"no-misleading-character-class\": \"error\",\n\t\t\t\t\"no-multi-str\": \"error\",\n\t\t\t\t\"no-new\": \"error\",\n\t\t\t\t\"no-new-func\": \"error\",\n\t\t\t\t\"no-new-native-nonconstructor\": \"error\",\n\t\t\t\t\"no-new-wrappers\": \"error\",\n\t\t\t\t\"no-obj-calls\": \"error\",\n\t\t\t\t\"no-octal\": \"error\",\n\t\t\t\t\"no-octal-escape\": \"error\",\n\t\t\t\t\"no-param-reassign\": [\n\t\t\t\t\t\"error\",\n\t\t\t\t\t{\n\t\t\t\t\t\tignorePropertyModificationsFor: [\n\t\t\t\t\t\t\t\"acc\", // for reduce accumulators\n\t\t\t\t\t\t\t\"accumulator\", // for reduce accumulators\n\t\t\t\t\t\t\t\"e\", // for e.returnvalue\n\t\t\t\t\t\t\t\"ctx\", // for Koa routing\n\t\t\t\t\t\t\t\"context\", // for Koa routing\n\t\t\t\t\t\t\t\"req\", // for Express requests\n\t\t\t\t\t\t\t\"request\", // for Express requests\n\t\t\t\t\t\t\t\"res\", // for Express responses\n\t\t\t\t\t\t\t\"response\", // for Express responses\n\t\t\t\t\t\t\t\"$scope\", // for Angular 1 scopes\n\t\t\t\t\t\t\t\"staticContext\", // for ReactRouter context\n\t\t\t\t\t\t],\n\t\t\t\t\t\tprops: true,\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t\"no-proto\": \"error\",\n\t\t\t\t\"no-prototype-builtins\": \"error\",\n\t\t\t\t\"no-redeclare\": [\"error\", { builtinGlobals: false }],\n\t\t\t\t\"no-regex-spaces\": \"error\",\n\t\t\t\t\"no-restricted-exports\": [\n\t\t\t\t\t\"error\",\n\t\t\t\t\t{\n\t\t\t\t\t\trestrictedNamedExports: [\n\t\t\t\t\t\t\t\"default\", // use `export default` to provide a default export\n\t\t\t\t\t\t\t\"then\", // this will cause tons of confusion when your module is dynamically `import()`ed, and will break in most node ESM versions\n\t\t\t\t\t\t],\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t\"no-restricted-globals\": [\n\t\t\t\t\t\"error\",\n\t\t\t\t\t{\n\t\t\t\t\t\tmessage:\n\t\t\t\t\t\t\t\"Use Number.isFinite instead https://github.com/airbnb/javascript#standard-library--isfinite\",\n\t\t\t\t\t\tname: \"isFinite\",\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tmessage:\n\t\t\t\t\t\t\t\"Use Number.isNaN instead https://github.com/airbnb/javascript#standard-library--isnan\",\n\t\t\t\t\t\tname: \"isNaN\",\n\t\t\t\t\t},\n\t\t\t\t\t{ message: \"Use `globalThis` instead.\", name: \"global\" },\n\t\t\t\t\t{ message: \"Use `globalThis` instead.\", name: \"self\" },\n\t\t\t\t],\n\t\t\t\t\"no-restricted-imports\": [\"off\", { paths: [], patterns: [] }],\n\t\t\t\t\"no-restricted-properties\": [\n\t\t\t\t\t\"error\",\n\t\t\t\t\t{\n\t\t\t\t\t\tmessage: \"arguments.callee is deprecated\",\n\t\t\t\t\t\tobject: \"arguments\",\n\t\t\t\t\t\tproperty: \"callee\",\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tmessage: \"Please use Number.isFinite instead\",\n\t\t\t\t\t\tobject: \"global\",\n\t\t\t\t\t\tproperty: \"isFinite\",\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tmessage: \"Please use Number.isFinite instead\",\n\t\t\t\t\t\tobject: \"self\",\n\t\t\t\t\t\tproperty: \"isFinite\",\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tmessage: \"Please use Number.isFinite instead\",\n\t\t\t\t\t\tobject: \"window\",\n\t\t\t\t\t\tproperty: \"isFinite\",\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tmessage: \"Please use Number.isNaN instead\",\n\t\t\t\t\t\tobject: \"global\",\n\t\t\t\t\t\tproperty: \"isNaN\",\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tmessage: \"Please use Number.isNaN instead\",\n\t\t\t\t\t\tobject: \"self\",\n\t\t\t\t\t\tproperty: \"isNaN\",\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tmessage: \"Please use Number.isNaN instead\",\n\t\t\t\t\t\tobject: \"window\",\n\t\t\t\t\t\tproperty: \"isNaN\",\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tmessage: \"Use the exponentiation operator (**) instead.\",\n\t\t\t\t\t\tobject: \"Math\",\n\t\t\t\t\t\tproperty: \"pow\",\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tmessage: \"Use `Object.getPrototypeOf` or `Object.setPrototypeOf` instead.\",\n\t\t\t\t\t\tproperty: \"__proto__\",\n\t\t\t\t\t},\n\t\t\t\t\t{ message: \"Use `Object.defineProperty` instead.\", property: \"__defineGetter__\" },\n\t\t\t\t\t{ message: \"Use `Object.defineProperty` instead.\", property: \"__defineSetter__\" },\n\t\t\t\t\t{ message: \"Use `Object.getOwnPropertyDescriptor` instead.\", property: \"__lookupGetter__\" },\n\t\t\t\t\t{ message: \"Use `Object.getOwnPropertyDescriptor` instead.\", property: \"__lookupSetter__\" },\n\t\t\t\t],\n\t\t\t\t\"no-restricted-syntax\": [\n\t\t\t\t\t\"error\",\n\t\t\t\t\t\"ForInStatement\",\n\t\t\t\t\t\"LabeledStatement\",\n\t\t\t\t\t\"WithStatement\",\n\t\t\t\t\t\"TSEnumDeclaration[const=true]\",\n\t\t\t\t\t\"TSExportAssignment\",\n\t\t\t\t],\n\t\t\t\t\"no-return-assign\": [\"error\", \"except-parens\"],\n\t\t\t\t\"no-script-url\": \"error\",\n\t\t\t\t\"no-self-assign\": [\"error\", { props: true }],\n\t\t\t\t\"no-self-compare\": \"error\",\n\t\t\t\t\"no-sequences\": \"error\",\n\t\t\t\t\"no-shadow-restricted-names\": \"error\",\n\t\t\t\t\"no-sparse-arrays\": \"error\",\n\t\t\t\t\"no-template-curly-in-string\": \"error\",\n\t\t\t\t\"no-this-before-super\": \"error\",\n\t\t\t\t\"no-throw-literal\": \"error\",\n\t\t\t\t\"no-undef\": \"error\",\n\t\t\t\t\"no-undef-init\": \"error\",\n\t\t\t\t\"no-unexpected-multiline\": \"error\",\n\t\t\t\t\"no-unmodified-loop-condition\": \"error\",\n\t\t\t\t\"no-unneeded-ternary\": [\"warn\", { defaultAssignment: false }],\n\t\t\t\t\"no-unreachable\": \"error\",\n\t\t\t\t\"no-unreachable-loop\": \"error\",\n\t\t\t\t\"no-unsafe-finally\": \"error\",\n\t\t\t\t\"no-unsafe-negation\": \"error\",\n\t\t\t\t\"no-unused-expressions\": [\n\t\t\t\t\t\"error\",\n\t\t\t\t\t{\n\t\t\t\t\t\tallowShortCircuit: true,\n\t\t\t\t\t\tallowTaggedTemplates: true,\n\t\t\t\t\t\tallowTernary: true,\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t\"no-unused-vars\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t{\n\t\t\t\t\t\targs: \"none\",\n\t\t\t\t\t\tcaughtErrors: \"none\",\n\t\t\t\t\t\tignoreRestSiblings: true,\n\t\t\t\t\t\tvars: \"all\",\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t\"no-useless-backreference\": \"error\",\n\t\t\t\t\"no-useless-call\": \"error\",\n\t\t\t\t\"no-useless-catch\": \"error\",\n\t\t\t\t\"no-useless-computed-key\": \"error\",\n\t\t\t\t\"no-useless-concat\": \"error\",\n\t\t\t\t\"no-useless-constructor\": \"error\",\n\t\t\t\t\"no-useless-rename\": [\n\t\t\t\t\t\"error\",\n\t\t\t\t\t{ ignoreDestructuring: false, ignoreExport: false, ignoreImport: false },\n\t\t\t\t],\n\t\t\t\t\"no-useless-return\": \"error\",\n\t\t\t\t\"no-var\": \"error\",\n\t\t\t\t\"no-with\": \"error\",\n\t\t\t\t\"object-shorthand\": [\"error\", \"always\", { avoidQuotes: true, ignoreConstructors: false }],\n\t\t\t\t\"one-var\": [\"error\", { initialized: \"never\" }],\n\t\t\t\t\"operator-assignment\": \"warn\",\n\t\t\t\t\"prefer-arrow-callback\": [\n\t\t\t\t\t\"error\",\n\t\t\t\t\t{\n\t\t\t\t\t\tallowNamedFunctions: false,\n\t\t\t\t\t\tallowUnboundThis: true,\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t\"prefer-const\": [\n\t\t\t\t\t\"error\",\n\t\t\t\t\t{\n\t\t\t\t\t\tdestructuring: \"all\",\n\t\t\t\t\t\tignoreReadBeforeAssign: true,\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t\"prefer-exponentiation-operator\": \"error\",\n\t\t\t\t\"prefer-object-has-own\": \"error\",\n\t\t\t\t\"prefer-object-spread\": \"warn\",\n\t\t\t\t\"prefer-promise-reject-errors\": \"error\",\n\t\t\t\t\"prefer-regex-literals\": [\"error\", { disallowRedundantWrapping: true }],\n\t\t\t\t\"prefer-rest-params\": \"error\",\n\t\t\t\t\"prefer-spread\": \"error\",\n\t\t\t\t\"prefer-template\": \"error\",\n\t\t\t\tradix: \"error\",\n\t\t\t\t\"symbol-description\": \"error\",\n\t\t\t\t\"unicode-bom\": [\"error\", \"never\"],\n\t\t\t\t\"use-isnan\": [\"error\", { enforceForIndexOf: true, enforceForSwitchCase: true }],\n\t\t\t\t\"valid-typeof\": [\"error\", { requireStringLiterals: true }],\n\t\t\t\t\"vars-on-top\": \"error\",\n\t\t\t\tyoda: [\"error\", \"never\"],\n\n\t\t\t\t...overrides,\n\t\t\t},\n\t\t},\n\t];\n};\n\nexport { javascript };\n","import type { OptionsOverrides, OptionsTailwindCSS, TypedFlatConfigItem } from \"@/types\";\nimport { ensurePackages, interopDefault } from \"@/utils\";\n\nconst tailwindcss = async (\n\toptions: OptionsOverrides & OptionsTailwindCSS = {}\n): Promise<TypedFlatConfigItem[]> => {\n\tconst { overrides, settings: tailwindCssSettings } = options;\n\n\tawait ensurePackages([\"eslint-plugin-tailwindcss\"]);\n\n\tconst eslintPluginTailwindCss = await interopDefault(import(\"eslint-plugin-tailwindcss\"));\n\n\treturn [\n\t\t{\n\t\t\tname: \"zayne/tailwindcss/setup\",\n\t\t\tplugins: {\n\t\t\t\ttailwindcss: eslintPluginTailwindCss,\n\t\t\t},\n\t\t\tsettings: {\n\t\t\t\ttailwindcss: {\n\t\t\t\t\tcallees: [\"tv\", \"cnMerge\", \"cn\", \"cnJoin\", \"twMerge\", \"twJoin\"],\n\t\t\t\t\tclassRegex: \"^class(Name|Names)?$\",\n\t\t\t\t\tcssFiles: [],\n\t\t\t\t\tremoveDuplicates: false, // Turned off cuz prettier already handles this via plugin\n\t\t\t\t\t...tailwindCssSettings,\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\n\t\t{\n\t\t\tname: \"zayne/tailwindcss/recommended\",\n\t\t\trules: eslintPluginTailwindCss.configs[\"flat/recommended\"][1]?.rules,\n\t\t},\n\n\t\t{\n\t\t\tname: \"zayne/tailwindcss/rules\",\n\n\t\t\trules: {\n\t\t\t\t\"tailwindcss/no-contradicting-classname\": \"off\", // Turned off cuz tw intellisense already handles this\n\t\t\t\t\"tailwindcss/no-custom-classname\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t{ ignoredKeys: [\"compoundVariants\", \"defaultVariants\", \"responsiveVariants\"] },\n\t\t\t\t],\n\n\t\t\t\t...overrides,\n\t\t\t},\n\t\t},\n\t];\n};\n\nexport { tailwindcss };\n","import { interopDefault, renamePluginInConfigs } from \"@/utils\";\nimport { GLOB_ASTRO_TS, GLOB_MARKDOWN, GLOB_TS, GLOB_TSX } from \"../globs\";\nimport type {\n\tOptionsComponentExts,\n\tOptionsFiles,\n\tOptionsOverrides,\n\tOptionsStylistic,\n\tOptionsTypeScriptParserOptions,\n\tOptionsTypeScriptWithTypes,\n\tTypedFlatConfigItem,\n} from \"../types\";\n\nexport const typescript = async (\n\toptions: OptionsComponentExts &\n\t\tOptionsFiles &\n\t\tOptionsOverrides &\n\t\tOptionsStylistic &\n\t\tOptionsTypeScriptParserOptions &\n\t\tOptionsTypeScriptWithTypes = {}\n): Promise<TypedFlatConfigItem[]> => {\n\tconst {\n\t\tallowDefaultProjects,\n\t\tcomponentExts = [],\n\t\tfiles = [GLOB_TS, GLOB_TSX, ...componentExts.map((ext) => `**/*.${ext}`)],\n\t\tfilesTypeAware = [GLOB_TS, GLOB_TSX],\n\t\tignoresTypeAware = [`${GLOB_MARKDOWN}/**`, GLOB_ASTRO_TS],\n\t\toverrides,\n\t\tparserOptions,\n\t\tstylistic = true,\n\t\ttsconfigPath,\n\t} = options;\n\n\tconst isTypeAware = Boolean(tsconfigPath);\n\n\tconst tsEslint = await interopDefault(import(\"typescript-eslint\"));\n\n\tconst makeParser = (parsedFiles: string[], ignores?: string[]): TypedFlatConfigItem => ({\n\t\tfiles: parsedFiles,\n\n\t\t...(ignores && { ignores }),\n\n\t\tlanguageOptions: {\n\t\t\tparser: tsEslint.parser,\n\n\t\t\tparserOptions: {\n\t\t\t\tecmaFeatures: { globalReturn: true },\n\n\t\t\t\textraFileExtensions: componentExts.map((ext) => `.${ext}`),\n\n\t\t\t\t...(isTypeAware && {\n\t\t\t\t\t...(allowDefaultProjects\n\t\t\t\t\t\t? {\n\t\t\t\t\t\t\t\tprojectService: {\n\t\t\t\t\t\t\t\t\tallowDefaultProject: allowDefaultProjects,\n\t\t\t\t\t\t\t\t\tdefaultProject: tsconfigPath,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t: { project: tsconfigPath }),\n\n\t\t\t\t\ttsconfigRootDir: process.cwd(),\n\t\t\t\t}),\n\n\t\t\t\tsourceType: \"module\",\n\n\t\t\t\t...parserOptions,\n\t\t\t},\n\t\t},\n\t});\n\n\tconst typeAwareRules: TypedFlatConfigItem[\"rules\"] = {\n\t\t\"ts-eslint/no-unnecessary-type-parameters\": \"off\",\n\t\t\"ts-eslint/non-nullable-type-assertion-style\": \"off\",\n\t\t\"ts-eslint/prefer-nullish-coalescing\": [\"error\", { ignoreConditionalTests: true }],\n\t\t\"ts-eslint/restrict-template-expressions\": [\n\t\t\t\"error\",\n\t\t\t{ allowBoolean: true, allowNullish: true, allowNumber: true },\n\t\t],\n\t\t\"ts-eslint/return-await\": [\"error\", \"in-try-catch\"],\n\t};\n\n\treturn [\n\t\t{\n\t\t\tname: `zayne/ts-eslint/${isTypeAware ? \"type-aware-setup\" : \"setup\"}`,\n\n\t\t\t...makeParser(files),\n\t\t\t...(isTypeAware && makeParser(filesTypeAware, ignoresTypeAware)),\n\t\t},\n\n\t\t...renamePluginInConfigs(\n\t\t\ttsEslint.configs[isTypeAware ? \"strictTypeChecked\" : \"strict\"],\n\t\t\t{ \"@typescript-eslint\": \"ts-eslint\" },\n\t\t\t{ files, name: `zayne/ts-eslint/${isTypeAware ? \"strictTypeChecked\" : \"strict\"}` }\n\t\t),\n\n\t\t...(stylistic\n\t\t\t? renamePluginInConfigs(\n\t\t\t\t\ttsEslint.configs[isTypeAware ? \"stylisticTypeChecked\" : \"stylistic\"],\n\t\t\t\t\t{ \"@typescript-eslint\": \"ts-eslint\" },\n\t\t\t\t\t{ files, name: `zayne/ts-eslint/${isTypeAware ? \"stylisticTypeChecked\" : \"stylistic\"}` }\n\t\t\t\t)\n\t\t\t: []),\n\n\t\t{\n\t\t\tfiles,\n\n\t\t\tname: \"zayne/ts-eslint/rules\",\n\n\t\t\trules: {\n\t\t\t\t\"ts-eslint/array-type\": [\"error\", { default: \"array-simple\" }],\n\t\t\t\t\"ts-eslint/consistent-type-definitions\": [\"error\", \"type\"],\n\t\t\t\t\"ts-eslint/default-param-last\": \"error\",\n\t\t\t\t\"ts-eslint/member-ordering\": \"error\",\n\t\t\t\t\"ts-eslint/method-signature-style\": [\"error\", \"property\"],\n\t\t\t\t\"ts-eslint/no-confusing-void-expression\": \"off\",\n\t\t\t\t\"ts-eslint/no-empty-function\": [\n\t\t\t\t\t\"error\",\n\t\t\t\t\t{ allow: [\"arrowFunctions\", \"functions\", \"methods\"] },\n\t\t\t\t],\n\t\t\t\t\"ts-eslint/no-import-type-side-effects\": \"error\",\n\t\t\t\t\"ts-eslint/no-shadow\": \"error\",\n\t\t\t\t\"ts-eslint/no-unused-expressions\": [\n\t\t\t\t\t\"error\",\n\t\t\t\t\t{\n\t\t\t\t\t\tallowShortCircuit: true,\n\t\t\t\t\t\tallowTernary: true,\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t\"ts-eslint/no-unused-vars\": [\"warn\", { argsIgnorePattern: \"^_\" }],\n\t\t\t\t\"ts-eslint/no-use-before-define\": \"off\",\n\t\t\t\t\"ts-eslint/no-useless-constructor\": \"error\",\n\n\t\t\t\t...(isTypeAware && typeAwareRules),\n\n\t\t\t\t...overrides,\n\t\t\t},\n\t\t},\n\t];\n};\n","import { interopDefault } from \"@/utils\";\nimport type { OptionsAppType, OptionsOverrides, TypedFlatConfigItem } from \"../types\";\n\nexport const unicorn = async (\n\toptions: OptionsAppType & OptionsOverrides = {}\n): Promise<TypedFlatConfigItem[]> => {\n\tconst { overrides, type = \"app\" } = options;\n\n\tconst eslintPluginUnicorn = await interopDefault(import(\"eslint-plugin-unicorn\"));\n\n\treturn [\n\t\t{ ...eslintPluginUnicorn.configs[\"flat/recommended\"], name: \"zayne/unicorn/recommended\" },\n\t\t{\n\t\t\tname: \"zayne/unicorn/rules\",\n\n\t\t\trules: {\n\t\t\t\t\"unicorn/filename-case\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t{\n\t\t\t\t\t\tcases: {\n\t\t\t\t\t\t\tcamelCase: true,\n\t\t\t\t\t\t\tkebabCase: true,\n\t\t\t\t\t\t\tpascalCase: true,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t],\n\n\t\t\t\t...(type === \"app\"\n\t\t\t\t\t? {\n\t\t\t\t\t\t\t\"unicorn/prefer-global-this\": \"off\",\n\t\t\t\t\t\t}\n\t\t\t\t\t: {\n\t\t\t\t\t\t\t\"unicorn/prefer-global-this\": \"warn\",\n\t\t\t\t\t\t}),\n\n\t\t\t\t\"unicorn/new-for-builtins\": \"off\",\n\t\t\t\t\"unicorn/no-array-for-each\": \"off\",\n\t\t\t\t\"unicorn/no-array-reduce\": \"off\",\n\t\t\t\t\"unicorn/no-negated-condition\": \"off\",\n\t\t\t\t\"unicorn/no-null\": \"off\",\n\t\t\t\t\"unicorn/no-useless-undefined\": [\"error\", { checkArguments: true }],\n\t\t\t\t\"unicorn/numeric-separators-style\": \"off\",\n\t\t\t\t\"unicorn/prevent-abbreviations\": \"off\",\n\n\t\t\t\t...overrides,\n\t\t\t},\n\t\t},\n\t];\n};\n","import type {\n\tOptionsHasTypeScript,\n\tOptionsOverrides,\n\tOptionsStylistic,\n\tTypedFlatConfigItem,\n} from \"@/types\";\nimport { interopDefault } from \"@/utils\";\n\nconst imports = async (\n\toptions: OptionsHasTypeScript & OptionsOverrides & OptionsStylistic = {}\n): Promise<TypedFlatConfigItem[]> => {\n\tconst { overrides, stylistic = true, typescript = true } = options;\n\n\tconst eslintPluginImportX = await interopDefault(import(\"eslint-plugin-import-x\"));\n\n\treturn [\n\t\t{\n\t\t\tplugins: {\n\t\t\t\timport: eslintPluginImportX,\n\t\t\t},\n\t\t\t...(typescript && { settings: eslintPluginImportX.flatConfigs.typescript.settings }),\n\t\t\tname: \"zayne/import/setup\",\n\t\t},\n\n\t\t{\n\t\t\tname: \"zayne/import/recommended\",\n\n\t\t\trules: {\n\t\t\t\t...eslintPluginImportX.flatConfigs.recommended.rules,\n\t\t\t\t...(typescript && eslintPluginImportX.flatConfigs.typescript.rules),\n\t\t\t},\n\t\t},\n\n\t\t{\n\t\t\tname: \"zayne/import/rules\",\n\n\t\t\trules: {\n\t\t\t\t\"import/extensions\": [\n\t\t\t\t\t\"error\",\n\t\t\t\t\t\"never\",\n\t\t\t\t\t{ ignorePackages: true, pattern: { png: \"always\", svg: \"always\" } },\n\t\t\t\t],\n\t\t\t\t\"import/first\": \"error\",\n\t\t\t\t\"import/no-absolute-path\": \"error\",\n\t\t\t\t\"import/no-cycle\": [\"error\", { ignoreExternal: true, maxDepth: 3 }],\n\t\t\t\t\"import/no-duplicates\": \"error\",\n\t\t\t\t\"import/no-extraneous-dependencies\": [\"error\", { devDependencies: true }],\n\t\t\t\t\"import/no-mutable-exports\": \"error\",\n\t\t\t\t\"import/no-named-default\": \"error\",\n\t\t\t\t\"import/no-relative-packages\": \"error\",\n\t\t\t\t\"import/no-self-import\": \"error\",\n\t\t\t\t\"import/no-unresolved\": \"off\",\n\t\t\t\t\"import/no-useless-path-segments\": [\"error\", { commonjs: true }],\n\t\t\t\t\"import/no-webpack-loader-syntax\": \"error\",\n\n\t\t\t\t...(stylistic && { \"import/newline-after-import\": \"error\" }),\n\n\t\t\t\t...overrides,\n\t\t\t},\n\t\t},\n\t];\n};\n\nexport { imports };\n","import type { OptionsOverrides, TypedFlatConfigItem } from \"@/types\";\nimport { interopDefault } from \"@/utils\";\n\nconst perfectionist = async (options: OptionsOverrides = {}): Promise<TypedFlatConfigItem[]> => {\n\tconst { overrides } = options;\n\n\tconst eslintPluginPerfectionist = await interopDefault(import(\"eslint-plugin-perfectionist\"));\n\n\treturn [\n\t\t{\n\t\t\tname: \"zayne/perfectionist/rules\",\n\n\t\t\tplugins: {\n\t\t\t\tperfectionist: eslintPluginPerfectionist,\n\t\t\t},\n\n\t\t\trules: {\n\t\t\t\t\"perfectionist/sort-array-includes\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t{\n\t\t\t\t\t\torder: \"asc\",\n\t\t\t\t\t\ttype: \"alphabetical\",\n\t\t\t\t\t},\n\t\t\t\t],\n\n\t\t\t\t\"perfectionist/sort-classes\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t{\n\t\t\t\t\t\torder: \"asc\",\n\t\t\t\t\t\ttype: \"alphabetical\",\n\t\t\t\t\t},\n\t\t\t\t],\n\n\t\t\t\t\"perfectionist/sort-interfaces\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t{\n\t\t\t\t\t\torder: \"asc\",\n\t\t\t\t\t\ttype: \"alphabetical\",\n\t\t\t\t\t},\n\t\t\t\t],\n\n\t\t\t\t\"perfectionist/sort-intersection-types\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t{\n\t\t\t\t\t\tgroups: [\n\t\t\t\t\t\t\t\"conditional\",\n\t\t\t\t\t\t\t\"literal\",\n\t\t\t\t\t\t\t\"import\",\n\t\t\t\t\t\t\t\"intersection\",\n\t\t\t\t\t\t\t\"keyword\",\n\t\t\t\t\t\t\t\"tuple\",\n\t\t\t\t\t\t\t\"named\",\n\t\t\t\t\t\t\t\"object\",\n\t\t\t\t\t\t\t\"function\",\n\t\t\t\t\t\t\t\"operator\",\n\t\t\t\t\t\t\t\"union\",\n\t\t\t\t\t\t\t\"nullish\",\n\t\t\t\t\t\t],\n\t\t\t\t\t\torder: \"asc\",\n\t\t\t\t\t\ttype: \"alphabetical\",\n\t\t\t\t\t},\n\t\t\t\t],\n\n\t\t\t\t\"perfectionist/sort-maps\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t{\n\t\t\t\t\t\torder: \"asc\",\n\t\t\t\t\t\ttype: \"alphabetical\",\n\t\t\t\t\t},\n\t\t\t\t],\n\n\t\t\t\t\"perfectionist/sort-object-types\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t{\n\t\t\t\t\t\torder: \"asc\",\n\t\t\t\t\t\ttype: \"alphabetical\",\n\t\t\t\t\t},\n\t\t\t\t],\n\n\t\t\t\t\"perfectionist/sort-objects\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t{\n\t\t\t\t\t\torder: \"asc\",\n\t\t\t\t\t\ttype: \"alphabetical\",\n\t\t\t\t\t},\n\t\t\t\t],\n\n\t\t\t\t\"perfectionist/sort-switch-case\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t{\n\t\t\t\t\t\torder: \"asc\",\n\t\t\t\t\t\ttype: \"alphabetical\",\n\t\t\t\t\t},\n\t\t\t\t],\n\n\t\t\t\t\"perfectionist/sort-union-types\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t{\n\t\t\t\t\t\tgroups: [\n\t\t\t\t\t\t\t\"conditional\",\n\t\t\t\t\t\t\t\"literal\",\n\t\t\t\t\t\t\t\"import\",\n\t\t\t\t\t\t\t\"intersection\",\n\t\t\t\t\t\t\t\"keyword\",\n\t\t\t\t\t\t\t\"tuple\",\n\t\t\t\t\t\t\t\"named\",\n\t\t\t\t\t\t\t\"object\",\n\t\t\t\t\t\t\t\"function\",\n\t\t\t\t\t\t\t\"operator\",\n\t\t\t\t\t\t\t\"union\",\n\t\t\t\t\t\t\t\"nullish\",\n\t\t\t\t\t\t],\n\t\t\t\t\t\torder: \"asc\",\n\t\t\t\t\t\ttype: \"alphabetical\",\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t\"perfectionist/sort-variable-declarations\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t{\n\t\t\t\t\t\torder: \"asc\",\n\t\t\t\t\t\ttype: \"alphabetical\",\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t// \"perfectionist/sort-svelte-attributes\": [\n\t\t\t\t// \t\"warn\",\n\t\t\t\t// \t{\n\t\t\t\t// \t\torder: \"asc\",\n\t\t\t\t// \t\ttype: \"alphabetical\",\n\t\t\t\t// \t},\n\t\t\t\t// ],\n\t\t\t\t// \"perfectionist/sort-astro-attributes\": [\n\t\t\t\t// \t\"warn\",\n\t\t\t\t// \t{\n\t\t\t\t// \t\torder: \"asc\",\n\t\t\t\t// \t\ttype: \"alphabetical\",\n\t\t\t\t// \t},\n\t\t\t\t// ],\n\t\t\t\t// \"perfectionist/sort-vue-attributes\": [\n\t\t\t\t// \t\"warn\",\n\t\t\t\t// \t{\n\t\t\t\t// \t\torder: \"asc\",\n\t\t\t\t// \t\ttype: \"alphabetical\",\n\t\t\t\t// \t},\n\t\t\t\t// ],\n\t\t\t\t// \"perfectionist/sort-jsx-props\": [\n\t\t\t\t// \t\"warn\",\n\t\t\t\t// \t{\n\t\t\t\t// \t\t// ignorePattern: [\"src\"],\n\t\t\t\t// \t\torder: \"asc\",\n\t\t\t\t// \t\ttype: \"alphabetical\",\n\t\t\t\t// \t},\n\t\t\t\t// ],\n\n\t\t\t\t...overrides,\n\t\t\t},\n\t\t},\n\t];\n};\n\nexport { perfectionist };\n","import type { OptionsHasJsx, OptionsOverrides, TypedFlatConfigItem } from \"@/types\";\nimport { interopDefault } from \"@/utils\";\n\nconst stylistic = async (\n\toptions: OptionsHasJsx & OptionsOverrides = {}\n): Promise<TypedFlatConfigItem[]> => {\n\tconst { jsx = true, overrides } = options;\n\tconst eslintPluginStylistic = await interopDefault(import(\"@stylistic/eslint-plugin\"));\n\n\treturn [\n\t\t// == Stylistic Rules (Optional)\n\t\t{\n\t\t\tname: \"zayne/stylistic/rules\",\n\n\t\t\tplugins: {\n\t\t\t\tstylistic: eslintPluginStylistic,\n\t\t\t},\n\n\t\t\trules: {\n\t\t\t\t\"stylistic/no-floating-decimal\": \"error\",\n\t\t\t\t\"stylistic/spaced-comment\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t\"always\",\n\t\t\t\t\t{\n\t\t\t\t\t\tblock: {\n\t\t\t\t\t\t\tbalanced: true,\n\t\t\t\t\t\t\texceptions: [\"*\"],\n\t\t\t\t\t\t\tmarkers: [\"!\"],\n\t\t\t\t\t\t},\n\t\t\t\t\t\tline: {\n\t\t\t\t\t\t\texceptions: [\"/\", \"#\"],\n\t\t\t\t\t\t\tmarkers: [\"/\"],\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t],\n\n\t\t\t\t...(jsx && {\n\t\t\t\t\t\"stylistic/jsx-self-closing-comp\": \"error\",\n\t\t\t\t}),\n\n\t\t\t\t...overrides,\n\t\t\t},\n\t\t},\n\t];\n};\n\nexport { stylistic };\n","import { GLOB_JSON, GLOB_JSON5, GLOB_JSONC } from \"@/globs\";\nimport type { OptionsFiles, OptionsOverrides, OptionsStylistic, TypedFlatConfigItem } from \"@/types\";\nimport { interopDefault } from \"@/utils\";\n\nconst jsonc = async (\n\toptions: OptionsFiles & OptionsOverrides & OptionsStylistic = {}\n): Promise<TypedFlatConfigItem[]> => {\n\tconst { files, overrides, stylistic = true } = options;\n\n\tconst [eslintPluginJsonc, jsoncParser] = await Promise.all([\n\t\tinteropDefault(import(\"eslint-plugin-jsonc\")),\n\t\tinteropDefault(import(\"jsonc-eslint-parser\")),\n\t] as const);\n\n\treturn [\n\t\t{\n\t\t\tname: \"zayne/jsonc/setup\",\n\n\t\t\tplugins: {\n\t\t\t\tjsonc: eslintPluginJsonc,\n\t\t\t},\n\t\t},\n\n\t\t{\n\t\t\tfiles: files ?? [GLOB_JSON, GLOB_JSON5, GLOB_JSONC],\n\n\t\t\tlanguageOptions: {\n\t\t\t\tparser: jsoncParser,\n\t\t\t},\n\n\t\t\tname: \"zayne/jsonc/rules\",\n\n\t\t\trules: {\n\t\t\t\t\"jsonc/no-bigint-literals\": \"error\",\n\t\t\t\t\"jsonc/no-binary-expression\": \"error\",\n\t\t\t\t\"jsonc/no-binary-numeric-literals\": \"error\",\n\t\t\t\t\"jsonc/no-dupe-keys\": \"error\",\n\t\t\t\t\"jsonc/no-escape-sequence-in-identifier\": \"error\",\n\t\t\t\t\"jsonc/no-floating-decimal\": \"error\",\n\t\t\t\t\"jsonc/no-hexadecimal-numeric-literals\": \"error\",\n\t\t\t\t\"jsonc/no-infinity\": \"error\",\n\t\t\t\t\"jsonc/no-multi-str\": \"error\",\n\t\t\t\t\"jsonc/no-nan\": \"error\",\n\t\t\t\t\"jsonc/no-number-props\": \"error\",\n\t\t\t\t\"jsonc/no-numeric-separators\": \"error\",\n\t\t\t\t\"jsonc/no-octal\": \"error\",\n\t\t\t\t\"jsonc/no-octal-escape\": \"error\",\n\t\t\t\t\"jsonc/no-octal-numeric-literals\": \"error\",\n\t\t\t\t\"jsonc/no-parenthesized\": \"error\",\n\t\t\t\t\"jsonc/no-plus-sign\": \"error\",\n\t\t\t\t\"jsonc/no-regexp-literals\": \"error\",\n\t\t\t\t\"jsonc/no-sparse-arrays\": \"error\",\n\t\t\t\t\"jsonc/no-template-literals\": \"error\",\n\t\t\t\t\"jsonc/no-undefined-value\": \"error\",\n\t\t\t\t\"jsonc/no-unicode-codepoint-escapes\": \"error\",\n\t\t\t\t\"jsonc/no-useless-escape\": \"error\",\n\t\t\t\t\"jsonc/space-unary-ops\": \"error\",\n\t\t\t\t\"jsonc/valid-json-number\": \"error\",\n\t\t\t\t\"jsonc/vue-custom-block/no-parsing-error\": \"error\",\n\n\t\t\t\t...(stylistic && {\n\t\t\t\t\t\"jsonc/array-bracket-spacing\": [\"error\", \"never\"],\n\t\t\t\t\t\"jsonc/comma-dangle\": [\"error\", \"never\"],\n\t\t\t\t\t\"jsonc/comma-style\": [\"error\", \"last\"],\n\t\t\t\t\t\"jsonc/key-spacing\": [\"error\", { afterColon: true, beforeColon: false }],\n\t\t\t\t\t\"jsonc/object-curly-newline\": [\"error\", { consistent: true, multiline: true }],\n\t\t\t\t\t\"jsonc/object-curly-spacing\": [\"error\", \"always\"],\n\t\t\t\t\t\"jsonc/object-property-newline\": [\"error\", { allowMultiplePropertiesPerLine: true }],\n\t\t\t\t\t\"jsonc/quote-props\": \"error\",\n\t\t\t\t\t\"jsonc/quotes\": \"error\",\n\t\t\t\t}),\n\n\t\t\t\t...overrides,\n\t\t\t},\n\t\t},\n\t];\n};\n\nexport { jsonc };\n","import type { OptionsOverrides, OptionsStylistic, TypedFlatConfigItem } from \"@/types\";\nimport { interopDefault } from \"@/utils\";\n\nconst jsdoc = async (\n\toptions: OptionsOverrides & OptionsStylistic = {}\n): Promise<TypedFlatConfigItem[]> => {\n\tconst { overrides, stylistic = true } = options;\n\n\tconst eslintPluginJsdoc = await interopDefault(import(\"eslint-plugin-jsdoc\"));\n\n\treturn [\n\t\t{\n\t\t\tname: \"zayne/jsdoc/rules\",\n\t\t\tplugins: {\n\t\t\t\tjsdoc: eslintPluginJsdoc,\n\t\t\t},\n\t\t\trules: {\n\t\t\t\t\"jsdoc/check-access\": \"warn\",\n\t\t\t\t\"jsdoc/check-param-names\": \"warn\",\n\t\t\t\t\"jsdoc/check-property-names\": \"warn\",\n\t\t\t\t\"jsdoc/check-types\": \"warn\",\n\t\t\t\t\"jsdoc/empty-tags\": \"warn\",\n\t\t\t\t\"jsdoc/implements-on-classes\": \"warn\",\n\t\t\t\t\"jsdoc/no-defaults\": \"warn\",\n\t\t\t\t\"jsdoc/no-multi-asterisks\": \"warn\",\n\t\t\t\t\"jsdoc/require-description\": [\"warn\", { descriptionStyle: \"any\" }],\n\t\t\t\t\"jsdoc/require-param-name\": \"warn\",\n\t\t\t\t\"jsdoc/require-property\": \"warn\",\n\t\t\t\t\"jsdoc/require-property-description\": \"warn\",\n\t\t\t\t\"jsdoc/require-property-name\": \"warn\",\n\t\t\t\t\"jsdoc/require-returns-check\": \"warn\",\n\t\t\t\t\"jsdoc/require-returns-description\": \"warn\",\n\t\t\t\t\"jsdoc/require-yields-check\": \"warn\",\n\n\t\t\t\t...(stylistic && {\n\t\t\t\t\t\"jsdoc/check-alignment\": \"warn\",\n\t\t\t\t\t\"jsdoc/multiline-blocks\": \"warn\",\n\t\t\t\t\t\"jsdoc/require-description\": [\"warn\", { descriptionStyle: \"tag\" }],\n\t\t\t\t}),\n\n\t\t\t\t...overrides,\n\t\t\t},\n\t\t},\n\t];\n};\n\nexport { jsdoc };\n","export const defaultPluginRenameMap = {\n\t\"@eslint-react/debug\": \"react-debug\",\n\t\"@eslint-react/dom\": \"react-dom\",\n\t\"@eslint-react/hooks-extra\": \"react-hooks-extra\",\n\t\"@eslint-react/naming-convention\": \"react-naming-convention\",\n\t\"@eslint-react/web-api\": \"react-web-api\",\n\n\t/* eslint-disable perfectionist/sort-objects */\n\t// @eslint-react has to be below the rest to avoid rename issues\n\t\"@eslint-react\": \"react\",\n\n\t\"@next/next\": \"nextjs-next\",\n\n\t\"@stylistic\": \"stylistic\",\n\n\t\"@tanstack/query\": \"tanstack-query\",\n\n\t\"@typescript-eslint\": \"ts-eslint\",\n\n\t\"import-x\": \"import\",\n\n\tn: \"node\",\n} as const;\n","import type {\n\tOptionsFiles,\n\tOptionsHasTypeScript,\n\tOptionsOverrides,\n\tOptionsReact,\n\tTypedFlatConfigItem,\n} from \"@/types\";\n\nimport { defaultPluginRenameMap } from \"@/constants\";\nimport { GLOB_SRC } from \"@/globs\";\nimport { ensurePackages, interopDefault, renamePlugins, renameRules } from \"@/utils\";\nimport { fixupPluginRules } from \"@eslint/compat\";\nimport { isPackageExists } from \"local-pkg\";\n\n// react refresh\nconst ReactRefreshAllowConstantExportPackages = [\"vite\"];\nconst RemixPackages = [\"@remix-run/node\", \"@remix-run/react\", \"@remix-run/serve\", \"@remix-run/dev\"];\nconst NextJsPackages = [\"next\"];\n\nconst isAllowConstantExport = ReactRefreshAllowConstantExportPackages.some((i) => isPackageExists(i));\nconst isUsingRemix = RemixPackages.some((i) => isPackageExists(i));\nconst isUsingNext = NextJsPackages.some((i) => isPackageExists(i));\n\nconst react = async (\n\toptions: OptionsFiles & OptionsHasTypeScript & OptionsOverrides & OptionsReact = {}\n): Promise<TypedFlatConfigItem[]> => {\n\tconst { files = [GLOB_SRC], nextjs = isUsingNext, overrides, typescript = true } = options;\n\n\tawait ensurePackages([\n\t\t\"@eslint-react/eslint-plugin\",\n\t\t\"eslint-plugin-react-hooks\",\n\t\t\"eslint-plugin-react-refresh\",\n\t\t...(nextjs ? [\"@next/eslint-plugin-next\"] : []),\n\t\t\"typescript-eslint\",\n\t]);\n\n\tconst [eslintPluginReact, eslintReactHooks, eslintPluginReactRefresh, eslintPluginNextjs] =\n\t\tawait Promise.all([\n\t\t\tinteropDefault(import(\"@eslint-react/eslint-plugin\")),\n\t\t\tinteropDefault(import(\"eslint-plugin-react-hooks\")),\n\t\t\tinteropDefault(import(\"eslint-plugin-react-refresh\")),\n\t\t\t...(nextjs ? [interopDefault(import(\"@next/eslint-plugin-next\"))] : []),\n\t\t] as const);\n\n\t// prettier-ignore\n\tconst recommendedReactConfig = eslintPluginReact.configs[typescript ? \"recommended-type-checked\" : \"recommended\"];\n\n\tconst config: TypedFlatConfigItem[] = [\n\t\t{\n\t\t\tname: \"zayne/react/setup\",\n\n\t\t\tplugins: {\n\t\t\t\t...renamePlugins(recommendedReactConfig.plugins, defaultPluginRenameMap),\n\t\t\t\t\"react-hooks\": fixupPluginRules(eslintReactHooks),\n\t\t\t\t\"react-refresh\": eslintPluginReactRefresh,\n\t\t\t},\n\n\t\t\tsettings: recommendedReactConfig.settings,\n\t\t},\n\n\t\t{\n\t\t\tfiles,\n\n\t\t\tname: \"zayne/react/recommended\",\n\n\t\t\trules: renameRules(recommendedReactConfig.rules, defaultPluginRenameMap),\n\t\t},\n\n\t\t{\n\t\t\tfiles,\n\n\t\t\tname: \"zayne/react/rules\",\n\n\t\t\trules: {\n\t\t\t\t// Hook rules\n\t\t\t\t\"react-hooks-extra/ensure-custom-hooks-using-other-hooks\": \"error\",\n\t\t\t\t\"react-hooks-extra/no-unnecessary-use-callback\": \"warn\",\n\t\t\t\t\"react-hooks-extra/no-unnecessary-use-memo\": \"warn\",\n\t\t\t\t\"react-hooks-extra/prefer-use-state-lazy-initialization\": \"error\",\n\t\t\t\t\"react-hooks/exhaustive-deps\": \"warn\",\n\t\t\t\t\"react-hooks/rules-of-hooks\": \"error\",\n\n\t\t\t\t// Naming convention rules\n\t\t\t\t\"react-naming-convention/component-name\": \"warn\",\n\t\t\t\t\"react-naming-convention/use-state\": \"warn\",\n\n\t\t\t\t// React refresh rules\n\t\t\t\t\"react-refresh/only-export-components\": [\n\t\t\t\t\t\"warn\",\n\t\t\t\t\t{\n\t\t\t\t\t\tallowConstantExport: isAllowConstantExport,\n\t\t\t\t\t\tallowExportNames: [\n\t\t\t\t\t\t\t...(isUsingNext\n\t\t\t\t\t\t\t\t? [\n\t\t\t\t\t\t\t\t\t\t\"dynamic\",\n\t\t\t\t\t\t\t\t\t\t\"dynamicParams\",\n\t\t\t\t\t\t\t\t\t\t\"revalidate\",\n\t\t\t\t\t\t\t\t\t\t\"fetchCache\",\n\t\t\t\t\t\t\t\t\t\t\"runtime\",\n\t\t\t\t\t\t\t\t\t\t\"preferredRegion\",\n\t\t\t\t\t\t\t\t\t\t\"maxDuration\",\n\t\t\t\t\t\t\t\t\t\t\"config\",\n\t\t\t\t\t\t\t\t\t\t\"generateStaticParams\",\n\t\t\t\t\t\t\t\t\t\t\"metadata\",\n\t\t\t\t\t\t\t\t\t\t\"generateMetadata\",\n\t\t\t\t\t\t\t\t\t\t\"viewport\",\n\t\t\t\t\t\t\t\t\t\t\"generateViewport\",\n\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t: []),\n\t\t\t\t\t\t\t...(isUsingRemix ? [\"meta\", \"links\", \"headers\", \"loader\", \"action\"] : []),\n\t\t\t\t\t\t],\n\t\t\t\t\t},\n\t\t\t\t],\n\n\t\t\t\t// Regular React rules\n\t\t\t\t\"react/avoid-shorthand-boolean\": \"error\",\n\t\t\t\t\"react/function-component-definition\": \"off\",\n\t\t\t\t\"react/no-array-index-key\": \"error\",\n\t\t\t\t\"react/no-children-count\": \"off\",\n\t\t\t\t\"react/no-children-only\": \"off\",\n\t\t\t\t\"react/no-children-prop\": \"error\",\n\t\t\t\t\"react/no-clone-element\": \"off\",\n\t\t\t\t\"react/no-complex-conditional-rendering\": \"warn\",\n\t\t\t\t\"react/no-missing-component-display-name\": \"error\",\n\t\t\t\t\"react/no-useless-fragment\": \"error\",\n\t\t\t\t\"react/prefer-destructuring-assignment\": \"error\",\n\t\t\t\t\"react/prefer-read-only-props\": \"off\",\n\t\t\t\t\"react/prefer-shorthand-fragment\": \"error\",\n\n\t\t\t\t...overrides,\n\t\t\t},\n\t\t},\n\t];\n\n\tif (nextjs && eslintPluginNextjs) {\n\t\tconfig.push({\n\t\t\tfiles,\n\n\t\t\tname: \"zayne/react/next\",\n\n\t\t\tplugins: {\n\t\t\t\t\"nextjs-next\": fixupPluginRules(eslintPluginNextjs),\n\t\t\t},\n\n\t\t\trules: renameRules(\n\t\t\t\t/* eslint-disable ts-eslint/no-unsafe-argument, ts-eslint/no-unsafe-member-access */\n\t\t\t\t{\n\t\t\t\t\t// @ts-expect-error - eslint-plugin-nextjs is not typed\n\t\t\t\t\t...eslintPluginNextjs.configs?.recommended?.rules,\n\t\t\t\t\t// @ts-expect-error - eslint-plugin-nextjs is not typed\n\t\t\t\t\t...eslintPluginNextjs.configs?.[\"core-web-vitals\"]?.rules,\n\t\t\t\t},\n\t\t\t\tdefaultPluginRenameMap\n\t\t\t),\n\t\t});\n\t}\n\n\treturn config;\n};\n\nexport { react };\n","import type { OptionsOverrides, OptionsTanstack, TypedFlatConfigItem } from \"@/types\";\nimport { ensurePackages, interopDefault, renameRules } from \"@/utils\";\nimport { defaultPluginRenameMap } from \"../constants\";\n\nconst tanstack = async (\n\toptions: OptionsOverrides & OptionsTanstack = {}\n): Promise<TypedFlatConfigItem[]> => {\n\tconst { query = true } = options;\n\n\tconst config: TypedFlatConfigItem[] = [];\n\n\tawait ensurePackages([...(query ? [\"@tanstack/eslint-plugin-query\"] : [])]);\n\n\tconst [eslintPluginTanstackQuery] = await Promise.all(\n\t\tquery ? [interopDefault(import(\"@tanstack/eslint-plugin-query\"))] : []\n\t);\n\n\tif (query && eslintPluginTanstackQuery) {\n\t\tconfig.push({\n\t\t\tname: \"zayne/tanstack/query-recommended\",\n\n\t\t\tplugins: {\n\t\t\t\t\"tanstack-query\": eslintPluginTanstackQuery,\n\t\t\t},\n\n\t\t\trules: renameRules(\n\t\t\t\teslintPluginTanstackQuery.configs[\"flat/recommended\"][0]?.rules,\n\t\t\t\tdefaultPluginRenameMap\n\t\t\t),\n\t\t});\n\t}\n\n\treturn config;\n};\n\nexport { tanstack };\n","import type { TypedFlatConfigItem } from \"@/types\";\n\n/**\n * @description - Sort package.json\n *\n * Requires `jsonc` config\n */\nexport const sortPackageJson = (): TypedFlatConfigItem[] => [\n\t{\n\t\tfiles: [\"**/package.json\"],\n\t\tname: \"zayne/sort/package-json\",\n\t\trules: {\n\t\t\t\"jsonc/sort-array-values\": [\n\t\t\t\t\"error\",\n\t\t\t\t{\n\t\t\t\t\torder: { type: \"asc\" },\n\t\t\t\t\tpathPattern: \"^files$\",\n\t\t\t\t},\n\t\t\t],\n\t\t\t\"jsonc/sort-keys\": [\n\t\t\t\t\"error\",\n\t\t\t\t{\n\t\t\t\t\torder: [\n\t\t\t\t\t\t\"publisher\",\n\t\t\t\t\t\t\"name\",\n\t\t\t\t\t\t\"displayName\",\n\t\t\t\t\t\t\"type\",\n\t\t\t\t\t\t\"version\",\n\t\t\t\t\t\t\"private\",\n\t\t\t\t\t\t\"packageManager\",\n\t\t\t\t\t\t\"description\",\n\t\t\t\t\t\t\"author\",\n\t\t\t\t\t\t\"contributors\",\n\t\t\t\t\t\t\"license\",\n\t\t\t\t\t\t\"funding\",\n\t\t\t\t\t\t\"homepage\",\n\t\t\t\t\t\t\"repository\",\n\t\t\t\t\t\t\"bugs\",\n\t\t\t\t\t\t\"keywords\",\n\t\t\t\t\t\t\"categories\",\n\t\t\t\t\t\t\"sideEffects\",\n\t\t\t\t\t\t\"exports\",\n\t\t\t\t\t\t\"main\",\n\t\t\t\t\t\t\"module\",\n\t\t\t\t\t\t\"unpkg\",\n\t\t\t\t\t\t\"jsdelivr\",\n\t\t\t\t\t\t\"types\",\n\t\t\t\t\t\t\"typesVersions\",\n\t\t\t\t\t\t\"bin\",\n\t\t\t\t\t\t\"icon\",\n\t\t\t\t\t\t\"files\",\n\t\t\t\t\t\t\"engines\",\n\t\t\t\t\t\t\"activationEvents\",\n\t\t\t\t\t\t\"contributes\",\n\t\t\t\t\t\t\"scripts\",\n\t\t\t\t\t\t\"peerDependencies\",\n\t\t\t\t\t\t\"peerDependenciesMeta\",\n\t\t\t\t\t\t\"dependencies\",\n\t\t\t\t\t\t\"optionalDependencies\",\n\t\t\t\t\t\t\"devDependencies\",\n\t\t\t\t\t\t\"pnpm\",\n\t\t\t\t\t\t\"overrides\",\n\t\t\t\t\t\t\"resolutions\",\n\t\t\t\t\t\t\"husky\",\n\t\t\t\t\t\t\"simple-git-hooks\",\n\t\t\t\t\t\t\"lint-staged\",\n\t\t\t\t\t\t\"eslintConfig\",\n\t\t\t\t\t],\n\t\t\t\t\tpathPattern: \"^$\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\torder: { type: \"asc\" },\n\t\t\t\t\tpathPattern: \"^(?:dev|peer|optional|bundled)?[Dd]ependencies(Meta)?$\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\torder: { type: \"asc\" },\n\t\t\t\t\tpathPattern: \"scripts\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\torder: { type: \"asc\" },\n\t\t\t\t\tpathPattern: \"^(?:resolutions|overrides|pnpm.overrides)$\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\torder: [\"types\", \"import\", \"require\", \"default\"],\n\t\t\t\t\tpathPattern: \"^exports.*$\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\torder: [\n\t\t\t\t\t\t// client hooks only\n\t\t\t\t\t\t\"pre-commit\",\n\t\t\t\t\t\t\"prepare-commit-msg\",\n\t\t\t\t\t\t\"commit-msg\",\n\t\t\t\t\t\t\"post-commit\",\n\t\t\t\t\t\t\"pre-rebase\",\n\t\t\t\t\t\t\"post-rewrite\",\n\t\t\t\t\t\t\"post-checkout\",\n\t\t\t\t\t\t\"post-merge\",\n\t\t\t\t\t\t\"pre-push\",\n\t\t\t\t\t\t\"pre-auto-gc\",\n\t\t\t\t\t],\n\t\t\t\t\tpathPattern: \"^(?:gitHooks|husky|simple-git-hooks)$\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t},\n];\n\n/**\n * Sort tsconfig.json\n *\n * Requires `jsonc` config\n */\n\nexport const sortTsconfig = (): TypedFlatConfigItem[] => [\n\t{\n\t\tfiles: [\"**/tsconfig.json\", \"**/tsconfig.*.json\"],\n\n\t\tname: \"zayne/sort/tsconfig-json\",\n\n\t\trules: {\n\t\t\t\"jsonc/sort-keys\": [\n\t\t\t\t\"error\",\n\t\t\t\t{\n\t\t\t\t\torder: [\"extends\", \"compilerOptions\", \"references\", \"files\", \"include\", \"exclude\"],\n\t\t\t\t\tpathPattern: \"^$\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\torder: [\n\t\t\t\t\t\t/* Projects */\n\t\t\t\t\t\t\"incremental\",\n\t\t\t\t\t\t\"composite\",\n\t\t\t\t\t\t\"tsBuildInfoFile\",\n\t\t\t\t\t\t\"disableSourceOfProjectReferenceRedirect\",\n\t\t\t\t\t\t\"disableSolutionSearching\",\n\t\t\t\t\t\t\"disableReferencedProjectLoad\",\n\t\t\t\t\t\t/* Language and Environment */\n\t\t\t\t\t\t\"target\",\n\t\t\t\t\t\t\"jsx\",\n\t\t\t\t\t\t\"jsxFactory\",\n\t\t\t\t\t\t\"jsxFragmentFactory\",\n\t\t\t\t\t\t\"jsxImportSource\",\n\t\t\t\t\t\t\"lib\",\n\t\t\t\t\t\t\"moduleDetection\",\n\t\t\t\t\t\t\"noLib\",\n\t\t\t\t\t\t\"reactNamespace\",\n\t\t\t\t\t\t\"useDefineForClassFields\",\n\t\t\t\t\t\t\"emitDecoratorMetadata\",\n\t\t\t\t\t\t\"experimentalDecorators\",\n\t\t\t\t\t\t/* Modules */\n\t\t\t\t\t\t\"baseUrl\",\n\t\t\t\t\t\t\"rootDir\",\n\t\t\t\t\t\t\"rootDirs\",\n\t\t\t\t\t\t\"customConditions\",\n\t\t\t\t\t\t\"module\",\n\t\t\t\t\t\t\"moduleResolution\",\n\t\t\t\t\t\t\"moduleSuffixes\",\n\t\t\t\t\t\t\"noResolve\",\n\t\t\t\t\t\t\"paths\",\n\t\t\t\t\t\t\"resolveJsonModule\",\n\t\t\t\t\t\t\"resolvePackageJsonExports\",\n\t\t\t\t\t\t\"resolvePackageJsonImports\",\n\t\t\t\t\t\t\"typeRoots\",\n\t\t\t\t\t\t\"types\",\n\t\t\t\t\t\t\"allowArbitraryExtensions\",\n\t\t\t\t\t\t\"allowImportingTsExtensions\",\n\t\t\t\t\t\t\"allowUmdGlobalAccess\",\n\t\t\t\t\t\t/* JavaScript Support */\n\t\t\t\t\t\t\"allowJs\",\n\t\t\t\t\t\t\"checkJs\",\n\t\t\t\t\t\t\"maxNodeModuleJsDepth\",\n\t\t\t\t\t\t/* Type Checking */\n\t\t\t\t\t\t\"strict\",\n\t\t\t\t\t\t\"strictBindCallApply\",\n\t\t\t\t\t\t\"strictFunctionTypes\",\n\t\t\t\t\t\t\"strictNullChecks\",\n\t\t\t\t\t\t\"strictPropertyInitialization\",\n\t\t\t\t\t\t\"allowUnreachableCode\",\n\t\t\t\t\t\t\"allowUnusedLabels\",\n\t\t\t\t\t\t\"alwaysStrict\",\n\t\t\t\t\t\t\"exactOptionalPropertyTypes\",\n\t\t\t\t\t\t\"noFallthroughCasesInSwitch\",\n\t\t\t\t\t\t\"noImplicitAny\",\n\t\t\t\t\t\t\"noImplicitOverride\",\n\t\t\t\t\t\t\"noImplicitReturns\",\n\t\t\t\t\t\t\"noImplicitThis\",\n\t\t\t\t\t\t\"noPropertyAccessFromIndexSignature\",\n\t\t\t\t\t\t\"noUncheckedIndexedAccess\",\n\t\t\t\t\t\t\"noUnusedLocals\",\n\t\t\t\t\t\t\"noUnusedParameters\",\n\t\t\t\t\t\t\"useUnknownInCatchVariables\",\n\t\t\t\t\t\t/* Emit */\n\t\t\t\t\t\t\"declaration\",\n\t\t\t\t\t\t\"declarationDir\",\n\t\t\t\t\t\t\"declarationMap\",\n\t\t\t\t\t\t\"downlevelIteration\",\n\t\t\t\t\t\t\"emitBOM\",\n\t\t\t\t\t\t\"emitDeclarationOnly\",\n\t\t\t\t\t\t\"importHelpers\",\n\t\t\t\t\t\t\"importsNotUsedAsValues\",\n\t\t\t\t\t\t\"inlineSourceMap\",\n\t\t\t\t\t\t\"inlineSources\",\n\t\t\t\t\t\t\"mapRoot\",\n\t\t\t\t\t\t\"newLine\",\n\t\t\t\t\t\t\"noEmit\",\n\t\t\t\t\t\t\"noEmitHelpers\",\n\t\t\t\t\t\t\"noEmitOnError\",\n\t\t\t\t\t\t\"outDir\",\n\t\t\t\t\t\t\"outFile\",\n\t\t\t\t\t\t\"preserveConstEnums\",\n\t\t\t\t\t\t\"preserveValueImports\",\n\t\t\t\t\t\t\"removeComments\",\n\t\t\t\t\t\t\"sourceMap\",\n\t\t\t\t\t\t\"sourceRoot\",\n\t\t\t\t\t\t\"stripInternal\",\n\t\t\t\t\t\t/* Interop Constraints */\n\t\t\t\t\t\t\"allowSyntheticDefaultImports\",\n\t\t\t\t\t\t\"esModuleInterop\",\n\t\t\t\t\t\t\"forceConsistentCasingInFileNames\",\n\t\t\t\t\t\t\"isolatedDeclarations\",\n\t\t\t\t\t\t\"isolatedModules\",\n\t\t\t\t\t\t\"preserveSymlinks\",\n\t\t\t\t\t\t\"verbatimModuleSyntax\",\n\t\t\t\t\t\t/* Completeness */\n\t\t\t\t\t\t\"skipDefaultLibCheck\",\n\t\t\t\t\t\t\"skipLibCheck\",\n\t\t\t\t\t],\n\t\t\t\t\tpathPattern: \"^compilerOptions$\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t},\n];\n","import type { OptionsAppType, OptionsNode, OptionsOverrides, TypedFlatConfigItem } from \"@/types\";\nimport { interopDefault, renameRules } from \"@/utils\";\n\nexport const node = async (\n\toptions: OptionsAppType & OptionsNode & OptionsOverrides = {}\n): Promise<TypedFlatConfigItem[]> => {\n\tconst { overrides, security = false, type = \"app\" } = options;\n\n\tconst eslintPluginNode = await interopDefault(import(\"eslint-plugin-n\"));\n\tconst eslintPluginSecurity = await interopDefault(import(\"eslint-plugin-security\"));\n\n\treturn [\n\t\t{\n\t\t\tname: \"zayne/node/setup\",\n\t\t\tplugins: {\n\t\t\t\tnode: eslintPluginNode,\n\t\t\t\t...(security && { security: eslintPluginSecurity }),\n\t\t\t},\n\t\t},\n\n\t\t{\n\t\t\tname: \"zayne/node/recommended\",\n\t\t\trules: {\n\t\t\t\t...renameRules(eslintPluginNode.configs[\"flat/recommended-module\"].rules, { n: \"node\" }),\n\t\t\t\t...(security && eslintPluginSecurity.configs.recommended.rules),\n\t\t\t},\n\t\t},\n\n\t\t{\n\t\t\tname: \"zayne/node/rules\",\n\n\t\t\trules: {\n\t\t\t\t\"node/no-deprecated-api\": \"error\",\n\t\t\t\t\"node/no-exports-assign\": \"error\",\n\t\t\t\t\"node/no-extraneous-import\": \"off\", // eslint-plugin-import-x handles this\n\t\t\t\t\"node/no-missing-import\": \"off\",\n\t\t\t\t\"node/no-path-concat\": \"error\",\n\t\t\t\t\"node/no-unpublished-import\": \"off\",\n\t\t\t\t\"node/process-exit-as-throw\": \"error\",\n\n\t\t\t\t...(type === \"lib-strict\"\n\t\t\t\t\t? {\n\t\t\t\t\t\t\t\"node/no-unsupported-features/es-syntax\": \"error\",\n\t\t\t\t\t\t\t\"node/no-unsupported-features/node-builtins\": \"error\",\n\t\t\t\t\t\t}\n\t\t\t\t\t: {\n\t\t\t\t\t\t\t\"node/no-unsupported-features/es-syntax\": \"off\",\n\t\t\t\t\t\t\t\"node/no-unsupported-features/node-builtins\": \"off\",\n\t\t\t\t\t\t}),\n\n\t\t\t\t...overrides,\n\t\t\t},\n\t\t},\n\t];\n};\n","import { GLOB_JSX, GLOB_TSX } from \"@/globs\";\nimport type { TypedFlatConfigItem } from \"@/types\";\n\nconst jsx = (): TypedFlatConfigItem[] => {\n\treturn [\n\t\t{\n\t\t\tfiles: [GLOB_JSX, GLOB_TSX],\n\n\t\t\tlanguageOptions: {\n\t\t\t\tparserOptions: {\n\t\t\t\t\tecmaFeatures: {\n\t\t\t\t\t\tjsx: true,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\n\t\t\tname: \"zayne/jsx/setup\",\n\t\t},\n\t];\n};\n\nexport { jsx };\n","import { isObject } from \"@/utils\";\nimport type { Linter } from \"eslint\";\nimport { FlatConfigComposer } from \"eslint-flat-config-utils\";\nimport { isPackageExists } from \"local-pkg\";\nimport {\n\tgitIgnores,\n\tignores,\n\timports,\n\tjavascript,\n\tjsdoc,\n\tjsonc,\n\tnode,\n\tperfectionist,\n\treact,\n\tsortPackageJson,\n\tsortTsconfig,\n\tstylistic,\n\ttailwindcss,\n\ttanstack,\n\ttypescript,\n\tunicorn,\n} from \"./configs\";\nimport { jsx } from \"./configs/jsx\";\nimport { defaultPluginRenameMap } from \"./constants\";\nimport type { Awaitable, ConfigNames, OptionsConfig, TypedFlatConfigItem } from \"./types\";\n\nconst ReactPackages = [\"react\", \"react-dom\"];\n\nconst resolveOptions = (option: unknown) => (isObject(option) ? option : {});\n\n/**\n * Construct an array of ESLint flat config items.\n * @param options\n * The options for generating the ESLint configurations.\n * @param userConfigs\n * The user configurations to be merged with the generated configurations.\n * @returns\n * The merged ESLint configurations.\n */\n\nexport const zayne = (\n\toptions: OptionsConfig & Pick<TypedFlatConfigItem, \"ignores\"> = {},\n\tuserConfigs: Array<\n\t\tAwaitable<FlatConfigComposer | Linter.Config[] | TypedFlatConfigItem | TypedFlatConfigItem[]>\n\t> = []\n): FlatConfigComposer<TypedFlatConfigItem, ConfigNames> => {\n\tconst {\n\t\tautoRenamePlugins = true,\n\t\tcomponentExts = [],\n\t\tgitignore: enableGitignore = true,\n\t\tjsonc: enableJsonc = true,\n\t\tjsx: enableJsx = true,\n\t\tnode: enableNode = true,\n\t\tperfectionist: enablePerfectionist = true,\n\t\treact: enableReact = ReactPackages.some((pkg) => isPackageExists(pkg)),\n\t\tstylistic: enableStylistic = true,\n\t\ttype = \"app\",\n\t\ttypescript: enableTypeScript = isPackageExists(\"typescript\"),\n\t\tunicorn: enableUnicorn = true,\n\t\t...restOfOptions\n\t} = options;\n\n\tconst isStylistic = Boolean(enableStylistic);\n\n\tconst tsconfigPath =\n\t\tisObject(enableTypeScript) && \"tsconfigPath\" in enableTypeScript\n\t\t\t? enableTypeScript.tsconfigPath\n\t\t\t: null;\n\n\tconst configs: Array<Awaitable<TypedFlatConfigItem[]>> = [];\n\n\tif (enableGitignore) {\n\t\tconfigs.push(gitIgnores(resolveOptions(enableGitignore)));\n\t}\n\n\t// Base configs\n\tconfigs.push(\n\t\tignores(restOfOptions.ignores),\n\t\tjavascript(restOfOptions.javascript),\n\t\timports({ stylistic: isStylistic }),\n\t\tjsdoc({ stylistic: isStylistic })\n\t);\n\n\tif (enableNode) {\n\t\tconfigs.push(node({ type, ...resolveOptions(enableNode) }));\n\t}\n\n\tif (enablePerfectionist) {\n\t\tconfigs.push(perfectionist(resolveOptions(enablePerfectionist)));\n\t}\n\n\tif (enableUnicorn) {\n\t\tconfigs.push(unicorn({ type, ...resolveOptions(enableUnicorn) }));\n\t}\n\n\tif (enableJsonc) {\n\t\tconfigs.push(\n\t\t\tjsonc({\n\t\t\t\tstylistic: isStylistic,\n\t\t\t\t...resolveOptions(enableJsonc),\n\t\t\t}),\n\t\t\tsortPackageJson(),\n\t\t\tsortTsconfig()\n\t\t);\n\t}\n\n\tif (enableTypeScript) {\n\t\tconfigs.push(\n\t\t\ttypescript({\n\t\t\t\tcomponentExts,\n\t\t\t\tstylistic: isStylistic,\n\t\t\t\t...resolveOptions(enableTypeScript),\n\t\t\t})\n\t\t);\n\t}\n\n\tif (restOfOptions.tailwindcss) {\n\t\tconfigs.push(tailwindcss(resolveOptions(restOfOptions.tailwindcss)));\n\t}\n\n\tif (restOfOptions.tanstack) {\n\t\tconfigs.push(tanstack(resolveOptions(restOfOptions.tanstack)));\n\t}\n\n\tif (enableJsx) {\n\t\tconfigs.push(jsx());\n\t}\n\n\tif (enableStylistic) {\n\t\tconst stylisticOptions = resolveOptions(enableStylistic);\n\n\t\tconfigs.push(\n\t\t\tstylistic({\n\t\t\t\t...stylisticOptions,\n\t\t\t\t...(!(\"jsx\" in stylisticOptions) && { jsx: enableJsx }),\n\t\t\t})\n\t\t);\n\t}\n\n\tif (enableReact) {\n\t\tconfigs.push(\n\t\t\treact({\n\t\t\t\t...resolveOptions(enableReact),\n\t\t\t\ttypescript: Boolean(tsconfigPath),\n\t\t\t})\n\t\t);\n\t}\n\n\tif (\"files\" in restOfOptions) {\n\t\tthrow new Error(\n\t\t\t'[@zayne-labs/eslint-config] The first argument should not contain the \"files\" property as the options are supposed to be global. Place it in the second config array instead.'\n\t\t);\n\t}\n\n\tlet composer = new FlatConfigComposer<TypedFlatConfigItem, ConfigNames>();\n\n\tcomposer = composer.append(...configs, ...(userConfigs as never[]));\n\n\tif (autoRenamePlugins) {\n\t\tcomposer = composer.renamePlugins(defaultPluginRenameMap);\n\t}\n\n\treturn composer;\n};\n"]}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zayne-labs/eslint-config",
3
3
  "type": "module",
4
- "version": "0.2.11",
4
+ "version": "0.3.0",
5
5
  "description": "Zayne Labs' ESLint config preset",
6
6
  "author": "Ryan Zayne",
7
7
  "license": "MIT",
@@ -28,17 +28,17 @@
28
28
  "node": ">=18.x"
29
29
  },
30
30
  "peerDependencies": {
31
- "@eslint-react/eslint-plugin": "^1.15.0",
32
- "@next/eslint-plugin-next": "^14.2.15",
33
- "@tanstack/eslint-plugin-query": "^5.59.7",
34
- "eslint": "^9.12.0",
35
- "eslint-plugin-astro": "^1.2.0",
36
- "eslint-plugin-react-hooks": "^5.0.0",
37
- "eslint-plugin-react-refresh": "^0.4.12",
38
- "eslint-plugin-solid": "^0.14.3",
39
- "eslint-plugin-svelte": "^2.35.1",
40
- "eslint-plugin-tailwindcss": "^3.17.4",
41
- "eslint-plugin-vue": "^9.28.0"
31
+ "@eslint-react/eslint-plugin": ">=1.15.0",
32
+ "@next/eslint-plugin-next": ">=14.2.15",
33
+ "@tanstack/eslint-plugin-query": ">=5.59.7",
34
+ "eslint": ">=9.12.0",
35
+ "eslint-plugin-astro": ">=1.2.0",
36
+ "eslint-plugin-react-hooks": ">=5.0.0",
37
+ "eslint-plugin-react-refresh": ">=0.4.12",
38
+ "eslint-plugin-solid": ">=0.14.3",
39
+ "eslint-plugin-svelte": ">=2.35.1",
40
+ "eslint-plugin-tailwindcss": ">=3.17.4",
41
+ "eslint-plugin-vue": ">=9.28.0"
42
42
  },
43
43
  "peerDependenciesMeta": {
44
44
  "@eslint-react/eslint-plugin": {
@@ -73,50 +73,61 @@
73
73
  }
74
74
  },
75
75
  "dependencies": {
76
- "@antfu/install-pkg": "^0.4.1",
76
+ "@antfu/install-pkg": "^0.5.0",
77
77
  "@clack/prompts": "^0.8.2",
78
- "@eslint/compat": "^1.2.3",
79
- "@eslint/js": "^9.15.0",
78
+ "@eslint/compat": "^1.2.4",
79
+ "@eslint/js": "^9.16.0",
80
80
  "@stylistic/eslint-plugin": "^2.11.0",
81
81
  "eslint-config-flat-gitignore": "^0.3.0",
82
82
  "eslint-flat-config-utils": "^0.4.0",
83
- "eslint-import-resolver-typescript": "^3.6.3",
84
- "eslint-plugin-import-x": "^4.4.3",
85
- "eslint-plugin-jsdoc": "^50.5.0",
83
+ "eslint-import-resolver-typescript": "^3.7.0",
84
+ "eslint-plugin-import-x": "^4.5.0",
85
+ "eslint-plugin-jsdoc": "^50.6.0",
86
86
  "eslint-plugin-jsonc": "^2.18.2",
87
87
  "eslint-plugin-n": "^17.14.0",
88
- "eslint-plugin-perfectionist": "^4.0.3",
88
+ "eslint-plugin-perfectionist": "^4.2.0",
89
89
  "eslint-plugin-security": "^3.0.1",
90
90
  "eslint-plugin-unicorn": "^56.0.1",
91
- "globals": "^15.12.0",
91
+ "globals": "^15.13.0",
92
92
  "jsonc-eslint-parser": "^2.4.0",
93
93
  "local-pkg": "^0.5.1",
94
- "typescript-eslint": "^8.15.0"
94
+ "typescript-eslint": "^8.17.0"
95
95
  },
96
96
  "devDependencies": {
97
- "@arethetypeswrong/cli": "0.17.0",
97
+ "@arethetypeswrong/cli": "0.17.1",
98
98
  "@changesets/cli": "2.27.10",
99
99
  "@commitlint/cli": "19.6.0",
100
100
  "@commitlint/config-conventional": "19.6.0",
101
+ "@eslint-react/eslint-plugin": "^1.17.3",
102
+ "@next/eslint-plugin-next": "^15.0.4",
101
103
  "@size-limit/esbuild-why": "11.1.6",
102
104
  "@size-limit/preset-small-lib": "11.1.6",
105
+ "@tanstack/eslint-plugin-query": "^5.62.1",
103
106
  "@total-typescript/ts-reset": "0.6.1",
104
107
  "@types/eslint-plugin-security": "3.0.0",
105
108
  "@types/eslint-plugin-tailwindcss": "3.17.0",
106
109
  "@types/eslint__js": "8.42.3",
107
- "@types/node": "22.9.1",
110
+ "@types/node": "22.10.1",
108
111
  "@zayne-labs/eslint-config": "link:",
109
112
  "@zayne-labs/tsconfig": "0.2.1",
110
113
  "concurrently": "9.1.0",
111
114
  "cross-env": "7.0.3",
115
+ "eslint": "^9.16.0",
116
+ "eslint-plugin-astro": "^1.3.1",
117
+ "eslint-plugin-react-hooks": "^5.1.0",
118
+ "eslint-plugin-react-refresh": "^0.4.16",
119
+ "eslint-plugin-solid": "^0.14.4",
120
+ "eslint-plugin-svelte": "^2.46.1",
121
+ "eslint-plugin-tailwindcss": "^3.17.5",
122
+ "eslint-plugin-vue": "^9.32.0",
112
123
  "eslint-typegen": "0.3.2",
113
124
  "husky": "9.1.7",
114
125
  "lint-staged": "15.2.10",
115
- "pkg-pr-new": "0.0.30",
116
- "prettier": "3.3.3",
126
+ "pkg-pr-new": "0.0.35",
127
+ "prettier": "3.4.2",
117
128
  "publint": "0.2.12",
118
129
  "size-limit": "11.1.6",
119
- "tailwindcss": "^3.4.15",
130
+ "tailwindcss": "^3.4.16",
120
131
  "tsup": "8.3.5",
121
132
  "tsx": "4.19.2",
122
133
  "typescript": "5.7.2"
@@ -135,7 +146,7 @@
135
146
  "lint:check-types": "pnpm typegen && tsc --pretty -p tsconfig.json",
136
147
  "lint:commitlint": "commitlint --edit",
137
148
  "lint:eslint": "pnpm build && pnpm lint:eslint:dev",
138
- "lint:eslint:dev": "eslint . --cache --max-warnings 0 --report-unused-disable-directives",
149
+ "lint:eslint:dev": "eslint . --max-warnings 0 --report-unused-disable-directives",
139
150
  "lint:format": "prettier --cache --write .",
140
151
  "lint:packages": "pnpm dedupe --check",
141
152
  "lint:publint": "publint --strict .",