-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: separate tslint config files for build and vscode
This is a follow-up to #964. Two config files are in place now: - tslint.build.json for CLI build scripts - tslint.json for vscode
- Loading branch information
1 parent
a438729
commit b622910
Showing
4 changed files
with
9 additions
and
32 deletions.
There are no files selected for viewing
15 changes: 1 addition & 14 deletions
15
packages/cli/generators/project/templates/tslint.build.json
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 |
---|---|---|
@@ -1,17 +1,4 @@ | ||
{ | ||
"$schema": "http://json.schemastore.org/tslint", | ||
"extends": ["./tslint.json"], | ||
// This configuration files enabled rules which require type checking | ||
// and therefore cannot be run by Visual Studio Code TSLint extension | ||
// See https://github.com/Microsoft/vscode-tslint/issues/70 | ||
"rules": { | ||
// These rules find errors related to TypeScript features. | ||
|
||
// These rules catch common errors in JS programming or otherwise | ||
// confusing constructs that are prone to producing bugs. | ||
|
||
"await-promise": true, | ||
"no-floating-promises": true, | ||
"no-void-expression": [true, "ignore-arrow-function-shorthand"] | ||
} | ||
"extends": ["./node_modules/@loopback/build/config/tslint.build.json"] | ||
} |
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 |
---|---|---|
@@ -1,20 +1,10 @@ | ||
{ | ||
"$schema": "http://json.schemastore.org/tslint", | ||
"extends": [ | ||
"./tslint.json" | ||
], | ||
// This configuration files enabled rules which require type checking | ||
// and therefore cannot be run by Visual Studio Code TSLint extension | ||
// See https://github.com/Microsoft/vscode-tslint/issues/70 | ||
"rules": { | ||
// These rules find errors related to TypeScript features. | ||
|
||
|
||
// These rules catch common errors in JS programming or otherwise | ||
// confusing constructs that are prone to producing bugs. | ||
|
||
"await-promise": true, | ||
"no-floating-promises": true, | ||
"no-void-expression": [true, "ignore-arrow-function-shorthand"] | ||
"extends": ["./packages/build/config/tslint.build.json"], | ||
"linterOptions": { | ||
"exclude": [ | ||
"./packages/cli/generators/*/templates/**/*", | ||
"./packages/cli/test/sandbox/**/*" | ||
] | ||
} | ||
} |
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