Skip to content

Commit ee4a5f4

Browse files
committed
feat(@angular/cli): use tslint language service
tslint-language-service can support tslint rules that require the type checker share program representation with TypeScript (no need to reanalyze) Fixes: #6125
1 parent 2a52691 commit ee4a5f4

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

packages/@angular/cli/blueprints/ng/files/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@
4646
"karma-jasmine-html-reporter": "^0.2.2",
4747
"protractor": "~5.1.2",
4848
"ts-node": "~3.2.0",
49-
"tslint": "~5.3.2",<% } %>
49+
"tslint": "~5.3.2",
50+
"tslint-language-service": "^0.9.6",<% } %>
5051
"typescript": "~2.3.3"
5152
}
5253
}

packages/@angular/cli/blueprints/ng/files/tsconfig.json

+6-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
"lib": [
1515
"es2017",
1616
"dom"
17-
]
17+
]<% if (!minimal) { %>,
18+
"plugins": [
19+
{
20+
"name": "tslint-language-service"
21+
}
22+
]<% } %>
1823
}
1924
}

tests/e2e/tests/commands/new/new-minimal.ts

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export default function() {
2222
.then(() => expectToFail(() => expectFileToMatch('package.json', '"protractor":')))
2323
.then(() => expectToFail(() => expectFileToMatch('package.json', '"karma":')))
2424
.then(() => expectToFail(() => expectFileToMatch('package.json', '"jasmine-core":')))
25+
.then(() => expectToFail(() => expectFileToMatch('package.json', '"tslint-language-service":')))
2526

2627
// Try to run a build.
2728
.then(() => ng('build'));

0 commit comments

Comments
 (0)