-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add support to tslint.json linterOptions.exclude (#377)
* add support to exclude linting * improved readability of tslint exclude transform
- Loading branch information
Paul
authored
Feb 6, 2020
1 parent
339ec2b
commit 5e977d8
Showing
4 changed files
with
53 additions
and
1 deletion.
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,2 @@ | ||
// This would fail linting without `exclude` support from @dojo/cli-build-app | ||
export var thisWouldFailLinting: any; |
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,40 @@ | ||
{ | ||
"rules": { | ||
"align": false, | ||
"ban": [], | ||
"class-name": true, | ||
"comment-format": [ true, "check-space" ], | ||
"curly": true, | ||
"forin": false, | ||
"interface-name": [ true, "never-prefix" ], | ||
"jsdoc-format": true, | ||
"label-position": true, | ||
"member-access": false, | ||
"member-ordering": false, | ||
"no-any": false, | ||
"no-arg": true, | ||
"no-bitwise": false, | ||
"no-console": false, | ||
"no-construct": false, | ||
"no-debugger": true, | ||
"no-duplicate-variable": true, | ||
"no-empty": false, | ||
"no-eval": true, | ||
"no-inferrable-types": [ true, "ignore-params" ], | ||
"no-shadowed-variable": false, | ||
"no-string-literal": false, | ||
"no-switch-case-fall-through": false, | ||
"no-unused-expression": false, | ||
"no-use-before-declare": false, | ||
"no-var-keyword": true, | ||
"no-var-requires": false, | ||
"object-literal-sort-keys": false, | ||
"radix": true, | ||
"triple-equals": [ true, "allow-null-check" ], | ||
"typedef": false, | ||
"variable-name": [ true, "check-format", "allow-leading-underscore", "ban-keywords", "allow-pascal-case" ] | ||
}, | ||
"linterOptions": { | ||
"exclude": [ "**/tslint*.ts" ] | ||
} | ||
} |