Skip to content

Commit 573af50

Browse files
committed
Switch VS Code workspace to use typescript-tslint-plugin
Use the plugin version of TS lint rather than the external version. Add the plugin as a local dev dependency and add the vscode extension that contributes the plugin as a recomended extension. This should enable the plugin when using the standard version of TS and when using the workspace version of TS
1 parent 66c71d7 commit 573af50

4 files changed

Lines changed: 41 additions & 2 deletions

File tree

.vscode/extensions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// See https://go.microsoft.com/fwlink/?LinkId=827846
33
// for the documentation about the extensions.json format
44
"recommendations": [
5-
"eg2.tslint",
5+
"ms-vscode.vscode-typescript-tslint-plugin",
66
"dbaeumer.vscode-eslint",
77
"msjsdiag.debugger-for-chrome"
88
]

.vscode/settings.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
"test/smoke/out/**": true,
2525
"src/vs/base/test/node/uri.test.data.txt": true
2626
},
27-
"tslint.enable": true,
2827
"lcov.path": [
2928
"./.build/coverage/lcov.info",
3029
"./.build/coverage-single/lcov.info"

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@
127127
"tslint": "^5.9.1",
128128
"typescript": "3.1.4",
129129
"typescript-formatter": "7.1.0",
130+
"typescript-tslint-plugin": "^0.0.5",
130131
"uglify-es": "^3.0.18",
131132
"underscore": "^1.8.2",
132133
"vinyl": "^0.4.5",

yarn.lock

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8813,6 +8813,14 @@ typescript-formatter@7.1.0:
88138813
commandpost "^1.0.0"
88148814
editorconfig "^0.15.0"
88158815

8816+
typescript-tslint-plugin@^0.0.5:
8817+
version "0.0.5"
8818+
resolved "https://registry.yarnpkg.com/typescript-tslint-plugin/-/typescript-tslint-plugin-0.0.5.tgz#69243f2cf4f1f99c3f0e2ee456056c6ffc858b38"
8819+
integrity sha512-OfdDTiaaFBMbyaTSgnGAEGK5ixiMX/5DvggBHVQAjDiJlkPJoBSO47BGMW10CWP6FxIclzA/mvz0qAqK6Kpaag==
8820+
dependencies:
8821+
minimatch "^3.0.4"
8822+
vscode-languageserver "^5.1.0"
8823+
88168824
typescript@3.1.4:
88178825
version "3.1.4"
88188826
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.1.4.tgz#c74ef7b3c2da65beff548b903022cb8c3cd997ed"
@@ -9331,6 +9339,32 @@ vscode-fsevents@0.3.10:
93319339
dependencies:
93329340
nan "^2.10.0"
93339341

9342+
vscode-jsonrpc@^4.0.0:
9343+
version "4.0.0"
9344+
resolved "https://registry.yarnpkg.com/vscode-jsonrpc/-/vscode-jsonrpc-4.0.0.tgz#a7bf74ef3254d0a0c272fab15c82128e378b3be9"
9345+
integrity sha512-perEnXQdQOJMTDFNv+UF3h1Y0z4iSiaN9jIlb0OqIYgosPCZGYh/MCUlkFtV2668PL69lRDO32hmvL2yiidUYg==
9346+
9347+
vscode-languageserver-protocol@3.13.0:
9348+
version "3.13.0"
9349+
resolved "https://registry.yarnpkg.com/vscode-languageserver-protocol/-/vscode-languageserver-protocol-3.13.0.tgz#710d8e42119bb3affb1416e1e104bd6b4d503595"
9350+
integrity sha512-2ZGKwI+P2ovQll2PGAp+2UfJH+FK9eait86VBUdkPd9HRlm8e58aYT9pV/NYanHOcp3pL6x2yTLVCFMcTer0mg==
9351+
dependencies:
9352+
vscode-jsonrpc "^4.0.0"
9353+
vscode-languageserver-types "3.13.0"
9354+
9355+
vscode-languageserver-types@3.13.0:
9356+
version "3.13.0"
9357+
resolved "https://registry.yarnpkg.com/vscode-languageserver-types/-/vscode-languageserver-types-3.13.0.tgz#b704b024cef059f7b326611c99b9c8753c0a18b4"
9358+
integrity sha512-BnJIxS+5+8UWiNKCP7W3g9FlE7fErFw0ofP5BXJe7c2tl0VeWh+nNHFbwAS2vmVC4a5kYxHBjRy0UeOtziemVA==
9359+
9360+
vscode-languageserver@^5.1.0:
9361+
version "5.1.0"
9362+
resolved "https://registry.yarnpkg.com/vscode-languageserver/-/vscode-languageserver-5.1.0.tgz#012a28f154cc7a848c443d217894942e4c3eeb39"
9363+
integrity sha512-CIsrgx2Y5VHS317g/HwkSTWYBIQmy0DwEyZPmB2pEpVOhYFwVsYpbiJwHIIyLQsQtmRaO4eA2xM8KPjNSdXpBw==
9364+
dependencies:
9365+
vscode-languageserver-protocol "3.13.0"
9366+
vscode-uri "^1.0.6"
9367+
93349368
vscode-nls-dev@3.2.2:
93359369
version "3.2.2"
93369370
resolved "https://registry.yarnpkg.com/vscode-nls-dev/-/vscode-nls-dev-3.2.2.tgz#5855c9b3e566dd00fd6108f9c2e1bd02c925c153"
@@ -9388,6 +9422,11 @@ vscode-textmate@^4.0.1:
93889422
dependencies:
93899423
oniguruma "^7.0.0"
93909424

9425+
vscode-uri@^1.0.6:
9426+
version "1.0.6"
9427+
resolved "https://registry.yarnpkg.com/vscode-uri/-/vscode-uri-1.0.6.tgz#6b8f141b0bbc44ad7b07e94f82f168ac7608ad4d"
9428+
integrity sha512-sLI2L0uGov3wKVb9EB+vIQBl9tVP90nqRvxSoJ35vI3NjxE8jfsE5DSOhWgSunHSZmKS4OCi2jrtfxK7uyp2ww==
9429+
93919430
vscode-xterm@3.9.0-beta13:
93929431
version "3.9.0-beta13"
93939432
resolved "https://registry.yarnpkg.com/vscode-xterm/-/vscode-xterm-3.9.0-beta13.tgz#ede9b4141eee579ec62f890df23c08b48ada17e8"

0 commit comments

Comments
 (0)