Skip to content

Commit dd7b74d

Browse files
mgechevhansl
authored andcommitted
chore(blueprints): update tslint and codelyzer (#3304)
1. Update to tslint ^4.0.2. 2. Update to codelyzer 2.0.0-beta.1 which includes external template support. 3. Drop deprecated tslint rules. 4. Update to the latest rule changes in codelyzer.
1 parent d1037df commit dd7b74d

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

packages/angular-cli/blueprints/ng2/files/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"@types/jasmine": "2.5.38",
3838
"@types/node": "^6.0.42",
3939
"angular-cli": "<%= version %>",
40-
"codelyzer": "~1.0.0-beta.3",
40+
"codelyzer": "~2.0.0-beta.1",
4141
"jasmine-core": "2.5.2",
4242
"jasmine-spec-reporter": "2.5.0",
4343
"karma": "1.2.0",
@@ -47,7 +47,7 @@
4747
"karma-remap-istanbul": "^0.2.1",
4848
"protractor": "4.0.9",
4949
"ts-node": "1.2.1",
50-
"tslint": "3.13.0",
50+
"tslint": "^4.0.2",
5151
"typescript": "~2.0.3",
5252
"webdriver-manager": "10.2.5"
5353
}

packages/angular-cli/blueprints/ng2/files/tslint.json

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
"spaces"
1717
],
1818
"label-position": true,
19-
"label-undefined": true,
2019
"max-line-length": [
2120
true,
2221
140
@@ -39,7 +38,6 @@
3938
],
4039
"no-construct": true,
4140
"no-debugger": true,
42-
"no-duplicate-key": true,
4341
"no-duplicate-variable": true,
4442
"no-empty": false,
4543
"no-eval": true,
@@ -49,8 +47,6 @@
4947
"no-switch-case-fall-through": true,
5048
"no-trailing-whitespace": true,
5149
"no-unused-expression": true,
52-
"no-unused-variable": true,
53-
"no-unreachable": true,
5450
"no-use-before-declare": true,
5551
"no-var-keyword": true,
5652
"object-literal-sort-keys": false,
@@ -93,12 +89,8 @@
9389
"check-type"
9490
],
9591

96-
"directive-selector-prefix": [true, "<%= prefix %>"],
97-
"component-selector-prefix": [true, "<%= prefix %>"],
98-
"directive-selector-name": [true, "camelCase"],
99-
"component-selector-name": [true, "kebab-case"],
100-
"directive-selector-type": [true, "attribute"],
101-
"component-selector-type": [true, "element"],
92+
"directive-selector": [true, "attribute", "<%= prefix %>", "camelCase"],
93+
"component-selector": [true, "element", "<%= prefix %>", "kebab-case"],
10294
"use-input-property-decorator": true,
10395
"use-output-property-decorator": true,
10496
"use-host-property-decorator": true,
@@ -108,6 +100,7 @@
108100
"use-pipe-transform-interface": true,
109101
"component-class-suffix": true,
110102
"directive-class-suffix": true,
103+
"no-access-missing-member": true,
111104
"templates-use-public": true,
112105
"invoke-injectable": true
113106
}

0 commit comments

Comments
 (0)