-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
ESM-only plugin #808
Comments
I hope to one day change this package and the parser package to ESM. When do you think it will be OK for us to force our users to use a flat config?
ESLint v8 also has an experimental flat config available, so our package can be made into an ESM and still support ESLint v8. |
I wonder if this plugin could detect if you're using the old config format and print a deprecation warning encouraging users to migrate? Then they'd get some extra notice. We could do that as a 2.42.0 and then do a 3.0.0 afterwards that drops support for the old config format |
Thank you for your opinion.
That's a good idea! I won't know until we try it, but I think it might be possible to warn about the old configuration getter. Once that's done, I'd like to proceed with the migration to ESM. If anyone can help us, I'm looking forward to PRs. |
Description
You can now write eslint plugins in ESM. Their docs demonstrate it here: https://eslint.org/docs/latest/extend/plugins
This would be a nice code modernization. It would also potentially be helpful to the Svelte core project as one the big reasons we've had to distribute a CJS version of the Svelte compiler is to support the eslint plugin. Though the other reason we need it is for the REPL and I'm unsure if we can avoid it there.
I think this may only work in eslint 9, so the plugin would need to drop support for older versions.
The text was updated successfully, but these errors were encountered: