Skip to content

feat: move to ESLint v9 👏 #250

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 9 commits into from
May 23, 2025
Merged

feat: move to ESLint v9 👏 #250

merged 9 commits into from
May 23, 2025

Conversation

robertrossmann
Copy link
Member

BREAKING CHANGE: Projects must now use ESLint v9 in order to use these rulesets.

BREAKING CHANGE: Projects must now use ESLint v9 in order to use these rulesets.
@robertrossmann robertrossmann added enhancement New feature or request dependencies Pull requests that update a dependency file labels Jan 24, 2025
@robertrossmann robertrossmann self-assigned this Jan 24, 2025
 - @strv/eslint-config-base@5.0.0-alpha.0
 - @strv/eslint-config-graphql@3.0.0-alpha.0
 - @strv/eslint-config-mocha@5.0.0-alpha.0
 - @strv/eslint-config-node@5.0.0-alpha.0
 - @strv/eslint-config-react@6.0.0-alpha.0
 - @strv/eslint-config-typescript@6.0.0-alpha.0
 - @strv/eslint-config-typescript@6.0.0-alpha.1
 - @strv/eslint-config-base@5.0.0-alpha.1
 - @strv/eslint-config-graphql@3.0.0-alpha.1
 - @strv/eslint-config-mocha@5.0.0-alpha.1
 - @strv/eslint-config-node@5.0.0-alpha.1
 - @strv/eslint-config-react@6.0.0-alpha.1
 - @strv/eslint-config-typescript@6.0.0-alpha.2
Used when working with vitest.
Copy link
Contributor

@jirikapoun jirikapoun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have added one small suggestion, otherwise it looks good.

I have tried out the new version in the Surge codebase and only a few adjustments were necessary:

  • Rename @typescript-eslint/indent rule config to @stylistic/indent
  • Rename @typescript-eslint/no-throw-literal rule config to @typescript-eslint/only-throw-error
  • Add ignore for fetch and FormData to node/no-unsupported-features/node-builtins rule config (or potentially even better, upgrade to Node 22)

I also had to regenerate package-lock.json in order to resolve all peer deps conflicts and completely drop one very old ESLint plugin (eslint-plugin-filenames) – I think it would be possible to salvage it by patching it, but we don't really need it so I didn't bother.

Co-authored-by: jirikapoun <jirikapoun@jirikapoun.cz>
@robertrossmann robertrossmann force-pushed the feat/eslint/v9-support branch from d9e8ce1 to 517cc33 Compare May 23, 2025 12:54
@robertrossmann robertrossmann merged commit 1b13cd7 into master May 23, 2025
3 checks passed
@robertrossmann robertrossmann deleted the feat/eslint/v9-support branch May 23, 2025 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants