-
Notifications
You must be signed in to change notification settings - Fork 710
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
split tslint rules for dev and ci (#52)
In development, console.log's are useful for debugging. This updates the main tslint.json file to not error when console.log's are present, but to just emit warnings. Since tslint doesn't have a stricter mode where it fails on warnings also, I've created another tslint.ci.json file that will emit errors if console.log's are present. This file will be used in the CI and pre-commit hooks so when a developer is ready to commit a change they will need to remove their debug statements.
- Loading branch information
Showing
3 changed files
with
14 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"defaultSeverity": "error", | ||
"extends": ["tslint:recommended", "tslint-react", "tslint-config-prettier"], | ||
"jsRules": {}, | ||
"rules": {}, | ||
"rulesDirectory": [] | ||
} |
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