@antfu/eslint-config 2.25.0 → 2.25.1

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
@@ -377,7 +377,7 @@ Since flat config requires us to explicitly provide the plugin names (instead of
377
377
  | `yaml/*` | `yml/*` | [eslint-plugin-yml](https://github.com/ota-meshi/eslint-plugin-yml) |
378
378
  | `ts/*` | `@typescript-eslint/*` | [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint) |
379
379
  | `style/*` | `@stylistic/*` | [@stylistic/eslint-plugin](https://github.com/eslint-stylistic/eslint-stylistic) |
380
- | `test/*` | `vitest/*` | [eslint-plugin-vitest](https://github.com/veritem/eslint-plugin-vitest) |
380
+ | `test/*` | `vitest/*` | [@vitest/eslint-plugin](https://github.com/vitest-dev/eslint-plugin-vitest) |
381
381
  | `test/*` | `no-only-tests/*` | [eslint-plugin-no-only-tests](https://github.com/levibuzolic/eslint-plugin-no-only-tests) |
382
382
 
383
383
  When you want to override rules, or disable them inline, you need to update to the new prefix:
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.25.0",
51
+ version: "2.25.1",
52
52
  packageManager: "pnpm@9.7.0",
53
53
  description: "Anthony's ESLint config",
54
54
  author: "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
@@ -145,9 +145,10 @@ var package_default = {
145
145
  dependencies: {
146
146
  "@antfu/install-pkg": "^0.3.3",
147
147
  "@clack/prompts": "^0.7.0",
148
- "@stylistic/eslint-plugin": "^2.6.1",
148
+ "@stylistic/eslint-plugin": "^2.6.2",
149
149
  "@typescript-eslint/eslint-plugin": "^8.0.1",
150
150
  "@typescript-eslint/parser": "^8.0.1",
151
+ "@vitest/eslint-plugin": "^1.0.0",
151
152
  "eslint-config-flat-gitignore": "^0.1.8",
152
153
  "eslint-flat-config-utils": "^0.3.0",
153
154
  "eslint-merge-processors": "^0.1.0",
@@ -155,7 +156,7 @@ var package_default = {
155
156
  "eslint-plugin-command": "^0.2.3",
156
157
  "eslint-plugin-eslint-comments": "^3.2.0",
157
158
  "eslint-plugin-import-x": "^3.1.0",
158
- "eslint-plugin-jsdoc": "^48.11.0",
159
+ "eslint-plugin-jsdoc": "^50.0.0",
159
160
  "eslint-plugin-jsonc": "^2.16.0",
160
161
  "eslint-plugin-markdown": "^5.1.0",
161
162
  "eslint-plugin-n": "^17.10.2",
@@ -164,8 +165,7 @@ var package_default = {
164
165
  "eslint-plugin-regexp": "^2.6.0",
165
166
  "eslint-plugin-toml": "^0.11.1",
166
167
  "eslint-plugin-unicorn": "^55.0.0",
167
- "eslint-plugin-unused-imports": "^4.1.2",
168
- "eslint-plugin-vitest": "^0.5.4",
168
+ "eslint-plugin-unused-imports": "^4.1.3",
169
169
  "eslint-plugin-vue": "^9.27.0",
170
170
  "eslint-plugin-yml": "^1.14.0",
171
171
  "eslint-processor-vue-blocks": "^0.1.2",
@@ -181,14 +181,14 @@ var package_default = {
181
181
  },
182
182
  devDependencies: {
183
183
  "@antfu/eslint-config": "workspace:*",
184
- "@antfu/ni": "^0.22.0",
184
+ "@antfu/ni": "^0.22.1",
185
185
  "@eslint-react/eslint-plugin": "^1.9.1",
186
186
  "@eslint/config-inspector": "^0.5.2",
187
187
  "@prettier/plugin-xml": "^3.4.1",
188
- "@stylistic/eslint-plugin-migrate": "^2.6.1",
188
+ "@stylistic/eslint-plugin-migrate": "^2.6.2",
189
189
  "@types/eslint": "^9.6.0",
190
190
  "@types/fs-extra": "^11.0.4",
191
- "@types/node": "^22.1.0",
191
+ "@types/node": "^22.2.0",
192
192
  "@types/prompts": "^2.4.9",
193
193
  "@types/yargs": "^17.0.33",
194
194
  "@unocss/eslint-plugin": "^0.61.9",
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.25.0",
22
+ version: "2.25.1",
23
23
  packageManager: "pnpm@9.7.0",
24
24
  description: "Anthony's ESLint config",
25
25
  author: "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
@@ -116,9 +116,10 @@ var package_default = {
116
116
  dependencies: {
117
117
  "@antfu/install-pkg": "^0.3.3",
118
118
  "@clack/prompts": "^0.7.0",
119
- "@stylistic/eslint-plugin": "^2.6.1",
119
+ "@stylistic/eslint-plugin": "^2.6.2",
120
120
  "@typescript-eslint/eslint-plugin": "^8.0.1",
121
121
  "@typescript-eslint/parser": "^8.0.1",
122
+ "@vitest/eslint-plugin": "^1.0.0",
122
123
  "eslint-config-flat-gitignore": "^0.1.8",
123
124
  "eslint-flat-config-utils": "^0.3.0",
124
125
  "eslint-merge-processors": "^0.1.0",
@@ -126,7 +127,7 @@ var package_default = {
126
127
  "eslint-plugin-command": "^0.2.3",
127
128
  "eslint-plugin-eslint-comments": "^3.2.0",
128
129
  "eslint-plugin-import-x": "^3.1.0",
129
- "eslint-plugin-jsdoc": "^48.11.0",
130
+ "eslint-plugin-jsdoc": "^50.0.0",
130
131
  "eslint-plugin-jsonc": "^2.16.0",
131
132
  "eslint-plugin-markdown": "^5.1.0",
132
133
  "eslint-plugin-n": "^17.10.2",
@@ -135,8 +136,7 @@ var package_default = {
135
136
  "eslint-plugin-regexp": "^2.6.0",
136
137
  "eslint-plugin-toml": "^0.11.1",
137
138
  "eslint-plugin-unicorn": "^55.0.0",
138
- "eslint-plugin-unused-imports": "^4.1.2",
139
- "eslint-plugin-vitest": "^0.5.4",
139
+ "eslint-plugin-unused-imports": "^4.1.3",
140
140
  "eslint-plugin-vue": "^9.27.0",
141
141
  "eslint-plugin-yml": "^1.14.0",
142
142
  "eslint-processor-vue-blocks": "^0.1.2",
@@ -152,14 +152,14 @@ var package_default = {
152
152
  },
153
153
  devDependencies: {
154
154
  "@antfu/eslint-config": "workspace:*",
155
- "@antfu/ni": "^0.22.0",
155
+ "@antfu/ni": "^0.22.1",
156
156
  "@eslint-react/eslint-plugin": "^1.9.1",
157
157
  "@eslint/config-inspector": "^0.5.2",
158
158
  "@prettier/plugin-xml": "^3.4.1",
159
- "@stylistic/eslint-plugin-migrate": "^2.6.1",
159
+ "@stylistic/eslint-plugin-migrate": "^2.6.2",
160
160
  "@types/eslint": "^9.6.0",
161
161
  "@types/fs-extra": "^11.0.4",
162
- "@types/node": "^22.1.0",
162
+ "@types/node": "^22.2.0",
163
163
  "@types/prompts": "^2.4.9",
164
164
  "@types/yargs": "^17.0.33",
165
165
  "@unocss/eslint-plugin": "^0.61.9",
package/dist/index.cjs CHANGED
@@ -1761,7 +1761,7 @@ async function test(options = {}) {
1761
1761
  pluginVitest,
1762
1762
  pluginNoOnlyTests
1763
1763
  ] = await Promise.all([
1764
- interopDefault(import("eslint-plugin-vitest")),
1764
+ interopDefault(import("@vitest/eslint-plugin")),
1765
1765
  // @ts-expect-error missing types
1766
1766
  interopDefault(import("eslint-plugin-no-only-tests"))
1767
1767
  ]);
package/dist/index.d.cts CHANGED
@@ -1044,7 +1044,7 @@ interface RuleOptions {
1044
1044
  'jsdoc/check-tag-names'?: Linter.RuleEntry<JsdocCheckTagNames>
1045
1045
  /**
1046
1046
  * Checks that any `@template` names are actually used in the connected `@typedef` or type alias.
1047
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-template.md#repos-sticky-header
1047
+ * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-template-names.md#repos-sticky-header
1048
1048
  */
1049
1049
  'jsdoc/check-template-names'?: Linter.RuleEntry<[]>
1050
1050
  /**
@@ -1082,6 +1082,11 @@ interface RuleOptions {
1082
1082
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/informative-docs.md#repos-sticky-header
1083
1083
  */
1084
1084
  'jsdoc/informative-docs'?: Linter.RuleEntry<JsdocInformativeDocs>
1085
+ /**
1086
+ * Enforces minimum number of newlines before JSDoc comment blocks
1087
+ * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/lines-before-block.md#repos-sticky-header
1088
+ */
1089
+ 'jsdoc/lines-before-block'?: Linter.RuleEntry<JsdocLinesBeforeBlock>
1085
1090
  /**
1086
1091
  * Enforces a regular expression pattern on descriptions.
1087
1092
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/match-description.md#repos-sticky-header
@@ -4672,6 +4677,11 @@ interface RuleOptions {
4672
4677
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/expect-expect.md
4673
4678
  */
4674
4679
  'test/expect-expect'?: Linter.RuleEntry<TestExpectExpect>
4680
+ /**
4681
+ * Enforce padding around afterAll blocks
4682
+ * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/index.md
4683
+ */
4684
+ 'test/index'?: Linter.RuleEntry<[]>
4675
4685
  /**
4676
4686
  * enforce a maximum number of expect per test
4677
4687
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/max-expects.md
@@ -8466,6 +8476,12 @@ type JsdocInformativeDocs = []|[{
8466
8476
  excludedTags?: string[]
8467
8477
  uselessWords?: string[]
8468
8478
  }]
8479
+ // ----- jsdoc/lines-before-block -----
8480
+ type JsdocLinesBeforeBlock = []|[{
8481
+ excludedTags?: string[]
8482
+ ignoreSameLine?: boolean
8483
+ lines?: number
8484
+ }]
8469
8485
  // ----- jsdoc/match-description -----
8470
8486
  type JsdocMatchDescription = []|[{
8471
8487
  contexts?: (string | {
@@ -12152,7 +12168,8 @@ type TestNoRestrictedViMethods = []|[{
12152
12168
  }]
12153
12169
  // ----- test/no-standalone-expect -----
12154
12170
  type TestNoStandaloneExpect = []|[{
12155
- additionalTestBlockFunctions?: string[]
12171
+ additionaltestblockfunctions?: string[]
12172
+ [k: string]: unknown | undefined
12156
12173
  }]
12157
12174
  // ----- test/prefer-expect-assertions -----
12158
12175
  type TestPreferExpectAssertions = []|[{
package/dist/index.d.ts CHANGED
@@ -1044,7 +1044,7 @@ interface RuleOptions {
1044
1044
  'jsdoc/check-tag-names'?: Linter.RuleEntry<JsdocCheckTagNames>
1045
1045
  /**
1046
1046
  * Checks that any `@template` names are actually used in the connected `@typedef` or type alias.
1047
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-template.md#repos-sticky-header
1047
+ * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-template-names.md#repos-sticky-header
1048
1048
  */
1049
1049
  'jsdoc/check-template-names'?: Linter.RuleEntry<[]>
1050
1050
  /**
@@ -1082,6 +1082,11 @@ interface RuleOptions {
1082
1082
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/informative-docs.md#repos-sticky-header
1083
1083
  */
1084
1084
  'jsdoc/informative-docs'?: Linter.RuleEntry<JsdocInformativeDocs>
1085
+ /**
1086
+ * Enforces minimum number of newlines before JSDoc comment blocks
1087
+ * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/lines-before-block.md#repos-sticky-header
1088
+ */
1089
+ 'jsdoc/lines-before-block'?: Linter.RuleEntry<JsdocLinesBeforeBlock>
1085
1090
  /**
1086
1091
  * Enforces a regular expression pattern on descriptions.
1087
1092
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/match-description.md#repos-sticky-header
@@ -4672,6 +4677,11 @@ interface RuleOptions {
4672
4677
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/expect-expect.md
4673
4678
  */
4674
4679
  'test/expect-expect'?: Linter.RuleEntry<TestExpectExpect>
4680
+ /**
4681
+ * Enforce padding around afterAll blocks
4682
+ * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/index.md
4683
+ */
4684
+ 'test/index'?: Linter.RuleEntry<[]>
4675
4685
  /**
4676
4686
  * enforce a maximum number of expect per test
4677
4687
  * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/max-expects.md
@@ -8466,6 +8476,12 @@ type JsdocInformativeDocs = []|[{
8466
8476
  excludedTags?: string[]
8467
8477
  uselessWords?: string[]
8468
8478
  }]
8479
+ // ----- jsdoc/lines-before-block -----
8480
+ type JsdocLinesBeforeBlock = []|[{
8481
+ excludedTags?: string[]
8482
+ ignoreSameLine?: boolean
8483
+ lines?: number
8484
+ }]
8469
8485
  // ----- jsdoc/match-description -----
8470
8486
  type JsdocMatchDescription = []|[{
8471
8487
  contexts?: (string | {
@@ -12152,7 +12168,8 @@ type TestNoRestrictedViMethods = []|[{
12152
12168
  }]
12153
12169
  // ----- test/no-standalone-expect -----
12154
12170
  type TestNoStandaloneExpect = []|[{
12155
- additionalTestBlockFunctions?: string[]
12171
+ additionaltestblockfunctions?: string[]
12172
+ [k: string]: unknown | undefined
12156
12173
  }]
12157
12174
  // ----- test/prefer-expect-assertions -----
12158
12175
  type TestPreferExpectAssertions = []|[{
package/dist/index.js CHANGED
@@ -1656,7 +1656,7 @@ async function test(options = {}) {
1656
1656
  pluginVitest,
1657
1657
  pluginNoOnlyTests
1658
1658
  ] = await Promise.all([
1659
- interopDefault(import("eslint-plugin-vitest")),
1659
+ interopDefault(import("@vitest/eslint-plugin")),
1660
1660
  // @ts-expect-error missing types
1661
1661
  interopDefault(import("eslint-plugin-no-only-tests"))
1662
1662
  ]);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@antfu/eslint-config",
3
3
  "type": "module",
4
- "version": "2.25.0",
4
+ "version": "2.25.1",
5
5
  "description": "Anthony's ESLint config",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
7
7
  "license": "MIT",
@@ -83,9 +83,10 @@
83
83
  "dependencies": {
84
84
  "@antfu/install-pkg": "^0.3.3",
85
85
  "@clack/prompts": "^0.7.0",
86
- "@stylistic/eslint-plugin": "^2.6.1",
86
+ "@stylistic/eslint-plugin": "^2.6.2",
87
87
  "@typescript-eslint/eslint-plugin": "^8.0.1",
88
88
  "@typescript-eslint/parser": "^8.0.1",
89
+ "@vitest/eslint-plugin": "^1.0.0",
89
90
  "eslint-config-flat-gitignore": "^0.1.8",
90
91
  "eslint-flat-config-utils": "^0.3.0",
91
92
  "eslint-merge-processors": "^0.1.0",
@@ -93,7 +94,7 @@
93
94
  "eslint-plugin-command": "^0.2.3",
94
95
  "eslint-plugin-eslint-comments": "^3.2.0",
95
96
  "eslint-plugin-import-x": "^3.1.0",
96
- "eslint-plugin-jsdoc": "^48.11.0",
97
+ "eslint-plugin-jsdoc": "^50.0.0",
97
98
  "eslint-plugin-jsonc": "^2.16.0",
98
99
  "eslint-plugin-markdown": "^5.1.0",
99
100
  "eslint-plugin-n": "^17.10.2",
@@ -102,8 +103,7 @@
102
103
  "eslint-plugin-regexp": "^2.6.0",
103
104
  "eslint-plugin-toml": "^0.11.1",
104
105
  "eslint-plugin-unicorn": "^55.0.0",
105
- "eslint-plugin-unused-imports": "^4.1.2",
106
- "eslint-plugin-vitest": "^0.5.4",
106
+ "eslint-plugin-unused-imports": "^4.1.3",
107
107
  "eslint-plugin-vue": "^9.27.0",
108
108
  "eslint-plugin-yml": "^1.14.0",
109
109
  "eslint-processor-vue-blocks": "^0.1.2",
@@ -118,14 +118,14 @@
118
118
  "yargs": "^17.7.2"
119
119
  },
120
120
  "devDependencies": {
121
- "@antfu/ni": "^0.22.0",
121
+ "@antfu/ni": "^0.22.1",
122
122
  "@eslint-react/eslint-plugin": "^1.9.1",
123
123
  "@eslint/config-inspector": "^0.5.2",
124
124
  "@prettier/plugin-xml": "^3.4.1",
125
- "@stylistic/eslint-plugin-migrate": "^2.6.1",
125
+ "@stylistic/eslint-plugin-migrate": "^2.6.2",
126
126
  "@types/eslint": "^9.6.0",
127
127
  "@types/fs-extra": "^11.0.4",
128
- "@types/node": "^22.1.0",
128
+ "@types/node": "^22.2.0",
129
129
  "@types/prompts": "^2.4.9",
130
130
  "@types/yargs": "^17.0.33",
131
131
  "@unocss/eslint-plugin": "^0.61.9",
@@ -156,7 +156,7 @@
156
156
  "typescript": "^5.5.4",
157
157
  "vitest": "^2.0.5",
158
158
  "vue": "^3.4.37",
159
- "@antfu/eslint-config": "2.25.0"
159
+ "@antfu/eslint-config": "2.25.1"
160
160
  },
161
161
  "resolutions": {
162
162
  "tsx": "~4.17.0"