forked from jaredpalmer/tsdx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Works the same as ESLint's --max-warnings flag If `tsdx lint` finds no errors but more than `--max-warnings` number of warnings, it exits with a non-zero code. Otherwise, it exits with 0 - Add lint warning tests for this - Use default value of Infinity for --max-warnings flag - Update README's API Reference with new flag
- Loading branch information
1 parent
9d7a1b4
commit 7d518a0
Showing
4 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// this file should have 3 "unused var" lint warnings | ||
const unusedVar1 = () => { | ||
const unusedVar2 = 'baz'; | ||
const unusedVar3 = ''; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters