Skip to content

Commit 2374ed5

Browse files
committed
feat: use @nuxt/eslint
1 parent 6324bc5 commit 2374ed5

File tree

4 files changed

+414
-954
lines changed

4 files changed

+414
-954
lines changed
Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import antfu from '@antfu/eslint-config'
22
import nuxt from './.nuxt/eslint.config.mjs'
33

4-
export default antfu({
5-
unocss: true,
6-
formatters: true,
7-
}, nuxt)
4+
export default nuxt(
5+
antfu({
6+
unocss: true,
7+
formatters: true,
8+
}),
9+
)

nuxt.config.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ export default defineNuxtConfig({
44
modules: [
55
'@vant/nuxt',
66
'@unocss/nuxt',
7-
'nuxt-module-eslint-config',
87
'@nuxtjs/color-mode',
8+
'@nuxt/eslint',
99
],
1010

1111
css: [
@@ -49,4 +49,10 @@ export default defineNuxtConfig({
4949
devtools: { enabled: true },
5050

5151
typescript: { shim: false },
52+
53+
eslint: {
54+
config: {
55+
standalone: false,
56+
},
57+
},
5258
})

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,13 @@
1919
},
2020
"devDependencies": {
2121
"@antfu/eslint-config": "^2.12.2",
22+
"@nuxt/eslint": "^0.3.1",
2223
"@unocss/eslint-plugin": "^0.59.0",
2324
"@unocss/nuxt": "^0.59.0",
2425
"@unocss/preset-rem-to-px": "^0.59.0",
2526
"@vant/nuxt": "^1.0.4",
26-
"eslint": "npm:eslint-ts-patch@^8.57.0-0",
27+
"eslint": "8.57.0",
2728
"eslint-plugin-format": "^0.1.0",
28-
"eslint-ts-patch": "^8.57.0-0",
29-
"nuxt-module-eslint-config": "^0.1.1",
3029
"postcss-mobile-forever": "^4.1.2",
3130
"typescript": "^5.4.4",
3231
"vant": "^4.8.10",

0 commit comments

Comments
 (0)