8000 chore: update to ESLint 9 by haoqunjiang · Pull Request #10705 · vuejs/core · GitHub
[go: up one dir, main page]

Skip to content

chore: update to ESLint 9 #10705

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Apr 17, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
chore: update to ESLint 9 (step 1)
- Though `@typescript-eslint/*` haven't officially supported ESLint 9,
  the remaining issues are not relevant to its usage in this repo, so
  I patched them in the peer dependency rules.
- Flat Config migration takes time so I used
  `ESLINT_USE_FLAT_CONFIG=false` for now
- Optional catch binding is supported since Node.js v10, so I removed
  the unused `e`s in `release.js` to suppress the `no-unused-vars`` error
- `eslint-plugin-i` is now `eslint-plugin-import-x`, I'll migrate it in
  a later commit
- We don't use Jest in this repo, I'll migrate `eslint-plugin-jest` to
  `eslint-plugin-vitest` in a later commit
  • Loading branch information
haoqunjiang committed Apr 15, 2024
commit 3eb96a7ddcef63406ba34101e2f8eae76c269ef5
14 changes: 12 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"size-esm-runtime": "node scripts/build.js vue -f esm-bundler-runtime",
"size-esm": "node scripts/build.js runtime-dom runtime-core reactivity shared -f esm-bundler",
"check": "tsc --incremental --noEmit",
"lint": "eslint --cache --ext .js,.ts,.tsx . --ignore-path .gitignore",
"lint": "ESLINT_USE_FLAT_CONFIG=false eslint --cache --ext .js,.ts,.tsx . --ignore-path .gitignore",
"format": "prettier --write --cache .",
"format-check": "prettier --check --cache .",
"test": "vitest",
Expand Down Expand Up @@ -80,7 +80,7 @@
"enquirer": "^2.4.1",
"esbuild": "^0.20.2",
"esbuild-plugin-polyfill-node": "^0.3.0",
"eslint": "^8.57.0",
"eslint": "^9.0.0",
"eslint-define-config": "^2.1.0",
"eslint-plugin-import": "npm:eslint-plugin-i@^2.29.1",
"eslint-plugin-jest": "^27.9.0",
Expand Down Expand Up @@ -114,5 +114,15 @@
"typescript": "~5.4.5",
"vite": "^5.2.7",
"vitest": "^1.4.0"
},
"pnpm": {
"peerDependencyRules": {
"allowedVersions": {
"@typescript-eslint/eslint-plugin>eslint": "^9.0.0",
"@typescript-eslint/parser>eslint": "^9.0.0",
"@typescript-eslint/type-utils>eslint": "^9.0.0",
"@typescript-eslint/utils>eslint": "^9.0.0"
}
}
}
}
Loading
0