-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 default values of unusedExports
and/or missingExports
with import/no-unused-modules
#1324
Comments
unusedExports
and/or missingExports
with import/no-unused-modules
unusedExports
and/or missingExports
with import/no-unused-modules
At this point that’d be a breaking change - but also i don’t think it’d make sense to default only one of them to true - it’d have to default both or neither to the same value. |
This would need to be delayed until next major version indeed. Both |
Defaulting |
@klippx can you elaborate on what you mean by "this"? |
|
Is there any reason this isn’t two different rules? They share a setting but otherwise they seem to do two different things. |
Would it make sense to change the default value of
unusedExports
and/ormissingExports
? At the moment, they both default tofalse
. Unless I am mistaken, this means that the rule is a noop by default. This confused me at first and I thought the rule was not working. I am wondering if other users might have the same reaction. Would defaulting one of them or both of them totrue
be a good idea?(Unrelated note: The
no-unused-modules
is great, thanks for this! This rule can replace whole libraries dedicated to finding dead code in JavaScript. Being built on top of ESLint, it also benefits from things like IDE integrations. In short, this is great!)The text was updated successfully, but these errors were encountered: