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
Add prefer-module
rule
#1141
Add prefer-module
rule
#1141
Conversation
eb47b79
to
5ae45f6
Compare
I'm almost done here, questions:
|
Should we also enforce using |
|
You are right, but it most likely not going to cause problem, let's keep it this way for now. |
I don't think so, |
Maybe we can create |
I think it's too much work to maintain a plugin just for that. How about an opt-in |
I pushed some docs improvements. |
Did you implement #1067 (comment)? |
Yes, all access of global |
Awesome! |
* main: Add `prefer-module` rule (sindresorhus#1141)
* main: Add `prefer-module` rule (sindresorhus#1141) Fix swapped rule descriptions (sindresorhus#1187)
Excuse me, How can i disable this rule in |
{
overrides: [
{
files: [],
rules: {
'unicorn/prefer-module': 'off'
}
}
]
} |
Thanks. |
Fixes #1067