Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 23ffea3

Browse files
authored
chore: upgrade all minor/dev deps + remove prettier (#789)
1 parent 5137b3c commit 23ffea3

File tree

11 files changed

+3740
-4875
lines changed

11 files changed

+3740
-4875
lines changed

.eslintrc.js

+3-13
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,13 @@ module.exports = {
66
node: true,
77
},
88
rules: {
9-
'prettier/prettier': [
10-
1,
11-
{
12-
semi: false,
13-
singleQuote: true,
14-
trailingComma: 'es5',
15-
arrowParens: 'avoid',
16-
},
17-
],
9+
'@typescript-eslint/no-explicit-any': 'off',
1810
'@typescript-eslint/no-inferrable-types': 1,
19-
'@typescript-eslint/explicit-module-boundary-types': 0,
20-
'@typescript-eslint/explicit-function-return-type': 0,
11+
'@typescript-eslint/explicit-module-boundary-types': 'off',
12+
'@typescript-eslint/explicit-function-return-type': 'off',
2113
},
2214
extends: [
2315
'plugin:promise/recommended',
2416
'plugin:@typescript-eslint/recommended',
25-
'plugin:prettier/recommended',
26-
'prettier',
2717
],
2818
}

.github/workflows/ci.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- run: corepack enable
1818
- uses: actions/setup-node@v4
1919
with:
20-
node-version: 18
20+
node-version: 20
2121
cache: "yarn"
2222

2323
- name: Install dependencies
@@ -43,7 +43,7 @@ jobs:
4343
- run: corepack enable
4444
- uses: actions/setup-node@v4
4545
with:
46-
node-version: 18
46+
node-version: 20
4747
cache: "yarn"
4848

4949
- name: Install dependencies
@@ -70,7 +70,7 @@ jobs:
7070
- run: corepack enable
7171
- uses: actions/setup-node@v4
7272
with:
73-
node-version: 18
73+
node-version: 20
7474
cache: "yarn"
7575

7676
- name: Install dependencies

