Skip to content

Commit

Permalink
chore(frontend): upgrade deps to latest, migrate to eslint 9
Browse files Browse the repository at this point in the history
  • Loading branch information
PascalHonegger committed Nov 1, 2024
1 parent fdd8158 commit faa3c68
Show file tree
Hide file tree
Showing 37 changed files with 1,101 additions and 1,138 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
package_json_file: Frontend/package.json
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
cache: pnpm
cache-dependency-path: Frontend/pnpm-lock.yaml
- run: pnpm i
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/operations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
package_json_file: Frontend/package.json
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
cache: pnpm
cache-dependency-path: Frontend/pnpm-lock.yaml
- run: pnpm i
Expand Down
15 changes: 0 additions & 15 deletions Frontend/.eslintrc.cjs

This file was deleted.

21 changes: 21 additions & 0 deletions Frontend/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import js from '@eslint/js'
import eslintPluginVue from 'eslint-plugin-vue'
import skipFormattingConfig from "@vue/eslint-config-prettier/skip-formatting";
import vueTsEslintConfig from "@vue/eslint-config-typescript";
import ts from 'typescript-eslint'

export default ts.config(
js.configs.recommended,
...ts.configs.recommended,
...eslintPluginVue.configs['flat/recommended'],
...vueTsEslintConfig(),
{
files: ['*.vue', '**/*.vue'],
languageOptions: {
parserOptions: {
parser: '@typescript-eslint/parser'
}
}
},
skipFormattingConfig
)
40 changes: 20 additions & 20 deletions Frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,37 +11,37 @@
"preview": "vite preview",
"build-only": "vite build",
"type-check": "vue-tsc --noEmit -p tsconfig.app.json --composite false",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
"lint": "eslint \"src/**/*.{vue,js,jsx,cjs,mjs,ts,tsx,cts,mt}\" --fix",
"format": "prettier --write src/"
},
"dependencies": {
"mande": "^2.0.9",
"pinia": "^2.1.7",
"vue": "^3.4.27",
"pinia": "^2.2.5",
"vue": "^3.5.12",
"vue-draggable-next": "^2.2.1",
"vue-router": "^4.3.2",
"vue-router": "^4.4.5",
"vue-toastification": "2.0.0-rc.5",
"vue3-charts": "^1.1.33"
},
"devDependencies": {
"@rushstack/eslint-patch": "^1.10.3",
"@tsconfig/node20": "^20.1.4",
"@eslint/js": "^9.14.0",
"@rushstack/eslint-patch": "^1.10.4",
"@tsconfig/node22": "^22.0.0",
"@types/d3-axis": "^3.0.6",
"@types/d3-shape": "^3.1.6",
"@types/node": "^20.12.12",
"@vitejs/plugin-vue": "^5.0.4",
"@vue/eslint-config-prettier": "^9.0.0",
"@vue/eslint-config-typescript": "^13.0.0",
"@types/node": "^22.8.6",
"@vitejs/plugin-vue": "^5.1.4",
"@vue/eslint-config-prettier": "^10.1.0",
"@vue/eslint-config-typescript": "^14.1.3",
"@vue/tsconfig": "^0.5.1",
"autoprefixer": "^10.4.19",
"eslint": "^8.57.0",
"eslint-plugin-vue": "^9.26.0",
"npm-run-all2": "^6.2.0",
"postcss": "^8.4.38",
"prettier": "^3.2.5",
"tailwindcss": "^3.4.3",
"typescript": "^5.4.5",
"vite": "^5.2.11",
"vue-tsc": "^2.0.19"
"autoprefixer": "^10.4.20",
"eslint": "^9.14.0",
"eslint-plugin-vue": "^9.30.0",
"postcss": "^8.4.47",
"prettier": "^3.3.3",
"tailwindcss": "^3.4.14",
"typescript": "^5.6.3",
"vite": "^5.4.10",
"vue-tsc": "^2.1.10"
}
}
Loading

0 comments on commit faa3c68

Please sign in to comment.