Skip to content

Upgrade vue-app test project lint toolchain to ESLint 10#22

Closed
Copilot wants to merge 2 commits into
masterfrom
copilot/fix-build-failure
Closed

Upgrade vue-app test project lint toolchain to ESLint 10#22
Copilot wants to merge 2 commits into
masterfrom
copilot/fix-build-failure

Conversation

Copy link
Copy Markdown

Copilot AI commented Apr 18, 2026

@babel/eslint-parser@7.x only supports eslint ≤9, causing the ESLint language server to crash under ESLint 10 with a Connection reset on the Java side, breaking all TestVue tests.

Changes

package.json

  • Drop @babel/eslint-parser and @babel/core — incompatible with ESLint 10, no longer needed
  • eslint: ^9.17.0^10.2.0
  • @eslint/js: ^9.17.0^10.0.1
  • eslint-plugin-vue: ^10.0.0^10.8.0 (first version with explicit ESLint 10 peer dep)

eslint.config.mjs

  • Remove @babel/eslint-parser import and parserOptions.parser usage; espree (ESLint built-in) is sufficient
  • flat/vue3-essentialflat/essential — the vue3--prefixed aliases were removed in eslint-plugin-vue@10.x
// Before
import vue from 'eslint-plugin-vue';
import babelParser from '@babel/eslint-parser';
import js from '@eslint/js';

export default [
  js.configs.recommended,
  ...vue.configs['flat/vue3-essential'],
  { languageOptions: { parserOptions: { parser: babelParser } } },
];

// After
import vue from 'eslint-plugin-vue';
import js from '@eslint/js';

export default [
  js.configs.recommended,
  ...vue.configs['flat/essential'],
];

.gitignore — add package-lock.json to prevent accidental commits

Copilot AI and others added 2 commits April 18, 2026 14:41
- Drop @babel/eslint-parser (only supported eslint <=9) and @babel/core
- Bump eslint ^9.17.0 → ^10.2.0
- Bump @eslint/js ^9.17.0 → ^10.0.1
- Bump eslint-plugin-vue ^10.0.0 → ^10.8.0
- Fix eslint.config.mjs: remove babel parser; rename flat/vue3-essential
  → flat/essential (the vue3-specific name was dropped in plugin v10.x)

Agent-Logs-Url: https://github.com/akurtakov/wildwebdeveloper/sessions/e436d9ac-0f6e-4423-84a7-16c221626e53

Co-authored-by: akurtakov <574788+akurtakov@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants