-
Notifications
You must be signed in to change notification settings - Fork 17
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
fix(eslint): flat config support #51
base: main
Are you sure you want to change the base?
Conversation
recommended === false ? "off" : recommended; | ||
return map; | ||
}, {}); | ||
for (let { ruleName, ruleModule } of rulesList) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Previous implementation did 2 loops
The updated code does it only once
}; | ||
|
||
plugin.configs = { | ||
recommended: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
legacy configuration is maintained as-is
no expected repressions
plugins: ["@ecocode"], | ||
rules: recommendedRules, | ||
}, | ||
["flat/recommended"]: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the new flat configuration follows the plugin naming convention
Fix issue #50 (ESLint flat config support)
see: https://eslint.org/docs/latest/extend/plugin-migration-flat-config