Repository navigation
chore(deps): update eslint to v10 and @antfu/eslint-config to v10 - #30
Merged
Merged
Conversation
`@antfu/eslint-config` dropped the legacy `.eslintrc` format, so the config moves to `eslint.config.js`. Everything else is the new rule set's autofix: sorted imports / exports / JSON keys, comma member delimiters and line breaks in multi-item literals and ternaries. No behaviour changes. - `jsdoc/require-returns-description` is turned off: the JSDoc here types the return value and describes it in the summary. - The pnpm plugin adds its recommended `pnpm-workspace.yaml` settings (`trustPolicy: no-downgrade`, `shellEmulator`); they only apply from pnpm 10 on. - README: utility headings are `###` now (no skipped level) and the sponsors image has alt text.
eslint-plugin-unicorn, pulled in by @antfu/eslint-config 10, uses Set.prototype.union, which Node 20 lacks. Linting is dev tooling only; the test matrix keeps covering the Node 20 runtime floor.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
eslint^8.48.0^10.15.0@antfu/eslint-config^0.41.0^10.0.0.eslintrceslint.config.js(flat config)@antfu/eslint-configno longer supports the legacy.eslintrcformat, hence the move toeslint.config.js.The large diff is purely the new rule set's autofix — no behaviour changes:
perfectionist/sort-*) and JSON keys (tsconfig.json,package.json#files)antfu/reasonable-newline)Manual changes:
jsdoc/require-returns-descriptionis off — the JSDoc in this repo types the return value (@returns { boolean }) and describes it in the summary. Otherwise that's 19 warnings for the existing convention.pnpm-workspace.yamlsettings (trustPolicy: no-downgrade,shellEmulator: true, …). They're ignored by pnpm 8 and only take effect from pnpm 10.####directly under##(now###), and the sponsors image has alt text.Verified locally
pnpm lint: 0 errors, 0 warnings (was 3 warnings)pnpm build✅The remaining dev dependencies follow in a separate PR.