@bfra.me/eslint-config 0.41.0 → 0.43.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/lib/index.d.ts +36 -4
- package/lib/index.js +701 -796
- package/lib/missing-module-for-config-2ESVMWBD.js +179 -0
- package/package.json +9 -10
- package/src/config.d.ts +2 -2
- package/src/configs/command.ts +7 -14
- package/src/configs/imports.ts +23 -31
- package/src/configs/javascript.ts +218 -225
- package/src/configs/jsdoc.ts +28 -34
- package/src/configs/json-schema.ts +29 -41
- package/src/configs/jsonc.ts +56 -72
- package/src/configs/node.ts +20 -27
- package/src/configs/perfectionist.ts +47 -54
- package/src/configs/pnpm.ts +1 -1
- package/src/configs/regexp.ts +12 -19
- package/src/configs/toml.ts +40 -54
- package/src/configs/typescript.ts +144 -160
- package/src/configs/unicorn.ts +76 -84
- package/src/configs/yaml.ts +43 -57
- package/src/package-utils.ts +108 -57
- package/src/rules.d.ts +33 -1
- package/lib/missing-module-for-config-QFYTX2KG.js +0 -145
package/lib/index.d.ts
CHANGED
|
@@ -2386,6 +2386,11 @@ interface Rules {
|
|
|
2386
2386
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-property-type.md#repos-sticky-header
|
|
2387
2387
|
*/
|
|
2388
2388
|
'jsdoc/require-property-type'?: Linter.RuleEntry<[]>
|
|
2389
|
+
/**
|
|
2390
|
+
* Requires that Promise rejections are documented with `@rejects` tags.
|
|
2391
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-rejects.md#repos-sticky-header
|
|
2392
|
+
*/
|
|
2393
|
+
'jsdoc/require-rejects'?: Linter.RuleEntry<JsdocRequireRejects>
|
|
2389
2394
|
/**
|
|
2390
2395
|
* Requires that returns are documented with `@returns`.
|
|
2391
2396
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-returns.md#repos-sticky-header
|
|
@@ -6293,6 +6298,11 @@ interface Rules {
|
|
|
6293
6298
|
* @see https://eslint.org/docs/latest/rules/vars-on-top
|
|
6294
6299
|
*/
|
|
6295
6300
|
'vars-on-top'?: Linter.RuleEntry<[]>
|
|
6301
|
+
/**
|
|
6302
|
+
* enforce using `.each` or `.for` consistently
|
|
6303
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/consistent-each-for.md
|
|
6304
|
+
*/
|
|
6305
|
+
'vitest/consistent-each-for'?: Linter.RuleEntry<VitestConsistentEachFor>
|
|
6296
6306
|
/**
|
|
6297
6307
|
* require test file pattern
|
|
6298
6308
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/consistent-test-filename.md
|
|
@@ -6510,7 +6520,7 @@ interface Rules {
|
|
|
6510
6520
|
*/
|
|
6511
6521
|
'vitest/prefer-each'?: Linter.RuleEntry<[]>
|
|
6512
6522
|
/**
|
|
6513
|
-
* enforce using the built-in
|
|
6523
|
+
* enforce using the built-in equality matchers
|
|
6514
6524
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-equality-matcher.md
|
|
6515
6525
|
*/
|
|
6516
6526
|
'vitest/prefer-equality-matcher'?: Linter.RuleEntry<[]>
|
|
@@ -6629,6 +6639,11 @@ interface Rules {
|
|
|
6629
6639
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-hook.md
|
|
6630
6640
|
*/
|
|
6631
6641
|
'vitest/require-hook'?: Linter.RuleEntry<VitestRequireHook>
|
|
6642
|
+
/**
|
|
6643
|
+
* require usage of import in vi.mock()
|
|
6644
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-import-vi-mock.md
|
|
6645
|
+
*/
|
|
6646
|
+
'vitest/require-import-vi-mock'?: Linter.RuleEntry<[]>
|
|
6632
6647
|
/**
|
|
6633
6648
|
* require local Test Context for concurrent snapshot tests
|
|
6634
6649
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-local-test-context-for-concurrent-snapshots.md
|
|
@@ -10407,6 +10422,16 @@ type JsdocRequireParamType = []|[{
|
|
|
10407
10422
|
|
|
10408
10423
|
setDefaultDestructuredRootType?: boolean
|
|
10409
10424
|
}]
|
|
10425
|
+
// ----- jsdoc/require-rejects -----
|
|
10426
|
+
type JsdocRequireRejects = []|[{
|
|
10427
|
+
|
|
10428
|
+
contexts?: (string | {
|
|
10429
|
+
comment?: string
|
|
10430
|
+
context?: string
|
|
10431
|
+
})[]
|
|
10432
|
+
|
|
10433
|
+
exemptedBy?: string[]
|
|
10434
|
+
}]
|
|
10410
10435
|
// ----- jsdoc/require-returns -----
|
|
10411
10436
|
type JsdocRequireReturns = []|[{
|
|
10412
10437
|
|
|
@@ -16120,6 +16145,13 @@ type UseIsnan = []|[{
|
|
|
16120
16145
|
type ValidTypeof = []|[{
|
|
16121
16146
|
requireStringLiterals?: boolean
|
|
16122
16147
|
}]
|
|
16148
|
+
// ----- vitest/consistent-each-for -----
|
|
16149
|
+
type VitestConsistentEachFor = []|[{
|
|
16150
|
+
test?: ("each" | "for")
|
|
16151
|
+
it?: ("each" | "for")
|
|
16152
|
+
describe?: ("each" | "for")
|
|
16153
|
+
suite?: ("each" | "for")
|
|
16154
|
+
}]
|
|
16123
16155
|
// ----- vitest/consistent-test-filename -----
|
|
16124
16156
|
type VitestConsistentTestFilename = []|[{
|
|
16125
16157
|
pattern?: string
|
|
@@ -16453,7 +16485,7 @@ type Yoda = []|[("always" | "never")]|[("always" | "never"), {
|
|
|
16453
16485
|
*
|
|
16454
16486
|
* @see https://eslint.org/docs/latest/use/configure/configuration-files#configuration-objects
|
|
16455
16487
|
*/
|
|
16456
|
-
type Config<R extends RulesConfig = Rules> = Linter.Config<R>
|
|
16488
|
+
type Config<R extends RulesConfig = Rules & RulesConfig> = Linter.Config<R>
|
|
16457
16489
|
|
|
16458
16490
|
/**
|
|
16459
16491
|
* Defines the names of the available ESLint configurations.
|
|
@@ -16523,8 +16555,8 @@ type ConfigNames =
|
|
|
16523
16555
|
| '@bfra.me/toml/json-schema'
|
|
16524
16556
|
| '@bfra.me/toml'
|
|
16525
16557
|
| '@bfra.me/typescript/plugins'
|
|
16526
|
-
| '@bfra.me/typescript/type-aware-parser'
|
|
16527
16558
|
| '@bfra.me/typescript/parser'
|
|
16559
|
+
| '@bfra.me/typescript/type-aware-parser'
|
|
16528
16560
|
| '@bfra.me/typescript/rules'
|
|
16529
16561
|
| '@bfra.me/typescript/type-aware-rules'
|
|
16530
16562
|
| '@bfra.me/typescript/erasable-syntax-only'
|
|
@@ -16598,7 +16630,7 @@ interface ImportsOptions extends Flatten<OptionsOverrides & OptionsStylistic> {
|
|
|
16598
16630
|
* });
|
|
16599
16631
|
* ```
|
|
16600
16632
|
*/
|
|
16601
|
-
declare function imports(options?: ImportsOptions):
|
|
16633
|
+
declare function imports(options?: ImportsOptions): Config[];
|
|
16602
16634
|
|
|
16603
16635
|
/**
|
|
16604
16636
|
* Represents the options for configuring the JavaScript ESLint configuration.
|