Skip to content

Commit 9ff8c09

Browse files
mgechevfilipesilva
authored andcommitted
feat(tslint): add validation for selector prefix
Close #1565.
1 parent 8c1f20d commit 9ff8c09

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

addon/ng2/blueprints/ng2/files/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"@types/jasmine": "^2.2.30",
3838
"@types/protractor": "^1.5.16",
3939
"angular-cli": "<%= version %>",
40-
"codelyzer": "0.0.26",
40+
"codelyzer": "~0.0.26",
4141
"jasmine-core": "2.4.1",
4242
"jasmine-spec-reporter": "2.5.0",
4343
"karma": "0.13.22",

addon/ng2/blueprints/ng2/files/tslint.json

+2
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@
9393
"check-type"
9494
],
9595

96+
"directive-selector-prefix": [true, "<%= prefix %>"],
97+
"component-selector-prefix": [true, "<%= prefix %>"],
9698
"directive-selector-name": [true, "camelCase"],
9799
"component-selector-name": [true, "kebab-case"],
98100
"directive-selector-type": [true, "attribute"],

0 commit comments

Comments
 (0)