-
Notifications
You must be signed in to change notification settings - Fork 19
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
Key "plugins": Key "react-refresh": Expected an object. #50
Comments
What's your node version? Do have any issues when running a fresh vite react templates (also using esm + eslint v9 + this plugin) |
@ArnaudBarre thank you for your quick response. I figured out that import * as reactRefresh from 'eslint-plugin-react-refresh'; Feel free to close this issue as it is resolved on my end. I think the documentation can be updated to reflect this situation or default export can be used when exporting the rules. |
Do you have more information on your setup? tsconfig option should only impact how the TS import are resolved for type checking, but it doesn't impact node at runtime, except if you are using something else? |
Sorry my bad, I am using unstable eslint.config.ts You can check this repo I created. Or you can reproduce the issue using Vite with additional
--
My node version is 20.16.0 |
This is fixed in the latest version! |
Hello, I am getting this error when I run the lint command:
ConfigError: Config (unnamed): Key "plugins": Key "react-refresh": Expected an object.
I am using
eslint@9.10.0
and I havetype="module"
in my package.json, I import and use the plugin like this:I found that it works fine if I remove the
0 &&
from the below code in the bundled index.js file or if I userequire('eslint-plugin-react-refresh')
The text was updated successfully, but these errors were encountered: