You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you have lint warnings and run yarn lint or tsdx lint, the warnings are printed but the command exits without an error
Desired Behavior
It would be nice to have tsdx lint take a flag to exit with a non-zero code if warnings are found so that a pre-commit hook can prevent a commit from going through and require the user to fix the warnings.
Who does this impact? Who is this for?
This is for people who want to force all lint errors and warnings to be cleared before committing code.
The text was updated successfully, but these errors were encountered:
georgevarghese185
changed the title
Optional lint flag to require warnings to be fixed
Feature request: Optional lint flag to require warnings to be fixed
Sep 6, 2020
agilgur5
changed the title
Feature request: Optional lint flag to require warnings to be fixed
lint flag to require warnings to be fixed
Sep 7, 2020
ESLint has the --max-warnings flag, but it seems like there is no config option via eslintrc for this -- that would be optimal.
Without such a change upstream TSDX would need to forward the flag. Would prefer to forward all flags to ESLint as we do with tsdx test and Jest but IIRC there's a limitation; had thought to do so some time ago
agilgur5
changed the title
lint flag to require warnings to be fixed
lint flag to make warnings exit with non-zero
Sep 7, 2020
Current Behavior
If you have lint warnings and run
yarn lint
ortsdx lint
, the warnings are printed but the command exits without an errorDesired Behavior
It would be nice to have
tsdx lint
take a flag to exit with a non-zero code if warnings are found so that a pre-commit hook can prevent a commit from going through and require the user to fix the warnings.Who does this impact? Who is this for?
This is for people who want to force all lint errors and warnings to be cleared before committing code.
The text was updated successfully, but these errors were encountered: