You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The getting started page shows how to import the recommended config into a flat config. But I don't want to use the recommended config. I just want to import the plugin and then choose for myself what rules to turn on. The documentation does not cover this. Is this possible?
I did some digging and it looks like the index.js file does not even export the plugin (??), so I am very confused.
The text was updated successfully, but these errors were encountered:
For now, VoxPelli helped me work around the issue with this code:
// @ts-expect-error https://github.com/eslint-community/eslint-plugin-eslint-comments/issues/214importESLintPluginESLintCommentsConfigsfrom"@eslint-community/eslint-plugin-eslint-comments/configs";importtseslintfrom"typescript-eslint";// The plugin is not currently exported from the root, so we have to get the plugin from the config.// https://github.com/eslint-community/eslint-plugin-eslint-comments/issues/215constESLintPluginESLintComments=ESLintPluginESLintCommentsConfigs.recommended.plugins["@eslint-community/eslint-comments"];exportconstconfigFoo=tseslint.config({plugins: {"@eslint-community/eslint-comments": ESLintPluginESLintComments,},});
But this is really confusing and weird so hopefully it is exported from the root in the next version of the plugin.
The getting started page shows how to import the
recommended
config into a flat config. But I don't want to use therecommended
config. I just want to import the plugin and then choose for myself what rules to turn on. The documentation does not cover this. Is this possible?I did some digging and it looks like the
index.js
file does not even export the plugin (??), so I am very confused.The text was updated successfully, but these errors were encountered: