You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
chore: upgrade eslint and @antfu/eslint-config to v10 together and fix the new lint errors #1033
Summary: Upgrade @antfu/eslint-config to v10 and eslint to v10 together in one PR, and fix the lint errors v10 reports. This replaces Renovate's #1023 and #1024, which can't go green separately.
1143 from v10's new antfu/reasonable-newline rule, which ESLint can auto-fix
55 unused-imports/no-unused-vars hits on parameter names inside type signatures, for example (e: 'previous'): void in defineEmits (WolvesControlBar.vue:39-41) and setVolume?: (volume: number) => void (useYoutubeIframeApi.ts:21)
1 markdown/heading-increment in src/data/lore/chris-aniszczyk.md
What to change
In package.json, set @antfu/eslint-config to the latest 10.x and eslint to the latest 10.x, and regenerate package-lock.json with npm 11.
Run npm run lint:fix for the antfu/reasonable-newline errors. It's one large mechanical reformat, so keep it in its own commit.
For the type-signature hits, turn off unused-imports/no-unused-vars for type-only parameter names in eslint.config.js (for example args: 'none' inside TS type positions), or prefix the names with _. Explain the choice in the PR.
Fix the skipped heading level in src/data/lore/chris-aniszczyk.md.
Acceptance
npm run lint, npm run typecheck, tests, build and wolves-movie-flow pass.
Activity
build(deps): upgrade eslint and @antfu/eslint-config to v10
fix(lint): keep the v10 lint config behaviour-neutral
style: apply the @antfu/eslint-config v10 line-break rules