@antfu/eslint-config 2.13.0 → 2.13.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.cjs CHANGED
@@ -48,7 +48,7 @@ var import_picocolors = __toESM(require("picocolors"), 1);
48
48
  var package_default = {
49
49
  name: "@antfu/eslint-config",
50
50
  type: "module",
51
- version: "2.13.0",
51
+ version: "2.13.2",
52
52
  packageManager: "pnpm@8.15.6",
53
53
  description: "Anthony's ESLint config",
54
54
  author: "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
@@ -142,8 +142,8 @@ var package_default = {
142
142
  "@antfu/install-pkg": "^0.3.2",
143
143
  "@clack/prompts": "^0.7.0",
144
144
  "@stylistic/eslint-plugin": "^1.7.0",
145
- "@typescript-eslint/eslint-plugin": "^7.5.0",
146
- "@typescript-eslint/parser": "^7.5.0",
145
+ "@typescript-eslint/eslint-plugin": "^7.6.0",
146
+ "@typescript-eslint/parser": "^7.6.0",
147
147
  "eslint-config-flat-gitignore": "^0.1.5",
148
148
  "eslint-flat-config-utils": "^0.2.1",
149
149
  "eslint-merge-processors": "^0.1.0",
@@ -153,13 +153,13 @@ var package_default = {
153
153
  "eslint-plugin-jsdoc": "^48.2.3",
154
154
  "eslint-plugin-jsonc": "^2.15.0",
155
155
  "eslint-plugin-markdown": "^4.0.1",
156
- "eslint-plugin-n": "^17.0.0",
156
+ "eslint-plugin-n": "^17.1.0",
157
157
  "eslint-plugin-no-only-tests": "^3.1.0",
158
158
  "eslint-plugin-perfectionist": "^2.8.0",
159
159
  "eslint-plugin-toml": "^0.11.0",
160
160
  "eslint-plugin-unicorn": "^52.0.0",
161
161
  "eslint-plugin-unused-imports": "^3.1.0",
162
- "eslint-plugin-vitest": "^0.4.1",
162
+ "eslint-plugin-vitest": "^0.5.0",
163
163
  "eslint-plugin-vue": "^9.24.1",
164
164
  "eslint-plugin-yml": "^1.14.0",
165
165
  "eslint-processor-vue-blocks": "^0.1.1",
@@ -177,11 +177,11 @@ var package_default = {
177
177
  "@antfu/eslint-config": "workspace:*",
178
178
  "@antfu/eslint-plugin-prettier": "^5.0.1-1",
179
179
  "@antfu/ni": "^0.21.12",
180
- "@eslint/config-inspector": "^0.4.1",
180
+ "@eslint/config-inspector": "^0.4.4",
181
181
  "@stylistic/eslint-plugin-migrate": "^1.7.0",
182
182
  "@types/eslint": "^8.56.7",
183
183
  "@types/fs-extra": "^11.0.4",
184
- "@types/node": "^20.12.5",
184
+ "@types/node": "^20.12.6",
185
185
  "@types/prompts": "^2.4.9",
186
186
  "@types/yargs": "^17.0.32",
187
187
  "@unocss/eslint-plugin": "^0.59.0",
@@ -195,7 +195,7 @@ var package_default = {
195
195
  "eslint-plugin-react-refresh": "^0.4.6",
196
196
  "eslint-plugin-solid": "^0.13.2",
197
197
  "eslint-plugin-svelte": "2.36.0-next.13",
198
- "eslint-typegen": "^0.2.0",
198
+ "eslint-typegen": "^0.2.2",
199
199
  esno: "^4.7.0",
200
200
  execa: "^8.0.1",
201
201
  "fast-glob": "^3.3.2",
@@ -206,7 +206,7 @@ var package_default = {
206
206
  rimraf: "^5.0.5",
207
207
  "simple-git-hooks": "^2.11.1",
208
208
  svelte: "^4.2.12",
209
- "svelte-eslint-parser": "^0.34.0",
209
+ "svelte-eslint-parser": "^0.34.1",
210
210
  tsup: "^8.0.2",
211
211
  typescript: "^5.4.4",
212
212
  vitest: "^1.4.0",
package/dist/cli.js CHANGED
@@ -19,7 +19,7 @@ import c from "picocolors";
19
19
  var package_default = {
20
20
  name: "@antfu/eslint-config",
21
21
  type: "module",
22
- version: "2.13.0",
22
+ version: "2.13.2",
23
23
  packageManager: "pnpm@8.15.6",
24
24
  description: "Anthony's ESLint config",
25
25
  author: "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
@@ -113,8 +113,8 @@ var package_default = {
113
113
  "@antfu/install-pkg": "^0.3.2",
114
114
  "@clack/prompts": "^0.7.0",
115
115
  "@stylistic/eslint-plugin": "^1.7.0",
116
- "@typescript-eslint/eslint-plugin": "^7.5.0",
117
- "@typescript-eslint/parser": "^7.5.0",
116
+ "@typescript-eslint/eslint-plugin": "^7.6.0",
117
+ "@typescript-eslint/parser": "^7.6.0",
118
118
  "eslint-config-flat-gitignore": "^0.1.5",
119
119
  "eslint-flat-config-utils": "^0.2.1",
120
120
  "eslint-merge-processors": "^0.1.0",
@@ -124,13 +124,13 @@ var package_default = {
124
124
  "eslint-plugin-jsdoc": "^48.2.3",
125
125
  "eslint-plugin-jsonc": "^2.15.0",
126
126
  "eslint-plugin-markdown": "^4.0.1",
127
- "eslint-plugin-n": "^17.0.0",
127
+ "eslint-plugin-n": "^17.1.0",
128
128
  "eslint-plugin-no-only-tests": "^3.1.0",
129
129
  "eslint-plugin-perfectionist": "^2.8.0",
130
130
  "eslint-plugin-toml": "^0.11.0",
131
131
  "eslint-plugin-unicorn": "^52.0.0",
132
132
  "eslint-plugin-unused-imports": "^3.1.0",
133
- "eslint-plugin-vitest": "^0.4.1",
133
+ "eslint-plugin-vitest": "^0.5.0",
134
134
  "eslint-plugin-vue": "^9.24.1",
135
135
  "eslint-plugin-yml": "^1.14.0",
136
136
  "eslint-processor-vue-blocks": "^0.1.1",
@@ -148,11 +148,11 @@ var package_default = {
148
148
  "@antfu/eslint-config": "workspace:*",
149
149
  "@antfu/eslint-plugin-prettier": "^5.0.1-1",
150
150
  "@antfu/ni": "^0.21.12",
151
- "@eslint/config-inspector": "^0.4.1",
151
+ "@eslint/config-inspector": "^0.4.4",
152
152
  "@stylistic/eslint-plugin-migrate": "^1.7.0",
153
153
  "@types/eslint": "^8.56.7",
154
154
  "@types/fs-extra": "^11.0.4",
155
- "@types/node": "^20.12.5",
155
+ "@types/node": "^20.12.6",
156
156
  "@types/prompts": "^2.4.9",
157
157
  "@types/yargs": "^17.0.32",
158
158
  "@unocss/eslint-plugin": "^0.59.0",
@@ -166,7 +166,7 @@ var package_default = {
166
166
  "eslint-plugin-react-refresh": "^0.4.6",
167
167
  "eslint-plugin-solid": "^0.13.2",
168
168
  "eslint-plugin-svelte": "2.36.0-next.13",
169
- "eslint-typegen": "^0.2.0",
169
+ "eslint-typegen": "^0.2.2",
170
170
  esno: "^4.7.0",
171
171
  execa: "^8.0.1",
172
172
  "fast-glob": "^3.3.2",
@@ -177,7 +177,7 @@ var package_default = {
177
177
  rimraf: "^5.0.5",
178
178
  "simple-git-hooks": "^2.11.1",
179
179
  svelte: "^4.2.12",
180
- "svelte-eslint-parser": "^0.34.0",
180
+ "svelte-eslint-parser": "^0.34.1",
181
181
  tsup: "^8.0.2",
182
182
  typescript: "^5.4.4",
183
183
  vitest: "^1.4.0",
package/dist/index.cjs CHANGED
@@ -452,7 +452,13 @@ async function javascript(options = {}) {
452
452
  "unused-imports/no-unused-imports": isInEditor ? "off" : "error",
453
453
  "unused-imports/no-unused-vars": [
454
454
  "error",
455
- { args: "after-used", argsIgnorePattern: "^_", vars: "all", varsIgnorePattern: "^_" }
455
+ {
456
+ args: "after-used",
457
+ argsIgnorePattern: "^_",
458
+ ignoreRestSiblings: true,
459
+ vars: "all",
460
+ varsIgnorePattern: "^_"
461
+ }
456
462
  ],
457
463
  "use-isnan": ["error", { enforceForIndexOf: true, enforceForSwitchCase: true }],
458
464
  "valid-typeof": ["error", { requireStringLiterals: true }],
package/dist/index.d.cts CHANGED
@@ -4332,103 +4332,103 @@ interface RuleOptions {
4332
4332
  */
4333
4333
  'template-tag-spacing'?: Linter.RuleEntry<TemplateTagSpacing>
4334
4334
  /**
4335
- * forbidden .spec test file pattern
4335
+ * require .spec test file pattern
4336
4336
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/consistent-test-filename.md
4337
4337
  */
4338
4338
  'test/consistent-test-filename'?: Linter.RuleEntry<TestConsistentTestFilename>
4339
4339
  /**
4340
- * Prefer test or it but not both
4340
+ * enforce using test or it but not both
4341
4341
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/consistent-test-it.md
4342
4342
  */
4343
4343
  'test/consistent-test-it'?: Linter.RuleEntry<TestConsistentTestIt>
4344
4344
  /**
4345
- * Enforce having expectation in test body
4345
+ * enforce having expectation in test body
4346
4346
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/expect-expect.md
4347
4347
  */
4348
4348
  'test/expect-expect'?: Linter.RuleEntry<TestExpectExpect>
4349
4349
  /**
4350
- * Enforce a maximum number of expect per test
4350
+ * enforce a maximum number of expect per test
4351
4351
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/max-expects.md
4352
4352
  */
4353
4353
  'test/max-expects'?: Linter.RuleEntry<TestMaxExpects>
4354
4354
  /**
4355
- * Nested describe block should be less than set max value or default value
4355
+ * require describe block to be less than set max value or default value
4356
4356
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/max-nested-describe.md
4357
4357
  */
4358
4358
  'test/max-nested-describe'?: Linter.RuleEntry<TestMaxNestedDescribe>
4359
4359
  /**
4360
- * Disallow alias methods
4360
+ * disallow alias methods
4361
4361
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-alias-methods.md
4362
4362
  */
4363
4363
  'test/no-alias-methods'?: Linter.RuleEntry<[]>
4364
4364
  /**
4365
- * Disallow commented out tests
4365
+ * disallow commented out tests
4366
4366
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-commented-out-tests.md
4367
4367
  */
4368
4368
  'test/no-commented-out-tests'?: Linter.RuleEntry<[]>
4369
4369
  /**
4370
- * Disallow conditional expects
4370
+ * disallow conditional expects
4371
4371
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-conditional-expect.md
4372
4372
  */
4373
4373
  'test/no-conditional-expect'?: Linter.RuleEntry<[]>
4374
4374
  /**
4375
- * Disallow conditional tests
4375
+ * disallow conditional tests
4376
4376
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-conditional-in-test.md
4377
4377
  */
4378
4378
  'test/no-conditional-in-test'?: Linter.RuleEntry<[]>
4379
4379
  /**
4380
- * Disallow conditional tests
4380
+ * disallow conditional tests
4381
4381
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-conditional-tests.md
4382
4382
  */
4383
4383
  'test/no-conditional-tests'?: Linter.RuleEntry<[]>
4384
4384
  /**
4385
- * Disallow disabled tests
4385
+ * disallow disabled tests
4386
4386
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-disabled-tests.md
4387
4387
  */
4388
4388
  'test/no-disabled-tests'?: Linter.RuleEntry<[]>
4389
4389
  /**
4390
- * Disallow using a callback in asynchronous tests and hooks
4390
+ * disallow using a callback in asynchronous tests and hooks
4391
4391
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-done-callback.md
4392
4392
  * @deprecated
4393
4393
  */
4394
4394
  'test/no-done-callback'?: Linter.RuleEntry<[]>
4395
4395
  /**
4396
- * Disallow duplicate hooks and teardown hooks
4396
+ * disallow duplicate hooks and teardown hooks
4397
4397
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-duplicate-hooks.md
4398
4398
  */
4399
4399
  'test/no-duplicate-hooks'?: Linter.RuleEntry<[]>
4400
4400
  /**
4401
- * Disallow focused tests
4401
+ * disallow focused tests
4402
4402
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-focused-tests.md
4403
4403
  */
4404
4404
  'test/no-focused-tests'?: Linter.RuleEntry<[]>
4405
4405
  /**
4406
- * Disallow setup and teardown hooks
4406
+ * disallow setup and teardown hooks
4407
4407
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-hooks.md
4408
4408
  */
4409
4409
  'test/no-hooks'?: Linter.RuleEntry<TestNoHooks>
4410
4410
  /**
4411
- * Disallow identical titles
4411
+ * disallow identical titles
4412
4412
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-identical-title.md
4413
4413
  */
4414
4414
  'test/no-identical-title'?: Linter.RuleEntry<[]>
4415
4415
  /**
4416
- * Disallow importing `node:test`
4416
+ * disallow importing `node:test`
4417
4417
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-import-node-test.md
4418
4418
  */
4419
4419
  'test/no-import-node-test'?: Linter.RuleEntry<[]>
4420
4420
  /**
4421
- * Disallow string interpolation in snapshots
4421
+ * disallow string interpolation in snapshots
4422
4422
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-interpolation-in-snapshots.md
4423
4423
  */
4424
4424
  'test/no-interpolation-in-snapshots'?: Linter.RuleEntry<[]>
4425
4425
  /**
4426
- * Disallow large snapshots
4426
+ * disallow large snapshots
4427
4427
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-large-snapshots.md
4428
4428
  */
4429
4429
  'test/no-large-snapshots'?: Linter.RuleEntry<TestNoLargeSnapshots>
4430
4430
  /**
4431
- * Disallow importing from __mocks__ directory
4431
+ * disallow importing from __mocks__ directory
4432
4432
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-mocks-import.md
4433
4433
  */
4434
4434
  'test/no-mocks-import'?: Linter.RuleEntry<[]>
@@ -4438,162 +4438,162 @@ interface RuleOptions {
4438
4438
  */
4439
4439
  'test/no-only-tests'?: Linter.RuleEntry<TestNoOnlyTests>
4440
4440
  /**
4441
- * Disallow the use of certain matchers
4441
+ * disallow the use of certain matchers
4442
4442
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-restricted-matchers.md
4443
4443
  */
4444
4444
  'test/no-restricted-matchers'?: Linter.RuleEntry<TestNoRestrictedMatchers>
4445
4445
  /**
4446
- * Disallow specific `vi.` methods
4446
+ * disallow specific `vi.` methods
4447
4447
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-restricted-vi-methods.md
4448
4448
  */
4449
4449
  'test/no-restricted-vi-methods'?: Linter.RuleEntry<TestNoRestrictedViMethods>
4450
4450
  /**
4451
- * Disallow using `expect` outside of `it` or `test` blocks
4451
+ * disallow using `expect` outside of `it` or `test` blocks
4452
4452
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-standalone-expect.md
4453
4453
  */
4454
4454
  'test/no-standalone-expect'?: Linter.RuleEntry<TestNoStandaloneExpect>
4455
4455
  /**
4456
- * Disallow using `test` as a prefix
4456
+ * disallow using `test` as a prefix
4457
4457
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-test-prefixes.md
4458
4458
  */
4459
4459
  'test/no-test-prefixes'?: Linter.RuleEntry<[]>
4460
4460
  /**
4461
- * Disallow return statements in tests
4461
+ * disallow return statements in tests
4462
4462
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-test-return-statement.md
4463
4463
  */
4464
4464
  'test/no-test-return-statement'?: Linter.RuleEntry<[]>
4465
4465
  /**
4466
- * Suggest using `toBeCalledWith()` or `toHaveBeenCalledWith()`
4466
+ * enforce using `toBeCalledWith()` or `toHaveBeenCalledWith()`
4467
4467
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-called-with.md
4468
4468
  */
4469
4469
  'test/prefer-called-with'?: Linter.RuleEntry<[]>
4470
4470
  /**
4471
- * Suggest using the built-in comparison matchers
4471
+ * enforce using the built-in comparison matchers
4472
4472
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-comparison-matcher.md
4473
4473
  */
4474
4474
  'test/prefer-comparison-matcher'?: Linter.RuleEntry<[]>
4475
4475
  /**
4476
- * Prefer `each` rather than manual loops
4476
+ * enforce using `each` rather than manual loops
4477
4477
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-each.md
4478
4478
  */
4479
4479
  'test/prefer-each'?: Linter.RuleEntry<[]>
4480
4480
  /**
4481
- * Suggest using the built-in quality matchers
4481
+ * enforce using the built-in quality matchers
4482
4482
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-equality-matcher.md
4483
4483
  */
4484
4484
  'test/prefer-equality-matcher'?: Linter.RuleEntry<[]>
4485
4485
  /**
4486
- * Suggest using expect assertions instead of callbacks
4486
+ * enforce using expect assertions instead of callbacks
4487
4487
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-expect-assertions.md
4488
4488
  */
4489
4489
  'test/prefer-expect-assertions'?: Linter.RuleEntry<TestPreferExpectAssertions>
4490
4490
  /**
4491
- * Suggest using `expect().resolves` over `expect(await ...)` syntax
4491
+ * enforce using `expect().resolves` over `expect(await ...)` syntax
4492
4492
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-expect-resolves.md
4493
4493
  */
4494
4494
  'test/prefer-expect-resolves'?: Linter.RuleEntry<[]>
4495
4495
  /**
4496
- * Prefer having hooks in consistent order
4496
+ * enforce having hooks in consistent order
4497
4497
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-hooks-in-order.md
4498
4498
  */
4499
4499
  'test/prefer-hooks-in-order'?: Linter.RuleEntry<[]>
4500
4500
  /**
4501
- * Suggest having hooks before any test cases
4501
+ * enforce having hooks before any test cases
4502
4502
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-hooks-on-top.md
4503
4503
  */
4504
4504
  'test/prefer-hooks-on-top'?: Linter.RuleEntry<[]>
4505
4505
  /**
4506
- * Enforce lowercase titles
4506
+ * enforce lowercase titles
4507
4507
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-lowercase-title.md
4508
4508
  */
4509
4509
  'test/prefer-lowercase-title'?: Linter.RuleEntry<TestPreferLowercaseTitle>
4510
4510
  /**
4511
- * Prefer mock resolved/rejected shorthands for promises
4511
+ * enforce mock resolved/rejected shorthands for promises
4512
4512
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-mock-promise-shorthand.md
4513
4513
  */
4514
4514
  'test/prefer-mock-promise-shorthand'?: Linter.RuleEntry<[]>
4515
4515
  /**
4516
- * Prefer including a hint with external snapshots
4516
+ * enforce including a hint with external snapshots
4517
4517
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-snapshot-hint.md
4518
4518
  */
4519
4519
  'test/prefer-snapshot-hint'?: Linter.RuleEntry<TestPreferSnapshotHint>
4520
4520
  /**
4521
- * Suggest using `vi.spyOn`
4521
+ * enforce using `vi.spyOn`
4522
4522
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-spy-on.md
4523
4523
  */
4524
4524
  'test/prefer-spy-on'?: Linter.RuleEntry<[]>
4525
4525
  /**
4526
- * Prefer strict equal over equal
4526
+ * enforce strict equal over equal
4527
4527
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-strict-equal.md
4528
4528
  */
4529
4529
  'test/prefer-strict-equal'?: Linter.RuleEntry<[]>
4530
4530
  /**
4531
- * Suggest using toBe()
4531
+ * enforce using toBe()
4532
4532
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-be.md
4533
4533
  */
4534
4534
  'test/prefer-to-be'?: Linter.RuleEntry<[]>
4535
4535
  /**
4536
- * Suggest using toBeFalsy()
4536
+ * enforce using toBeFalsy()
4537
4537
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-be-falsy.md
4538
4538
  */
4539
4539
  'test/prefer-to-be-falsy'?: Linter.RuleEntry<[]>
4540
4540
  /**
4541
- * Prefer toBeObject()
4541
+ * enforce using toBeObject()
4542
4542
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-be-object.md
4543
4543
  */
4544
4544
  'test/prefer-to-be-object'?: Linter.RuleEntry<[]>
4545
4545
  /**
4546
- * Suggest using `toBeTruthy`
4546
+ * enforce using `toBeTruthy`
4547
4547
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-be-truthy.md
4548
4548
  */
4549
4549
  'test/prefer-to-be-truthy'?: Linter.RuleEntry<[]>
4550
4550
  /**
4551
- * Prefer using toContain()
4551
+ * enforce using toContain()
4552
4552
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-contain.md
4553
4553
  */
4554
4554
  'test/prefer-to-contain'?: Linter.RuleEntry<[]>
4555
4555
  /**
4556
- * Suggest using toHaveLength()
4556
+ * enforce using toHaveLength()
4557
4557
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-have-length.md
4558
4558
  */
4559
4559
  'test/prefer-to-have-length'?: Linter.RuleEntry<[]>
4560
4560
  /**
4561
- * Suggest using `test.todo`
4561
+ * enforce using `test.todo`
4562
4562
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-todo.md
4563
4563
  */
4564
4564
  'test/prefer-todo'?: Linter.RuleEntry<[]>
4565
4565
  /**
4566
- * Require setup and teardown to be within a hook
4566
+ * require setup and teardown to be within a hook
4567
4567
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/require-hook.md
4568
4568
  */
4569
4569
  'test/require-hook'?: Linter.RuleEntry<TestRequireHook>
4570
4570
  /**
4571
- * Require local Test Context for concurrent snapshot tests
4571
+ * require local Test Context for concurrent snapshot tests
4572
4572
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/require-local-test-context-for-concurrent-snapshots.md
4573
4573
  */
4574
4574
  'test/require-local-test-context-for-concurrent-snapshots'?: Linter.RuleEntry<[]>
4575
4575
  /**
4576
- * Require toThrow() to be called with an error message
4576
+ * require toThrow() to be called with an error message
4577
4577
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/require-to-throw-message.md
4578
4578
  */
4579
4579
  'test/require-to-throw-message'?: Linter.RuleEntry<[]>
4580
4580
  /**
4581
- * Enforce that all tests are in a top-level describe
4581
+ * enforce that all tests are in a top-level describe
4582
4582
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/require-top-level-describe.md
4583
4583
  */
4584
4584
  'test/require-top-level-describe'?: Linter.RuleEntry<TestRequireTopLevelDescribe>
4585
4585
  /**
4586
- * Enforce valid describe callback
4586
+ * enforce valid describe callback
4587
4587
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/valid-describe-callback.md
4588
4588
  */
4589
4589
  'test/valid-describe-callback'?: Linter.RuleEntry<[]>
4590
4590
  /**
4591
- * Enforce valid `expect()` usage
4591
+ * enforce valid `expect()` usage
4592
4592
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/valid-expect.md
4593
4593
  */
4594
4594
  'test/valid-expect'?: Linter.RuleEntry<TestValidExpect>
4595
4595
  /**
4596
- * Enforce valid titles
4596
+ * enforce valid titles
4597
4597
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/valid-title.md
4598
4598
  */
4599
4599
  'test/valid-title'?: Linter.RuleEntry<TestValidTitle>
package/dist/index.d.ts CHANGED
@@ -4332,103 +4332,103 @@ interface RuleOptions {
4332
4332
  */
4333
4333
  'template-tag-spacing'?: Linter.RuleEntry<TemplateTagSpacing>
4334
4334
  /**
4335
- * forbidden .spec test file pattern
4335
+ * require .spec test file pattern
4336
4336
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/consistent-test-filename.md
4337
4337
  */
4338
4338
  'test/consistent-test-filename'?: Linter.RuleEntry<TestConsistentTestFilename>
4339
4339
  /**
4340
- * Prefer test or it but not both
4340
+ * enforce using test or it but not both
4341
4341
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/consistent-test-it.md
4342
4342
  */
4343
4343
  'test/consistent-test-it'?: Linter.RuleEntry<TestConsistentTestIt>
4344
4344
  /**
4345
- * Enforce having expectation in test body
4345
+ * enforce having expectation in test body
4346
4346
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/expect-expect.md
4347
4347
  */
4348
4348
  'test/expect-expect'?: Linter.RuleEntry<TestExpectExpect>
4349
4349
  /**
4350
- * Enforce a maximum number of expect per test
4350
+ * enforce a maximum number of expect per test
4351
4351
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/max-expects.md
4352
4352
  */
4353
4353
  'test/max-expects'?: Linter.RuleEntry<TestMaxExpects>
4354
4354
  /**
4355
- * Nested describe block should be less than set max value or default value
4355
+ * require describe block to be less than set max value or default value
4356
4356
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/max-nested-describe.md
4357
4357
  */
4358
4358
  'test/max-nested-describe'?: Linter.RuleEntry<TestMaxNestedDescribe>
4359
4359
  /**
4360
- * Disallow alias methods
4360
+ * disallow alias methods
4361
4361
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-alias-methods.md
4362
4362
  */
4363
4363
  'test/no-alias-methods'?: Linter.RuleEntry<[]>
4364
4364
  /**
4365
- * Disallow commented out tests
4365
+ * disallow commented out tests
4366
4366
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-commented-out-tests.md
4367
4367
  */
4368
4368
  'test/no-commented-out-tests'?: Linter.RuleEntry<[]>
4369
4369
  /**
4370
- * Disallow conditional expects
4370
+ * disallow conditional expects
4371
4371
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-conditional-expect.md
4372
4372
  */
4373
4373
  'test/no-conditional-expect'?: Linter.RuleEntry<[]>
4374
4374
  /**
4375
- * Disallow conditional tests
4375
+ * disallow conditional tests
4376
4376
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-conditional-in-test.md
4377
4377
  */
4378
4378
  'test/no-conditional-in-test'?: Linter.RuleEntry<[]>
4379
4379
  /**
4380
- * Disallow conditional tests
4380
+ * disallow conditional tests
4381
4381
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-conditional-tests.md
4382
4382
  */
4383
4383
  'test/no-conditional-tests'?: Linter.RuleEntry<[]>
4384
4384
  /**
4385
- * Disallow disabled tests
4385
+ * disallow disabled tests
4386
4386
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-disabled-tests.md
4387
4387
  */
4388
4388
  'test/no-disabled-tests'?: Linter.RuleEntry<[]>
4389
4389
  /**
4390
- * Disallow using a callback in asynchronous tests and hooks
4390
+ * disallow using a callback in asynchronous tests and hooks
4391
4391
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-done-callback.md
4392
4392
  * @deprecated
4393
4393
  */
4394
4394
  'test/no-done-callback'?: Linter.RuleEntry<[]>
4395
4395
  /**
4396
- * Disallow duplicate hooks and teardown hooks
4396
+ * disallow duplicate hooks and teardown hooks
4397
4397
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-duplicate-hooks.md
4398
4398
  */
4399
4399
  'test/no-duplicate-hooks'?: Linter.RuleEntry<[]>
4400
4400
  /**
4401
- * Disallow focused tests
4401
+ * disallow focused tests
4402
4402
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-focused-tests.md
4403
4403
  */
4404
4404
  'test/no-focused-tests'?: Linter.RuleEntry<[]>
4405
4405
  /**
4406
- * Disallow setup and teardown hooks
4406
+ * disallow setup and teardown hooks
4407
4407
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-hooks.md
4408
4408
  */
4409
4409
  'test/no-hooks'?: Linter.RuleEntry<TestNoHooks>
4410
4410
  /**
4411
- * Disallow identical titles
4411
+ * disallow identical titles
4412
4412
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-identical-title.md
4413
4413
  */
4414
4414
  'test/no-identical-title'?: Linter.RuleEntry<[]>
4415
4415
  /**
4416
- * Disallow importing `node:test`
4416
+ * disallow importing `node:test`
4417
4417
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-import-node-test.md
4418
4418
  */
4419
4419
  'test/no-import-node-test'?: Linter.RuleEntry<[]>
4420
4420
  /**
4421
- * Disallow string interpolation in snapshots
4421
+ * disallow string interpolation in snapshots
4422
4422
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-interpolation-in-snapshots.md
4423
4423
  */
4424
4424
  'test/no-interpolation-in-snapshots'?: Linter.RuleEntry<[]>
4425
4425
  /**
4426
- * Disallow large snapshots
4426
+ * disallow large snapshots
4427
4427
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-large-snapshots.md
4428
4428
  */
4429
4429
  'test/no-large-snapshots'?: Linter.RuleEntry<TestNoLargeSnapshots>
4430
4430
  /**
4431
- * Disallow importing from __mocks__ directory
4431
+ * disallow importing from __mocks__ directory
4432
4432
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-mocks-import.md
4433
4433
  */
4434
4434
  'test/no-mocks-import'?: Linter.RuleEntry<[]>
@@ -4438,162 +4438,162 @@ interface RuleOptions {
4438
4438
  */
4439
4439
  'test/no-only-tests'?: Linter.RuleEntry<TestNoOnlyTests>
4440
4440
  /**
4441
- * Disallow the use of certain matchers
4441
+ * disallow the use of certain matchers
4442
4442
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-restricted-matchers.md
4443
4443
  */
4444
4444
  'test/no-restricted-matchers'?: Linter.RuleEntry<TestNoRestrictedMatchers>
4445
4445
  /**
4446
- * Disallow specific `vi.` methods
4446
+ * disallow specific `vi.` methods
4447
4447
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-restricted-vi-methods.md
4448
4448
  */
4449
4449
  'test/no-restricted-vi-methods'?: Linter.RuleEntry<TestNoRestrictedViMethods>
4450
4450
  /**
4451
- * Disallow using `expect` outside of `it` or `test` blocks
4451
+ * disallow using `expect` outside of `it` or `test` blocks
4452
4452
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-standalone-expect.md
4453
4453
  */
4454
4454
  'test/no-standalone-expect'?: Linter.RuleEntry<TestNoStandaloneExpect>
4455
4455
  /**
4456
- * Disallow using `test` as a prefix
4456
+ * disallow using `test` as a prefix
4457
4457
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-test-prefixes.md
4458
4458
  */
4459
4459
  'test/no-test-prefixes'?: Linter.RuleEntry<[]>
4460
4460
  /**
4461
- * Disallow return statements in tests
4461
+ * disallow return statements in tests
4462
4462
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-test-return-statement.md
4463
4463
  */
4464
4464
  'test/no-test-return-statement'?: Linter.RuleEntry<[]>
4465
4465
  /**
4466
- * Suggest using `toBeCalledWith()` or `toHaveBeenCalledWith()`
4466
+ * enforce using `toBeCalledWith()` or `toHaveBeenCalledWith()`
4467
4467
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-called-with.md
4468
4468
  */
4469
4469
  'test/prefer-called-with'?: Linter.RuleEntry<[]>
4470
4470
  /**
4471
- * Suggest using the built-in comparison matchers
4471
+ * enforce using the built-in comparison matchers
4472
4472
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-comparison-matcher.md
4473
4473
  */
4474
4474
  'test/prefer-comparison-matcher'?: Linter.RuleEntry<[]>
4475
4475
  /**
4476
- * Prefer `each` rather than manual loops
4476
+ * enforce using `each` rather than manual loops
4477
4477
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-each.md
4478
4478
  */
4479
4479
  'test/prefer-each'?: Linter.RuleEntry<[]>
4480
4480
  /**
4481
- * Suggest using the built-in quality matchers
4481
+ * enforce using the built-in quality matchers
4482
4482
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-equality-matcher.md
4483
4483
  */
4484
4484
  'test/prefer-equality-matcher'?: Linter.RuleEntry<[]>
4485
4485
  /**
4486
- * Suggest using expect assertions instead of callbacks
4486
+ * enforce using expect assertions instead of callbacks
4487
4487
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-expect-assertions.md
4488
4488
  */
4489
4489
  'test/prefer-expect-assertions'?: Linter.RuleEntry<TestPreferExpectAssertions>
4490
4490
  /**
4491
- * Suggest using `expect().resolves` over `expect(await ...)` syntax
4491
+ * enforce using `expect().resolves` over `expect(await ...)` syntax
4492
4492
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-expect-resolves.md
4493
4493
  */
4494
4494
  'test/prefer-expect-resolves'?: Linter.RuleEntry<[]>
4495
4495
  /**
4496
- * Prefer having hooks in consistent order
4496
+ * enforce having hooks in consistent order
4497
4497
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-hooks-in-order.md
4498
4498
  */
4499
4499
  'test/prefer-hooks-in-order'?: Linter.RuleEntry<[]>
4500
4500
  /**
4501
- * Suggest having hooks before any test cases
4501
+ * enforce having hooks before any test cases
4502
4502
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-hooks-on-top.md
4503
4503
  */
4504
4504
  'test/prefer-hooks-on-top'?: Linter.RuleEntry<[]>
4505
4505
  /**
4506
- * Enforce lowercase titles
4506
+ * enforce lowercase titles
4507
4507
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-lowercase-title.md
4508
4508
  */
4509
4509
  'test/prefer-lowercase-title'?: Linter.RuleEntry<TestPreferLowercaseTitle>
4510
4510
  /**
4511
- * Prefer mock resolved/rejected shorthands for promises
4511
+ * enforce mock resolved/rejected shorthands for promises
4512
4512
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-mock-promise-shorthand.md
4513
4513
  */
4514
4514
  'test/prefer-mock-promise-shorthand'?: Linter.RuleEntry<[]>
4515
4515
  /**
4516
- * Prefer including a hint with external snapshots
4516
+ * enforce including a hint with external snapshots
4517
4517
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-snapshot-hint.md
4518
4518
  */
4519
4519
  'test/prefer-snapshot-hint'?: Linter.RuleEntry<TestPreferSnapshotHint>
4520
4520
  /**
4521
- * Suggest using `vi.spyOn`
4521
+ * enforce using `vi.spyOn`
4522
4522
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-spy-on.md
4523
4523
  */
4524
4524
  'test/prefer-spy-on'?: Linter.RuleEntry<[]>
4525
4525
  /**
4526
- * Prefer strict equal over equal
4526
+ * enforce strict equal over equal
4527
4527
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-strict-equal.md
4528
4528
  */
4529
4529
  'test/prefer-strict-equal'?: Linter.RuleEntry<[]>
4530
4530
  /**
4531
- * Suggest using toBe()
4531
+ * enforce using toBe()
4532
4532
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-be.md
4533
4533
  */
4534
4534
  'test/prefer-to-be'?: Linter.RuleEntry<[]>
4535
4535
  /**
4536
- * Suggest using toBeFalsy()
4536
+ * enforce using toBeFalsy()
4537
4537
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-be-falsy.md
4538
4538
  */
4539
4539
  'test/prefer-to-be-falsy'?: Linter.RuleEntry<[]>
4540
4540
  /**
4541
- * Prefer toBeObject()
4541
+ * enforce using toBeObject()
4542
4542
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-be-object.md
4543
4543
  */
4544
4544
  'test/prefer-to-be-object'?: Linter.RuleEntry<[]>
4545
4545
  /**
4546
- * Suggest using `toBeTruthy`
4546
+ * enforce using `toBeTruthy`
4547
4547
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-be-truthy.md
4548
4548
  */
4549
4549
  'test/prefer-to-be-truthy'?: Linter.RuleEntry<[]>
4550
4550
  /**
4551
- * Prefer using toContain()
4551
+ * enforce using toContain()
4552
4552
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-contain.md
4553
4553
  */
4554
4554
  'test/prefer-to-contain'?: Linter.RuleEntry<[]>
4555
4555
  /**
4556
- * Suggest using toHaveLength()
4556
+ * enforce using toHaveLength()
4557
4557
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-have-length.md
4558
4558
  */
4559
4559
  'test/prefer-to-have-length'?: Linter.RuleEntry<[]>
4560
4560
  /**
4561
- * Suggest using `test.todo`
4561
+ * enforce using `test.todo`
4562
4562
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-todo.md
4563
4563
  */
4564
4564
  'test/prefer-todo'?: Linter.RuleEntry<[]>
4565
4565
  /**
4566
- * Require setup and teardown to be within a hook
4566
+ * require setup and teardown to be within a hook
4567
4567
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/require-hook.md
4568
4568
  */
4569
4569
  'test/require-hook'?: Linter.RuleEntry<TestRequireHook>
4570
4570
  /**
4571
- * Require local Test Context for concurrent snapshot tests
4571
+ * require local Test Context for concurrent snapshot tests
4572
4572
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/require-local-test-context-for-concurrent-snapshots.md
4573
4573
  */
4574
4574
  'test/require-local-test-context-for-concurrent-snapshots'?: Linter.RuleEntry<[]>
4575
4575
  /**
4576
- * Require toThrow() to be called with an error message
4576
+ * require toThrow() to be called with an error message
4577
4577
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/require-to-throw-message.md
4578
4578
  */
4579
4579
  'test/require-to-throw-message'?: Linter.RuleEntry<[]>
4580
4580
  /**
4581
- * Enforce that all tests are in a top-level describe
4581
+ * enforce that all tests are in a top-level describe
4582
4582
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/require-top-level-describe.md
4583
4583
  */
4584
4584
  'test/require-top-level-describe'?: Linter.RuleEntry<TestRequireTopLevelDescribe>
4585
4585
  /**
4586
- * Enforce valid describe callback
4586
+ * enforce valid describe callback
4587
4587
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/valid-describe-callback.md
4588
4588
  */
4589
4589
  'test/valid-describe-callback'?: Linter.RuleEntry<[]>
4590
4590
  /**
4591
- * Enforce valid `expect()` usage
4591
+ * enforce valid `expect()` usage
4592
4592
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/valid-expect.md
4593
4593
  */
4594
4594
  'test/valid-expect'?: Linter.RuleEntry<TestValidExpect>
4595
4595
  /**
4596
- * Enforce valid titles
4596
+ * enforce valid titles
4597
4597
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/valid-title.md
4598
4598
  */
4599
4599
  'test/valid-title'?: Linter.RuleEntry<TestValidTitle>
package/dist/index.js CHANGED
@@ -353,7 +353,13 @@ async function javascript(options = {}) {
353
353
  "unused-imports/no-unused-imports": isInEditor ? "off" : "error",
354
354
  "unused-imports/no-unused-vars": [
355
355
  "error",
356
- { args: "after-used", argsIgnorePattern: "^_", vars: "all", varsIgnorePattern: "^_" }
356
+ {
357
+ args: "after-used",
358
+ argsIgnorePattern: "^_",
359
+ ignoreRestSiblings: true,
360
+ vars: "all",
361
+ varsIgnorePattern: "^_"
362
+ }
357
363
  ],
358
364
  "use-isnan": ["error", { enforceForIndexOf: true, enforceForSwitchCase: true }],
359
365
  "valid-typeof": ["error", { requireStringLiterals: true }],
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@antfu/eslint-config",
3
3
  "type": "module",
4
- "version": "2.13.0",
4
+ "version": "2.13.2",
5
5
  "packageManager": "pnpm@8.15.6",
6
6
  "description": "Anthony's ESLint config",
7
7
  "author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
@@ -81,8 +81,8 @@
81
81
  "@antfu/install-pkg": "^0.3.2",
82
82
  "@clack/prompts": "^0.7.0",
83
83
  "@stylistic/eslint-plugin": "^1.7.0",
84
- "@typescript-eslint/eslint-plugin": "^7.5.0",
85
- "@typescript-eslint/parser": "^7.5.0",
84
+ "@typescript-eslint/eslint-plugin": "^7.6.0",
85
+ "@typescript-eslint/parser": "^7.6.0",
86
86
  "eslint-config-flat-gitignore": "^0.1.5",
87
87
  "eslint-flat-config-utils": "^0.2.1",
88
88
  "eslint-merge-processors": "^0.1.0",
@@ -92,13 +92,13 @@
92
92
  "eslint-plugin-jsdoc": "^48.2.3",
93
93
  "eslint-plugin-jsonc": "^2.15.0",
94
94
  "eslint-plugin-markdown": "^4.0.1",
95
- "eslint-plugin-n": "^17.0.0",
95
+ "eslint-plugin-n": "^17.1.0",
96
96
  "eslint-plugin-no-only-tests": "^3.1.0",
97
97
  "eslint-plugin-perfectionist": "^2.8.0",
98
98
  "eslint-plugin-toml": "^0.11.0",
99
99
  "eslint-plugin-unicorn": "^52.0.0",
100
100
  "eslint-plugin-unused-imports": "^3.1.0",
101
- "eslint-plugin-vitest": "^0.4.1",
101
+ "eslint-plugin-vitest": "^0.5.0",
102
102
  "eslint-plugin-vue": "^9.24.1",
103
103
  "eslint-plugin-yml": "^1.14.0",
104
104
  "eslint-processor-vue-blocks": "^0.1.1",
@@ -115,11 +115,11 @@
115
115
  "devDependencies": {
116
116
  "@antfu/eslint-plugin-prettier": "^5.0.1-1",
117
117
  "@antfu/ni": "^0.21.12",
118
- "@eslint/config-inspector": "^0.4.1",
118
+ "@eslint/config-inspector": "^0.4.4",
119
119
  "@stylistic/eslint-plugin-migrate": "^1.7.0",
120
120
  "@types/eslint": "^8.56.7",
121
121
  "@types/fs-extra": "^11.0.4",
122
- "@types/node": "^20.12.5",
122
+ "@types/node": "^20.12.6",
123
123
  "@types/prompts": "^2.4.9",
124
124
  "@types/yargs": "^17.0.32",
125
125
  "@unocss/eslint-plugin": "^0.59.0",
@@ -133,7 +133,7 @@
133
133
  "eslint-plugin-react-refresh": "^0.4.6",
134
134
  "eslint-plugin-solid": "^0.13.2",
135
135
  "eslint-plugin-svelte": "2.36.0-next.13",
136
- "eslint-typegen": "^0.2.0",
136
+ "eslint-typegen": "^0.2.2",
137
137
  "esno": "^4.7.0",
138
138
  "execa": "^8.0.1",
139
139
  "fast-glob": "^3.3.2",
@@ -144,12 +144,12 @@
144
144
  "rimraf": "^5.0.5",
145
145
  "simple-git-hooks": "^2.11.1",
146
146
  "svelte": "^4.2.12",
147
- "svelte-eslint-parser": "^0.34.0",
147
+ "svelte-eslint-parser": "^0.34.1",
148
148
  "tsup": "^8.0.2",
149
149
  "typescript": "^5.4.4",
150
150
  "vitest": "^1.4.0",
151
151
  "vue": "^3.4.21",
152
- "@antfu/eslint-config": "2.13.0"
152
+ "@antfu/eslint-config": "2.13.2"
153
153
  },
154
154
  "simple-git-hooks": {
155
155
  "pre-commit": "pnpm lint-staged"