Skip to content

Commit a5614f8

Browse files
staredclaude
andcommitted
Update dependencies to latest versions and migrate to ESLint 9
- Upgrade all dependencies including Vue 3.5.18, TypeScript 5.9.2, Vite 7.0.6 - Migrate from ESLint 8 legacy config to ESLint 9 flat config format - Replace .eslintrc.cjs with eslint.config.js using @vue/eslint-config-typescript - Fix deprecated vue/component-tags-order rule (replaced with vue/block-order) - Update package.json lint script for ESLint 9 compatibility - Fix unused error variables in catch blocks to comply with linting rules 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 25cb443 commit a5614f8

File tree

6 files changed

+701
-981
lines changed

6 files changed

+701
-981
lines changed

.eslintrc.cjs

Lines changed: 0 additions & 77 deletions
This file was deleted.

eslint.config.js

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import pluginVue from 'eslint-plugin-vue'
2+
import { defineConfigWithVueTs, vueTsConfigs } from '@vue/eslint-config-typescript'
3+
4+
export default defineConfigWithVueTs(
5+
{
6+
ignores: ['dist/**', 'node_modules/**', '*.d.ts', 'coverage/**', '.vite/**']
7+
},
8+
pluginVue.configs['flat/recommended'],
9+
vueTsConfigs.recommended,
10+
{
11+
files: ['**/*.{ts,tsx,vue,js,jsx,mjs,cjs}'],
12+
rules: {
13+
'@typescript-eslint/no-unused-vars': ['error', {
14+
argsIgnorePattern: '^_',
15+
varsIgnorePattern: '^_',
16+
caughtErrorsIgnorePattern: '^_'
17+
}],
18+
'@typescript-eslint/no-explicit-any': 'warn',
19+
'@typescript-eslint/explicit-function-return-type': 'error',
20+
'@typescript-eslint/explicit-module-boundary-types': 'error',
21+
22+
'vue/multi-word-component-names': 'off',
23+
'vue/block-order': ['error', {
24+
order: ['script', 'template', 'style']
25+
}],
26+
27+
'no-console': ['warn', { allow: ['warn', 'error'] }],
28+
'no-debugger': 'error',
29+
'prefer-const': 'error',
30+
'no-var': 'error'
31+
}
32+
}
33+
)

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,23 @@
77
"dev": "vite",
88
"build": "vite build",
99
"preview": "vite preview",
10-
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore"
10+
"lint": "eslint . --fix"
1111
},
1212
"dependencies": {
1313
"monaco-editor": "^0.52.2",
14-
"vue": "^3.4.0",
14+
"vue": "^3.5.18",
1515
"webr": "^0.5.4"
1616
},
1717
"devDependencies": {
18-
"@types/node": "^18.19.9",
19-
"@typescript-eslint/eslint-plugin": "^6.21.0",
20-
"@typescript-eslint/parser": "^6.21.0",
21-
"@vitejs/plugin-vue": "^4.5.2",
22-
"@vue/eslint-config-typescript": "^12.0.0",
23-
"eslint": "^8.57.0",
24-
"eslint-plugin-vue": "^9.20.1",
25-
"typescript": "~5.3.0",
26-
"vite": "^5.0.10"
18+
"@types/node": "^24.1.0",
19+
"@typescript-eslint/eslint-plugin": "^8.38.0",
20+
"@typescript-eslint/parser": "^8.38.0",
21+
"@vitejs/plugin-vue": "^6.0.1",
22+
"@vue/eslint-config-typescript": "^14.6.0",
23+
"eslint": "^9.32.0",
24+
"eslint-plugin-vue": "^10.4.0",
25+
"typescript": "~5.9.2",
26+
"vite": "^7.0.6"
2727
},
2828
"packageManager": "[email protected]"
2929
}

0 commit comments

Comments
 (0)