Skip to content

Commit 8516b88

Browse files
author
Alexander Zhukov
committed
build(aio): add the vs code settings, setup a tslint language service
1 parent 9ebf30a commit 8516b88

File tree

5 files changed

+33
-0
lines changed

5 files changed

+33
-0
lines changed

.vscode/launch.json

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"type": "chrome",
6+
"request": "launch",
7+
"name": "Launch Chrome against localhost",
8+
"url": "http://localhost:4200",
9+
"sourceMaps": true,
10+
"webRoot": "${workspaceRoot}"
11+
},
12+
{
13+
"type": "chrome",
14+
"request": "attach",
15+
"name": "Attach to Chrome",
16+
"port": 9222,
17+
"sourceMaps": true,
18+
"webRoot": "${workspaceRoot}"
19+
}
20+
]
21+
}

.vscode/settings.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"typescript.tsdk": "./node_modules/typescript/lib",
3+
"tslint.enable": false
4+
}

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
"ts-node": "2.0.0",
7272
"tslint": "4.5.1",
7373
"tslint-eslint-rules": "3.4.0",
74+
"tslint-language-service": "0.9.2",
7475
"typescript": "2.2.2"
7576
}
7677
}

tsconfig.json

+3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
"lib": [
1616
"es2016",
1717
"dom"
18+
],
19+
"plugins": [
20+
{ "name": "tslint-language-service"}
1821
]
1922
}
2023
}

yarn.lock

+4
Original file line numberDiff line numberDiff line change
@@ -5493,6 +5493,10 @@ [email protected]:
54935493
dependencies:
54945494
doctrine "^0.7.2"
54955495

5496+
5497+
version "0.9.2"
5498+
resolved "https://registry.yarnpkg.com/tslint-language-service/-/tslint-language-service-0.9.2.tgz#76e0ed3e92677a5bd5bc91e4a1335d9b284469f3"
5499+
54965500
54975501
version "4.5.1"
54985502
resolved "https://registry.yarnpkg.com/tslint/-/tslint-4.5.1.tgz#05356871bef23a434906734006fc188336ba824b"

0 commit comments

Comments
 (0)