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
prevent-abbreviations
default option is not good
#271
Comments
This is what I'm using, feel better when linting, no need change api (including internal using props) 'unicorn/prevent-abbreviations': [
'error',
{
checkDefaultAndNamespaceImports: true,
checkProperties: false,
},
], |
Could you please split this into two separate issues (one for each default we've chosen)? |
Some reasons behind Regarding |
thanks for explaining for since those two options can easily overwrite, I'm going to keep my own choices. |
I am facing this issue too. Since the new release linter checks options that I do not have control over. That's sad. Failing build: https://travis-ci.org/wemake-services/wemake-vue-template/builds/513997750 This is a default {
'build': {
// Error here on `isDev`:
extend (config, { isDev, isClient }) { ... }
}
} |
👍 |
@fisker Can you provide some code examples of this? |
I think we should make |
@sobolevn That's weird. According to our docs, |
prevent-abbreviations
is really good, I have tried to lint my old scripts.after a few test, I notice that
checkDefaultAndNamespaceImports
default value isfalse
, but normally change the name ofdefault and namespace
import has no side effect, this should set totrue
, I think.checkProperties
default value istrue
, but normally when export or return a object, the prop name can't just rename without api changes, I think this should set tofalse
by default.The text was updated successfully, but these errors were encountered: