Skip to content
This repository was archived by the owner on Jul 21, 2022. It is now read-only.

Commit 1d62cb9

Browse files
mgechevBrocco
authored andcommitted
chore(blueprints): update codelyzer
This version includes template support and is compatible with the latest changes in the TemplateParser introduced by Angular 2.0.2. The following new rules are introduced: ``` // Does not allow access to private & protected // in inline templates "templates-use-public": true, // Makes sure `@Injectable()` is invoked and not // used as `@Injectable`. "invoke-injectable": true ``` There's one more rule which verifies if all members accessed in templates are defined in the component's controller but doesn't check the inheritance chain so I'll open a PR for it once we have the entire functionality implemented. Close angular#2615
1 parent 9120012 commit 1d62cb9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"@types/jasmine": "^2.2.30",
3737
"@types/node": "^6.0.42",
3838
"angular-cli": "<%= version %>",
39-
"codelyzer": "~0.0.26",
39+
"codelyzer": "1.0.0-beta.1",
4040
"jasmine-core": "2.4.1",
4141
"jasmine-spec-reporter": "2.5.0",
4242
"karma": "1.2.0",

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@
107107
"use-life-cycle-interface": true,
108108
"use-pipe-transform-interface": true,
109109
"component-class-suffix": true,
110-
"directive-class-suffix": true
110+
"directive-class-suffix": true,
111+
"templates-use-public": true,
112+
"invoke-injectable": true
111113
}
112114
}

0 commit comments

Comments
 (0)