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
Disable unicorn/prefer-module
in certain files
#540
Comments
We can disable it for all |
I considered doing the same but some projects may use |
If you're using |
I think it should be ignored on
|
@fregante Why complicate it? You can just use |
Can you? The issue here is that tools don't yet fully support these changes. You can chose to let the user deal with it or you can avoid enforcing the rule for a few more months until tools catch up. Either way is ok for me. |
The tools I use support |
And the latest XO version ignores |
Some tools don't currently support ECMAScript modules for configuration yet. For example, Prettier requires a JavaScript config to export an object with
module.exports
. Theunicorn/prefer-module
rule should be disabled for known configuration files that must use CommonJS.Files to consider ignoring:
.prettierrc.js
.prettierrc.cjs
prettier.config.js
prettier.config.cjs
next.config.js
The text was updated successfully, but these errors were encountered: