Skip to content
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

Support for ESLint 9 #614

Closed
u01jmg3 opened this issue Apr 6, 2024 · 16 comments
Closed

Support for ESLint 9 #614

u01jmg3 opened this issue Apr 6, 2024 · 16 comments

Comments

@u01jmg3
Copy link

u01jmg3 commented Apr 6, 2024

"eslint": "^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0"

https://github.com/eslint/eslint/releases/tag/v9.0.0

@herrherrmann
Copy link

ESLint 9.0 also requires the flat config format, so this issue is probably kind of a duplicate of this older one? #603

@u01jmg3
Copy link
Author

u01jmg3 commented Apr 22, 2024

Just need PR #609 to land. @amilajack can you help us out?

@nford88
Copy link

nford88 commented May 23, 2024

Just need PR #609 to land. @amilajack can you help us out?

The flat config ticket was merged yesterday!

@muuvmuuv
Copy link

muuvmuuv commented Jun 4, 2024

The next tag misses updated peerDependencies :)

@u01jmg3
Copy link
Author

u01jmg3 commented Jun 11, 2024

Great work landing flat config file support 👏🏻

Will keep this issue open though because, as mentioned by @dargmuesli (#609 (comment)), currently this plugin doesn't fully support ESLint 9 due to the error: context.getAncestors is not a function

@dargmuesli
Copy link

You can already use eslint-plugin-compat with eslint v9 by installing @eslint/compat and having this eslint.config.js:

// @ts-check

import { fixupConfigRules } from '@eslint/compat'
import eslintPluginCompat from 'eslint-plugin-compat'

const compatConfiguration = fixupConfigRules(
  eslintPluginCompat.configs['flat/recommended'],
)

export default [
  ...compatConfiguration,
]

@u01jmg3
Copy link
Author

u01jmg3 commented Jun 12, 2024

Thanks 🙏🏻, @dargmuesli - could this method also be used with eslint-plugin-escompat?

@dargmuesli
Copy link

I think flat config must be supported.

@Mr0grog
Copy link

Mr0grog commented Jul 1, 2024

Are there any specific fixes that could use some help here? Happy to donate some time this week if help is needed to move ESLint 9 support forward.

@dargmuesli
Copy link

Great! 🥳 As mentioned

currently this plugin doesn't fully support ESLint 9 due to the error: context.getAncestors is not a function

There might be some follow up issues that surface after this issue is fixed, but I don't think there are many as the compat workaround I posted above works pretty flawlessly.

@Mr0grog
Copy link

Mr0grog commented Jul 1, 2024

@dargmuesli that’s great, but mainly I’d like to hear from a maintainer (I guess that’s mainly @amilajack) what I can help do (or not help with). If maintainers are paying attention to ESLint v9 support, it’s not going to go very far just because I poke at it, and it’s not clear what they do or don’t need help with.

@brettz9
Copy link
Contributor

brettz9 commented Jul 2, 2024

I've submitted #627 , a PR which should hopefully be a jump start on moving to ESLint 9 support. Hopefully someone can review and see if anything else needs to be done.

@sdavids
Copy link

sdavids commented Jul 11, 2024

Maybe update the changelog as well?

@brettz9
Copy link
Contributor

brettz9 commented Jul 11, 2024

Looks like releases are getting made, but despite having @semantic-release/changelog set up, the change log does not appear to be updating for whatever reason... Not just the prereleases, but earlier versions...

@brettz9
Copy link
Contributor

brettz9 commented Jul 13, 2024

@amilajack : I think this can be closed now (by #627)

@brettz9
Copy link
Contributor

brettz9 commented Jul 13, 2024

Thanks!

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

No branches or pull requests

9 participants