From: Chocobozzz Date: Sat, 30 Apr 2016 06:48:00 +0000 (+0200) Subject: Update codelyzer X-Git-Tag: v0.0.1-alpha~973 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=a563a494f010236ed530c494f152cb32606e94d0;p=github%2FChocobozzz%2FPeerTube.git Update codelyzer --- diff --git a/client/package.json b/client/package.json index 0638acaac..db93ac681 100644 --- a/client/package.json +++ b/client/package.json @@ -36,7 +36,7 @@ "zone.js": "0.6.12" }, "devDependencies": { - "codelyzer": "0.0.12", + "codelyzer": "0.0.18", "tslint": "^3.7.4", "typescript": "^1.8.10", "typings": "^0.8.1" diff --git a/client/tslint.json b/client/tslint.json index 6a40b5b11..8e4e3fca1 100644 --- a/client/tslint.json +++ b/client/tslint.json @@ -1,5 +1,5 @@ { - "rulesDirectory": ["./node_modules/codelyzer/dist/src"], + "rulesDirectory": ["./node_modules/codelyzer"], "rules": { "class-name": true, "curly": false, @@ -34,13 +34,23 @@ "triple-equals": true, "variable-name": false, + "directive-selector-name": [true, "camelCase"], "component-selector-name": [true, "kebab-case"], + "directive-selector-type": [true, "attribute"], "component-selector-type": [true, "element"], - "host-parameter-decorator": true, - "input-parameter-decorator": true, - "output-parameter-decorator": true, - "attribute-parameter-decorator": true, - "input-property-directive": true, - "output-property-directive": true + "directive-selector-prefix": [true, "my"], + "component-selector-prefix": [true, "my"], + "use-input-property-decorator": true, + "use-output-property-decorator": true, + "use-host-property-decorator": true, + "no-attribute-parameter-decorator": true, + "no-input-rename": true, + "no-output-rename": true, + "no-forward-ref" :true, + "use-life-cycle-interface": true, + "use-pipe-transform-interface": true, + "pipe-naming": [true, "camelCase", "my"], + "component-class-suffix": true, + "directive-class-suffix": true } }