Skip to content

chore: migrate to neostandard flat config (ESLint 9)#14

Merged
dirkjanfaber merged 1 commit into
mainfrom
fix/eslint-flat-config
Apr 30, 2026
Merged

chore: migrate to neostandard flat config (ESLint 9)#14
dirkjanfaber merged 1 commit into
mainfrom
fix/eslint-flat-config

Conversation

@dirkjanfaber

Copy link
Copy Markdown
Owner

Summary

  • eslint-config-standard@17 only supports eslint@^8, causing a peer dependency conflict with the eslint@10 that was previously bumped in by dependabot
  • This conflict blocked PR Bump eslint-plugin-promise from 6.6.0 to 7.3.0 #13 (eslint-plugin-promise 6→7) from passing npm ci in CI
  • Replaces eslint-config-standard, eslint-plugin-import, eslint-plugin-n, eslint-plugin-promise with neostandard (which bundles them all, including eslint-plugin-promise@^7)
  • Pins eslint to ^9.0.0 to match neostandard's peer requirement
  • Migrates .eslintrc.json to eslint.config.js (ESLint flat config format)

Effect on PR #13

PR #13 will become redundant after this merges — neostandard already bundles eslint-plugin-promise@^7.2.1, so dependabot's standalone bump is no longer needed.

Test plan

  • npm run lint passes with zero errors
  • npm test — all 22 tests pass
  • npm ci will no longer fail on peer dependency conflicts

eslint-config-standard@17 only supports ESLint 8, causing peer dependency
conflicts with eslint@10. Replace the explicit eslint-config-standard,
eslint-plugin-import, eslint-plugin-n, and eslint-plugin-promise deps with
neostandard (which bundles them all) and drop eslint to ^9.0.0 to match
neostandard's peer requirement. Migrate .eslintrc.json to eslint.config.js
flat config format.
@dirkjanfaber
dirkjanfaber merged commit 7f2dac6 into main Apr 30, 2026
0 of 2 checks passed
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.

1 participant