diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-12-17 21:12:18 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2019-12-17 21:12:18 +0000 |
commit | ee93fac7767d36ee91d5a0029bb58023765c72d5 (patch) | |
tree | 2f8b62d4ebe5e18f71fe0e652382fd8263c0ed15 /editors/code/tslint.json | |
parent | ff8f80579a9e55d622b994e752c3692bfbd80dcf (diff) | |
parent | da29b7fb14bcfd4ace1b743175393bcabdc02693 (diff) |
Merge #2583
2583: Use prettier settings in ts-lint r=matklad a=edwin0cheng
This PR add `tslint-plugin-prettier` extension in ts-lint, which "runs prettier rules as tslint rules." and remove `quotemark` from ts-lint and let prettier to handle it.
And also fix #2515
Co-authored-by: Edwin Cheng <[email protected]>
Diffstat (limited to 'editors/code/tslint.json')
-rw-r--r-- | editors/code/tslint.json | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/editors/code/tslint.json b/editors/code/tslint.json index b69c5574d..f06fa5fab 100644 --- a/editors/code/tslint.json +++ b/editors/code/tslint.json | |||
@@ -1,9 +1,13 @@ | |||
1 | { | 1 | { |
2 | "defaultSeverity": "error", | 2 | "defaultSeverity": "error", |
3 | "extends": ["tslint:recommended", "tslint-config-prettier"], | 3 | "extends": [ |
4 | "tslint:recommended", | ||
5 | "tslint-config-prettier", | ||
6 | "tslint-plugin-prettier" | ||
7 | ], | ||
4 | "rules": { | 8 | "rules": { |
5 | "quotemark": [true, "single"], | ||
6 | "interface-name": false, | 9 | "interface-name": false, |
10 | "prettier": true, | ||
7 | "object-literal-sort-keys": false, | 11 | "object-literal-sort-keys": false, |
8 | // Allow `_bar` to sort with tsc's `noUnusedParameters` option | 12 | // Allow `_bar` to sort with tsc's `noUnusedParameters` option |
9 | "variable-name": [true, "allow-leading-underscore"] | 13 | "variable-name": [true, "allow-leading-underscore"] |