Skip to content

Commit

Permalink
Upgrade zimui deps, including Node 22 and ESLint 9
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit74 committed Dec 16, 2024
1 parent 42ef9a2 commit 0f12d36
Show file tree
Hide file tree
Showing 8 changed files with 1,669 additions and 1,547 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:20-alpine AS zimui
FROM node:22-alpine AS zimui

WORKDIR /src
COPY zimui /src
Expand Down
24 changes: 0 additions & 24 deletions zimui/.eslintrc.cjs

This file was deleted.

2 changes: 1 addition & 1 deletion zimui/.node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.x
22.x
31 changes: 31 additions & 0 deletions zimui/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import pluginVue from 'eslint-plugin-vue'
import vueTsEslintConfig from '@vue/eslint-config-typescript'
import pluginVitest from '@vitest/eslint-plugin'
import pluginCypress from 'eslint-plugin-cypress/flat'
import skipFormatting from '@vue/eslint-config-prettier/skip-formatting'

export default [
{
name: 'app/files-to-lint',
files: ['**/*.{ts,mts,tsx,vue}']
},

{
name: 'app/files-to-ignore',
ignores: ['**/dist/**', '**/dist-ssr/**', '**/coverage/**']
},

...pluginVue.configs['flat/essential'],
...vueTsEslintConfig(),

{
...pluginVitest.configs.recommended,
files: ['src/**/__tests__/*']
},

{
...pluginCypress.configs.recommended,
files: ['cypress/e2e/**/*.{cy,spec}.{js,ts,jsx,tsx}', 'cypress/support/**/*.{js,ts,jsx,tsx}']
},
skipFormatting
]
56 changes: 28 additions & 28 deletions zimui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,45 +12,45 @@
"test:e2e": "start-server-and-test preview http://localhost:4173 'cypress run --e2e'",
"test:e2e:dev": "start-server-and-test 'vite dev --port 4173' http://localhost:4173 'cypress open --e2e'",
"build-only": "vite build",
"type-check": "vue-tsc --build --force",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
"type-check": "vue-tsc --build",
"lint": "eslint . --fix",
"format": "prettier --write src/"
},
"dependencies": {
"@fontsource/roboto": "^5.1.0",
"pinia": "^2.1.7",
"pinia": "^2.2.6",
"resize-observer-polyfill": "^1.5.1",
"vite-plugin-vuetify": "^2.0.4",
"vue": "^3.4.29",
"vue-router": "^4.3.3",
"vuetify": "^3.7.2",
"vue": "^3.5.13",
"vue-router": "^4.4.5",
"vuetify": "^3.7.5",
"webp-hero": "^0.0.2"
},
"devDependencies": {
"@mdi/font": "^7.4.47",
"@pinia/testing": "^0.1.5",
"@rushstack/eslint-patch": "^1.8.0",
"@tsconfig/node20": "^20.1.4",
"@pinia/testing": "^0.1.7",
"@tsconfig/node22": "^22.0.0",
"@types/jsdom": "^21.1.7",
"@types/node": "^20.14.5",
"@vitejs/plugin-legacy": "^5.4.2",
"@vitejs/plugin-vue": "^5.0.5",
"@vue/eslint-config-prettier": "^9.0.0",
"@vue/eslint-config-typescript": "^13.0.0",
"@types/node": "^22.9.3",
"@vitejs/plugin-legacy": "^6.0.0",
"@vitejs/plugin-vue": "^5.2.1",
"@vitest/eslint-plugin": "1.1.10",
"@vue/eslint-config-prettier": "^10.1.0",
"@vue/eslint-config-typescript": "^14.1.4",
"@vue/test-utils": "^2.4.6",
"@vue/tsconfig": "^0.5.1",
"cypress": "^13.12.0",
"eslint": "^8.57.0",
"eslint-plugin-cypress": "^3.3.0",
"eslint-plugin-vue": "^9.23.0",
"jsdom": "^24.1.0",
"npm-run-all2": "^6.2.0",
"prettier": "^3.2.5",
"start-server-and-test": "^2.0.4",
"terser": "^5.34.0",
"typescript": "~5.4.0",
"vite": "^5.3.1",
"vitest": "^1.6.0",
"vue-tsc": "^2.0.21"
"@vue/tsconfig": "^0.7.0",
"cypress": "^13.16.1",
"eslint": "^9.17.0",
"eslint-plugin-cypress": "^4.1.0",
"eslint-plugin-vue": "^9.32.0",
"jsdom": "^25.0.1",
"npm-run-all2": "^7.0.1",
"prettier": "^3.4.2",
"start-server-and-test": "^2.0.9",
"terser": "^5.37.0",
"typescript": "~5.7.2",
"vite": "^6.0.3",
"vitest": "^2.1.8",
"vue-tsc": "^2.1.10"
}
}
2 changes: 1 addition & 1 deletion zimui/src/components/HeaderBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const main = useMainStore()
onMounted(async () => {
try {
await main.fetchShared()
} catch (error) {
} catch {
main.setErrorMessage('An unexpected error occured.')
}
})
Expand Down
2 changes: 1 addition & 1 deletion zimui/tsconfig.node.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@tsconfig/node20/tsconfig.json",
"extends": "@tsconfig/node22/tsconfig.json",
"include": [
"vite.config.*",
"vitest.config.*",
Expand Down
Loading

0 comments on commit 0f12d36

Please sign in to comment.