Skip to content

Commit

Permalink
feat(tslint): add validation for selector prefix
Browse files Browse the repository at this point in the history
Close #1565.
  • Loading branch information
mgechev authored and filipesilva committed Aug 12, 2016
1 parent 8c1f20d commit 9ff8c09
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion addon/ng2/blueprints/ng2/files/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"@types/jasmine": "^2.2.30",
"@types/protractor": "^1.5.16",
"angular-cli": "<%= version %>",
"codelyzer": "0.0.26",
"codelyzer": "~0.0.26",
"jasmine-core": "2.4.1",
"jasmine-spec-reporter": "2.5.0",
"karma": "0.13.22",
Expand Down
2 changes: 2 additions & 0 deletions addon/ng2/blueprints/ng2/files/tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@
"check-type"
],

"directive-selector-prefix": [true, "<%= prefix %>"],
"component-selector-prefix": [true, "<%= prefix %>"],
"directive-selector-name": [true, "camelCase"],
"component-selector-name": [true, "kebab-case"],
"directive-selector-type": [true, "attribute"],
Expand Down

0 comments on commit 9ff8c09

Please sign in to comment.