Skip to content
New issue

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

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

Already on GitHub? # to your account

feat!: drop legacy configs, requires ESLint v9 and ESM #534

Merged
merged 2 commits into from
Jan 30, 2025

Conversation

antfu
Copy link
Member

@antfu antfu commented Jan 29, 2025

This PR is intended to be released as v1.0.

In this PR:

  • Drops he legacy .eslintrc format support
  • It now requires ESLint v9.0 with the flat configs
  • Drops the CJS build of the plugins and configs (now they are ESM only)
  • Removes the legacy Nuxt 2 configs (which have not been released for a very long while)

This PR is more like a clean-up.

For users that use @nuxt/eslint module with the eslint.config.mjs config, everything should keep working as-is with no migration needed.

This change will break the usage for users that are using our new config with legacy eslintrc format, for example:

module.exports = {
  root: true,
  extends: ["@nuxt/eslint-config"],
};

...which I expect should be a rare case, and in the worst case, they can still use the existing 0.7.x.

@antfu
Copy link
Member Author

antfu commented Jan 29, 2025

/cc @danielroe bringing you the awareness in case if you have any opinions on this move, thanks!

@danielroe
Copy link
Member

That change seems good to me 👌

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants