-
-
Notifications
You must be signed in to change notification settings - Fork 384
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
Change some options for prevent-abbreviations
rule
#422
Change some options for prevent-abbreviations
rule
#422
Conversation
What is the meaning of a module name starting with |
@ is webpack alias, means project root |
reminds me there is also a |
Webpack aliases can be absolutely arbitrary and Anyway, what is the issue you are trying to solve with this PR? |
I want imports report error if name is using abbreviation, but #237 (comment) don't want check npm packages import, so I made this PR to only target
import .
|
@futpib @sindresorhus Are you ok with this change? |
👍 |
Yes |
checkDefaultAndNamespaceImports
& checkShorthandImports
default value to internal
prevent-abbreviations
rule
Co-Authored-By: Sindre Sorhus <[email protected]>
The PR will make this code bellow report an error by default
without breaking #237 (comment)
and
moduleId starts with
.
/
and without@/
node_modules
is consideredinternal-module
.The
internal
naming andinternal-module
logic may need discuss.//cc @futpib @sindresorhus