example/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
"vue-content-placeholders": "^0.2.1"
77
},
88
"devDependencies": {
9-
"@nuxt/types": "^2.17.1",
10-
"@types/node-fetch": "^2.6.4",
11-
"nuxt": "^2.17.1"
9+
"@nuxt/types": "^2.17.3",
10+
"@types/node-fetch": "^2.6.11",
11+
"nuxt": "^2.17.3"
1212
},
1313
"scripts": {
1414
"dev": "nuxt",

lint-staged.config.js

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
11
module.exports = {
2-
'*.js': ['yarn lint:eslint', 'yarn lint:prettier'],
3-
'*.ts': ['yarn lint:eslint', 'yarn lint:prettier'],
4-
'{!(package)*.json,*.code-snippets,.*rc}': [
5-
'yarn lint:prettier --parser json',
6-
],
7-
'package.json': ['yarn lint:prettier'],
2+
'*.{js,ts,json}': ['yarn lint:eslint'],
83
}

package.json

+27-36
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,7 @@
4242
"fixture:prod": "yarn clean:fixture && cross-env CMD=build yarn nuxt-run && cross-env CMD=start yarn nuxt-run",
4343
"lint": "run-s lint:all:*",
4444
"lint:all:eslint": "yarn lint:eslint --ext .js,.mjs,.ts,.vue .",
45-
"lint:all:prettier": "yarn lint:prettier \"**/*.{js,mjs,json,ts,vue,md}\"",
4645
"lint:eslint": "eslint --fix",
47-
"lint:prettier": "prettier --write --loglevel warn",
4846
"now-build": "NOW_BUILD=true yarn fixture:generate:export",
4947
"nuxt-run": "cross-env-shell \"yarn nuxt $CMD test/fixture\"",
5048
"prepare": "yarn build",
@@ -59,51 +57,47 @@
5957
"watch": "yarn build -w"
6058
},
6159
"dependencies": {
62-
"defu": "^6.1.2",
60+
"defu": "^6.1.4",
6361
"estree-walker": "^2.0.2",
6462
"fs-extra": "^9.1.0",
65-
"magic-string": "^0.30.1",
66-
"pathe": "^1.1.1",
67-
"ufo": "^1.1.2"
63+
"magic-string": "^0.30.9",
64+
"pathe": "^1.1.2",
65+
"ufo": "^1.5.3"
6866
},
6967
"devDependencies": {
70-
"@babel/traverse": "^7.22.8",
71-
"@babel/types": "^7.22.5",
68+
"@babel/traverse": "^7.24.1",
69+
"@babel/types": "^7.24.0",
7270
"@nuxt/test-utils": "^0.2.2",
73-
"@nuxt/types": "^2.17.1",
74-
"@nuxt/typescript-build": "^3.0.1",
71+
"@nuxt/types": "^2.17.3",
72+
"@nuxt/typescript-build": "^3.0.2",
7573
"@nuxtjs/module-test-utils": "^1.6.3",
7674
"@nuxtjs/pwa": "^3.3.5",
77-
"@release-it/conventional-changelog": "^5.1.1",
78-
"@types/fs-extra": "^9.0.13",
79-
"@types/node": "^16.18.38",
80-
"@types/normalize-path": "^3.0.0",
81-
"@typescript-eslint/eslint-plugin": "^5.62.0",
82-
"@typescript-eslint/parser": "^5.62.0",
83-
"c8": "^7.14.0",
75+
"@release-it/conventional-changelog": "^8.0.1",
76+
"@types/fs-extra": "^11.0.4",
77+
"@types/node": "^20.12.7",
78+
"@types/normalize-path": "^3.0.2",
79+
"@typescript-eslint/eslint-plugin": "^7.6.0",
80+
"@typescript-eslint/parser": "^7.6.0",
8481
"codecov": "^3.8.3",
85-
"core-js": "3.31.1",
82+
"core-js": "3.36.1",
8683
"cross-env": "^7.0.3",
87-
"eslint": "^8.45.0",
88-
"eslint-config-prettier": "^8.8.0",
89-
"eslint-plugin-prettier": "^4.2.1",
84+
"eslint": "^8.57.0",
9085
"eslint-plugin-promise": "^6.1.1",
91-
"happy-dom": "^10.3.2",
86+
"happy-dom": "^14.7.1",
9287
"http-server": "^14.1.1",
93-
"lint-staged": "^13.2.3",
88+
"lint-staged": "^15.2.2",
9489
"npm-run-all": "^4.1.5",
95-
"nuxt": "^2.17.1",
96-
"prettier": "^2.8.8",
97-
"release-it": "16.1.0",
98-
"rimraf": "^5.0.1",
90+
"nuxt": "^2.17.3",
91+
"release-it": "17.2.0",
92+
"rimraf": "^5.0.5",
9993
"siroc": "0.16.0",
100-
"start-server-and-test": "^2.0.0",
101-
"testcafe": "2.4.0",
94+
"start-server-and-test": "^2.0.3",
95+
"testcafe": "3.5.0",
10296
"ts-loader": "^8.4.0",
103-
"tsd": "^0.28.1",
104-
"typescript": "5.1.6",
105-
"vite": "^4.4.4",
106-
"vitest": "^0.33.0",
97+
"tsd": "^0.31.0",
98+
"typescript": "5.4.5",
99+
"vite": "^5.2.8",
100+
"vitest": "^1.5.0",
107101
"yorkie": "^2.0.0"
108102
},
109103
"peerDependencies": {
@@ -113,9 +107,6 @@
113107
"engines": {
114108
"node": ">=v14.13.0"
115109
},
116-
"volta": {
117-
"node": "16.16.0"
118-
},
119110
"gitHooks": {
120111
"pre-commit": "lint-staged"
121112
},

src/runtime/composables/fetch.ts

+1
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ async function serverPrefetch(vm: AugmentedComponentInstance) {
224224
const data = Object.fromEntries(
225225
Object.entries((vm as any)?._setupProxy || (vm as any)?._setupState)
226226
.filter(
227+
// eslint-disable-next-line
227228
([_key, val]) =>
228229
!(
229230
(val && typeof val === 'object' && '_compiled' in val) ||

src/runtime/composables/wrappers.ts

+1
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ export const useRoute = wrapProperty('$route')
8181
})
8282
```
8383
*/
84+
// eslint-disable-next-line
8485
export const useStore = <S>(key?: InjectionKey<S>): Store<S> => {
8586
const vm = getCurrentInstance()
8687
if (!vm) throw new Error('This must be called within a setup function.')
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
// Vitest Snapshot v1
1+
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22

33
exports[`ssrRef babel plugin > works 1`] = `
44
"const ref = ref(1);
5-
const ref2 = ssrRef(2, \\"ref2-BAW7YFDj4E+Qxr+ujqEADg==\\");
5+
const ref2 = ssrRef(2, "ref2-BAW7YFDj4E+Qxr+ujqEADg==");
66
const ref3 = ssrRef(3, 'custom-key');
7-
const ref4 = ssrRef(() => 4, \\"ref4-h6IKM1doqCRBR49lWv2V/g==\\");
8-
const async1 = useAsync(() => null, \\"async1-nk1uJ/q39HMoKEMFH33Ryg==\\");
7+
const ref4 = ssrRef(() => 4, "ref4-h6IKM1doqCRBR49lWv2V/g==");
8+
const async1 = useAsync(() => null, "async1-nk1uJ/q39HMoKEMFH33Ryg==");
99
const async2 = useAsync(() => null, 'key');
1010
const stat = useStatic(() => 4, '2', 'post');
11-
const stat2 = useStatic(() => 4, '2', \\"stat2-55c3e298c9cd3d8ea2665241b6061629\\");
12-
const stat3 = useStatic(() => 4, \\"stat3-dc9ff012f4c054c3f893c0ea8f3cddc5\\");"
11+
const stat2 = useStatic(() => 4, '2', "stat2-55c3e298c9cd3d8ea2665241b6061629");
12+
const stat3 = useStatic(() => 4, "stat3-dc9ff012f4c054c3f893c0ea8f3cddc5");"
1313
`;

test/unit/__snapshots__/ssr-ref.spec.ts.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Vitest Snapshot v1
1+
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22

33
exports[`ssrRef reactivity > ssrRefs react to change in state 1`] = `
44
{

vite.config.ts vitest.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { fileURLToPath } from 'url'
2-
import { defineConfig } from 'vite'
2+
import { defineConfig } from 'vitest/config'
33

44
export default defineConfig({
55
resolve: {

0 commit comments

Comments
 (0)