-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Is @emotion/eslint-plugin
consider support eslint flat config?
#3260
Comments
The ESLint plugin does not export any configurations, so there are no changes needed for flat config. |
Still an update to the documentation would be appreciated?
eslint 8 {
"plugins": ["@emotion"]
} eslint 9 const emotion = require('@emotion/eslint-plugin');
{
plugins: {
"@emotion": emotion
},
} |
I've tried a few different ways with varying errors to import from '@emotion/eslint-plugin' for the flat config. Right now it seems that only
Could someone help me with an example of the correct way? |
this seems to be working for me. you'll need to install import * as emotion from '@emotion/eslint-plugin';
import { fixupPluginRules } from '@eslint/compat';
...
plugins: {
'@emotion': fixupPluginRules(emotion),
},
rules: {
'@emotion/pkg-renaming': 'error',
},
... |
When installing eslint 9 version, does it get an error due to the peerDependencies of |
The problem
Is
@emotion/eslint-plugin
consider support eslint flat config?The text was updated successfully, but these errors were encountered: