Skip to content

Commit 667c448

Browse files
committedNov 26, 2024
feat: upgrade perfectionist to v4
1 parent 750ea8e commit 667c448

File tree

4 files changed

+408
-518
lines changed

4 files changed

+408
-518
lines changed
 

‎package.json

+13-13
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@antfu/eslint-config",
33
"type": "module",
44
"version": "3.9.2",
5-
"packageManager": "pnpm@9.13.2",
5+
"packageManager": "pnpm@9.14.2",
66
"description": "Anthony's ESLint config",
77
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
88
"license": "MIT",
@@ -97,27 +97,27 @@
9797
},
9898
"dependencies": {
9999
"@antfu/install-pkg": "^0.4.1",
100-
"@clack/prompts": "^0.8.1",
100+
"@clack/prompts": "^0.8.2",
101101
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
102102
"@eslint/markdown": "^6.2.1",
103103
"@stylistic/eslint-plugin": "^2.11.0",
104-
"@typescript-eslint/eslint-plugin": "^8.15.0",
105-
"@typescript-eslint/parser": "^8.15.0",
104+
"@typescript-eslint/eslint-plugin": "^8.16.0",
105+
"@typescript-eslint/parser": "^8.16.0",
106106
"@vitest/eslint-plugin": "^1.1.10",
107107
"eslint-config-flat-gitignore": "^0.3.0",
108108
"eslint-flat-config-utils": "^0.4.0",
109109
"eslint-merge-processors": "^0.1.0",
110110
"eslint-plugin-antfu": "^2.7.0",
111111
"eslint-plugin-command": "^0.2.6",
112-
"eslint-plugin-import-x": "^4.4.2",
112+
"eslint-plugin-import-x": "^4.4.3",
113113
"eslint-plugin-jsdoc": "^50.5.0",
114114
"eslint-plugin-jsonc": "^2.18.2",
115-
"eslint-plugin-n": "^17.13.2",
115+
"eslint-plugin-n": "^17.14.0",
116116
"eslint-plugin-no-only-tests": "^3.3.0",
117-
"eslint-plugin-perfectionist": "^3.9.1",
117+
"eslint-plugin-perfectionist": "^4.1.2",
118118
"eslint-plugin-regexp": "^2.7.0",
119119
"eslint-plugin-toml": "^0.11.1",
120-
"eslint-plugin-unicorn": "^56.0.0",
120+
"eslint-plugin-unicorn": "^56.0.1",
121121
"eslint-plugin-unused-imports": "^4.1.4",
122122
"eslint-plugin-vue": "^9.31.0",
123123
"eslint-plugin-yml": "^1.15.0",
@@ -135,12 +135,12 @@
135135
"devDependencies": {
136136
"@antfu/eslint-config": "workspace:*",
137137
"@antfu/ni": "^0.23.1",
138-
"@eslint-react/eslint-plugin": "^1.16.1",
138+
"@eslint-react/eslint-plugin": "^1.17.1",
139139
"@eslint/config-inspector": "^0.5.6",
140140
"@prettier/plugin-xml": "^3.4.1",
141141
"@stylistic/eslint-plugin-migrate": "^2.11.0",
142142
"@types/fs-extra": "^11.0.4",
143-
"@types/node": "^22.9.0",
143+
"@types/node": "^22.10.0",
144144
"@types/prompts": "^2.4.9",
145145
"@types/yargs": "^17.0.33",
146146
"@unocss/eslint-plugin": "^0.64.1",
@@ -164,17 +164,17 @@
164164
"prettier-plugin-slidev": "^1.0.5",
165165
"rimraf": "^6.0.1",
166166
"simple-git-hooks": "^2.11.1",
167-
"svelte": "^5.2.3",
167+
"svelte": "^5.2.8",
168168
"svelte-eslint-parser": "^0.43.0",
169169
"tsup": "^8.3.5",
170170
"tsx": "^4.19.2",
171-
"typescript": "^5.6.3",
171+
"typescript": "^5.7.2",
172172
"vitest": "^2.1.5",
173173
"vue": "^3.5.13"
174174
},
175175
"resolutions": {
176176
"@eslint-community/eslint-utils": "^4.4.1",
177-
"@typescript-eslint/utils": "^8.15.0",
177+
"@typescript-eslint/utils": "^8.16.0",
178178
"eslint": "^9.15.0",
179179
"tsx": "^4.19.2"
180180
},

‎pnpm-lock.yaml

+386-503
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎scripts/typegen.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import fs from 'node:fs/promises'
22

3-
import { builtinRules } from 'eslint/use-at-your-own-risk'
3+
import JS from '@eslint/js'
44
import { flatConfigsToRulesDTS } from 'eslint-typegen/core'
55

66
import { astro, combine, comments, formatters, imports, javascript, jsdoc, jsonc, jsx, markdown, node, perfectionist, react, regexp, solid, sortPackageJson, stylistic, svelte, test, toml, typescript, unicorn, unocss, vue, yaml } from '../src'
@@ -9,7 +9,7 @@ const configs = await combine(
99
{
1010
plugins: {
1111
'': {
12-
rules: Object.fromEntries(builtinRules.entries()),
12+
rules: JS.configs.all,
1313
},
1414
},
1515
},

‎vitest.config.ts

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { defineConfig } from 'vitest/config'
2+
3+
export default defineConfig({
4+
test: {
5+
testTimeout: 60_000,
6+
},
7+
})

0 commit comments

Comments
 (0)
Please sign in to comment.