-
Notifications
You must be signed in to change notification settings - Fork 31
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
Flat Configuration example is not work #118
Comments
Yeah I have this too. Try this: import solid from 'eslint-plugin-solid/dist/configs/typescript.js'; If they want us to be able to do |
Thanks for the issue. I think the problem is that package.json is missing the One of those things that works fine when testing locally but breaks on publish. Should be a quick fix! |
It is getting bundled though: (https://www.npmjs.com/package/eslint-plugin-solid?activeTab=code) The issue is you have to add an |
Like this: "exports": {
".": "./dist/index.js",
"./configs/typescript": "./dist/configs/typescript.js",
} |
Thanks for checking! I've been hesitant to add |
Ah okay, gotcha.
Hopefully not for long! FlatConfig w/ ESM is the way! 😁 |
Fix flat imports example by adding configs dir to files field, for #118.
Absolutely, fully support the move to ESM! Just following ESLint's lead 😄 will ship this fix in the next release! |
Awesome thanks! |
I see this has been closed but the |
@joshwilsonvu |
Describe the bug
Using this Flat Configuration example will result in the following error:
To Reproduce
see this repo
Expected behavior
no error
Environment (please complete the following information):
v20.10.0
):eslint-plugin-solid
version (0.13.0
):eslint
version (8.56.0
):Additional context
The text was updated successfully, but these errors were encountered: