Skip to content

Commit 1a0529c

Browse files
committed
chore: use eslint.config.ts
1 parent de2ae2f commit 1a0529c

File tree

4 files changed

+250
-289
lines changed

4 files changed

+250
-289
lines changed

eslint.config.js renamed to eslint.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// @ts-check
1+
// @ts-expect-error missing types
22
import styleMigrate from '@stylistic/eslint-plugin-migrate'
3-
import antfu from './dist/index.js'
3+
import antfu from './src'
44

55
export default antfu(
66
{

package.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@antfu/eslint-config",
33
"type": "module",
44
"version": "2.4.3",
5-
"packageManager": "pnpm@8.11.0",
5+
"packageManager": "pnpm@8.12.0",
66
"description": "Anthony's ESLint config",
77
"author": "Anthony Fu <[email protected]> (https://github.com/antfu/)",
88
"license": "MIT",
@@ -29,7 +29,7 @@
2929
"stub": "tsup --format esm",
3030
"dev": "tsup --format esm,cjs --watch & eslint-flat-config-viewer",
3131
"watch": "tsup --format esm,cjs --watch",
32-
"lint": "pnpm run stub && eslint .",
32+
"lint": "eslint .",
3333
"prepack": "nr build",
3434
"release": "bumpp && pnpm publish",
3535
"test": "vitest",
@@ -84,7 +84,7 @@
8484
"eslint-plugin-perfectionist": "^2.5.0",
8585
"eslint-plugin-unicorn": "^49.0.0",
8686
"eslint-plugin-unused-imports": "^3.0.0",
87-
"eslint-plugin-vitest": "^0.3.10",
87+
"eslint-plugin-vitest": "^0.3.12",
8888
"eslint-plugin-vue": "^9.19.2",
8989
"eslint-plugin-yml": "^1.10.0",
9090
"eslint-processor-vue-blocks": "^0.1.1",
@@ -109,13 +109,14 @@
109109
"@types/prompts": "^2.4.9",
110110
"@types/yargs": "^17.0.32",
111111
"@unocss/eslint-plugin": "^0.58.0",
112-
"bumpp": "^9.2.0",
113-
"eslint": "^8.55.0",
112+
"bumpp": "^9.2.1",
113+
"eslint": "npm:eslint-ts-patch@^8.55.0-1",
114114
"eslint-flat-config-viewer": "^0.1.3",
115115
"eslint-plugin-format": "^0.1.0",
116116
"eslint-plugin-react": "^7.33.2",
117117
"eslint-plugin-react-hooks": "^4.6.0",
118118
"eslint-plugin-react-refresh": "^0.4.5",
119+
"eslint-ts-patch": "^8.55.0-1",
119120
"esno": "^4.0.0",
120121
"execa": "^8.0.1",
121122
"fast-glob": "^3.3.2",
@@ -125,8 +126,8 @@
125126
"simple-git-hooks": "^2.9.0",
126127
"tsup": "^8.0.1",
127128
"typescript": "^5.3.3",
128-
"vitest": "^1.0.2",
129-
"vue": "^3.3.10"
129+
"vitest": "^1.0.4",
130+
"vue": "^3.3.11"
130131
},
131132
"simple-git-hooks": {
132133
"pre-commit": "pnpm lint-staged"

0 commit comments

Comments
 (0)