Skip to content

Commit a6092f8

Browse files
committedApr 10, 2024·
fix(module): config duplications on module reload
1 parent d72c09f commit a6092f8

File tree

7 files changed

+190
-190
lines changed

7 files changed

+190
-190
lines changed
 

‎package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
"@nuxt/eslint-plugin": "workspace:*",
2323
"@nuxt/test-utils": "^3.12.0",
2424
"@types/eslint": "^8.56.7",
25-
"@types/node": "^20.12.6",
25+
"@types/node": "^20.12.7",
2626
"bumpp": "^9.4.0",
2727
"eslint": "^9.0.0",
28-
"typescript": "^5.4.4",
28+
"typescript": "^5.4.5",
2929
"vitest": "^1.4.0",
3030
"vue": "^3.4.21"
3131
}

‎packages-legacy/nuxt2-eslint-config-typescript/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
"eslint": "^8.57.0"
2020
},
2121
"devDependencies": {
22-
"typescript": "^5.4.4"
22+
"typescript": "^5.4.5"
2323
}
2424
}

‎packages-legacy/nuxt2-eslint-config/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"dependencies": {
1111
"eslint-config-standard": "^17.1.0",
1212
"eslint-plugin-import": "^2.29.1",
13-
"eslint-plugin-n": "^17.1.0",
13+
"eslint-plugin-n": "^17.2.0",
1414
"eslint-plugin-promise": "^6.1.1",
1515
"eslint-plugin-unicorn": "^52.0.0",
1616
"eslint-plugin-vue": "^9.24.1",

‎packages/eslint-config/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"@typescript-eslint/eslint-plugin": "^7.6.0",
5959
"@typescript-eslint/parser": "^7.6.0",
6060
"eslint-config-flat-gitignore": "^0.1.5",
61-
"eslint-flat-config-utils": "^0.2.1",
61+
"eslint-flat-config-utils": "^0.2.2",
6262
"eslint-plugin-import-x": "^0.5.0",
6363
"eslint-plugin-jsdoc": "^48.2.3",
6464
"eslint-plugin-unicorn": "^52.0.0",
@@ -71,6 +71,6 @@
7171
"devDependencies": {
7272
"@types/eslint": "^8.56.7",
7373
"eslint": "^9.0.0",
74-
"typescript": "^5.4.4"
74+
"typescript": "^5.4.5"
7575
}
7676
}

‎packages/module/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@
4848
}
4949
},
5050
"dependencies": {
51-
"@eslint/config-inspector": "^0.4.4",
51+
"@eslint/config-inspector": "^0.4.5",
5252
"@nuxt/devtools-kit": "^1.1.5",
5353
"@nuxt/eslint-config": "workspace:*",
5454
"@nuxt/eslint-plugin": "workspace:*",
5555
"@nuxt/kit": "^3.11.2",
5656
"chokidar": "^3.6.0",
57-
"eslint-flat-config-utils": "^0.2.1",
58-
"eslint-typegen": "^0.2.1",
57+
"eslint-flat-config-utils": "^0.2.2",
58+
"eslint-typegen": "^0.2.2",
5959
"find-up": "^7.0.0",
6060
"get-port-please": "^3.1.2",
6161
"mlly": "^1.6.1",

‎packages/module/src/modules/config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ async function generateESLintConfig(options: ModuleOptions, nuxt: Nuxt, addons:
182182
`)`,
183183
'',
184184
'export function withNuxt(...customs) {',
185-
' return configs.append(...customs).onResolved(configs => typegen(configs, { dtsPath: new URL("./eslint-typegen.d.ts", import.meta.url) }))',
185+
' return configs.clone().append(...customs).onResolved(configs => typegen(configs, { dtsPath: new URL("./eslint-typegen.d.ts", import.meta.url) }))',
186186
'}',
187187
'',
188188
'export default withNuxt',

‎pnpm-lock.yaml

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

0 commit comments

Comments
 (0)
Please sign in to comment.