From cad6af366e4e90bf2315ab48c02ef9ba3c1fe0e3 Mon Sep 17 00:00:00 2001 From: Dmitriy Shekhovtsov Date: Thu, 7 Apr 2016 18:49:12 +0300 Subject: [PATCH] fix(lint): added usage of tslint-config-valorsoft --- package.json | 2 +- tslint.json | 90 ++-------------------------------------------------- 2 files changed, 3 insertions(+), 89 deletions(-) diff --git a/package.json b/package.json index 9ed2bff48a..c167083e1f 100644 --- a/package.json +++ b/package.json @@ -103,7 +103,7 @@ "source-map-loader": "0.1.5", "systemjs-builder": "0.15.14", "ts-loader": "0.8.1", - "tslint": "3.6.0", + "tslint-config-valorsoft": "0.0.3", "typescript": "1.8.9", "typings": "0.7.12", "webpack": "1.12.14", diff --git a/tslint.json b/tslint.json index 437f5fb50c..119e1146ab 100644 --- a/tslint.json +++ b/tslint.json @@ -1,90 +1,4 @@ { - "rulesDirectory": "./node_modules/codelyzer/dist/src", - "rules": { - "align": [true, "parameters", "statements"], - "ban": false, - "class-name": true, - "comment-format": [true, "check-space"], - "curly": true, - "eofline": true, - "forin": true, - "indent": [true, "spaces"], - "interface-name": [true, "never-prefix"], - "jsdoc-format": true, - "label-position": true, - "label-undefined": true, - "max-line-length": true, - "member-access": [true, "check-accessor", "check-constructor"], - "member-ordering": [ - true, "public-before-private", "static-before-instance", - "variables-before-functions" - ], - "no-any": false, - "no-arg": true, - "no-bitwise": true, - "no-conditional-assignment": true, - "no-consecutive-blank-lines": true, - "no-console": true, - "no-construct": true, - "no-constructor-vars": true, - "no-debugger": true, - "no-duplicate-key": true, - "no-duplicate-variable": true, - "no-eval": true, - "no-inferrable-types": true, - "no-internal-module": true, - "no-null-keyword": true, - "no-require-imports": false, - "no-shadowed-variable": true, - "no-string-literal": true, - "no-switch-case-fall-through": true, - "no-trailing-whitespace": true, - "no-unreachable": true, - "no-unused-expression": true, - "no-unused-variable": [true, "check-parameters"], - "no-use-before-declare": true, - "no-var-keyword": true, - "no-var-requires": false, - "object-literal-sort-keys": false, - "one-line": [ - true, "check-catch", "check-else", "check-open-brace", "check-whitespace" - ], - "quotemark": [true, "single"], - "radix": true, - "semicolon": [true, "always"], - "switch-default": true, - "triple-equals": [true, "allow-null-check"], - "typedef": [ - true, "call-signature", "parameter", "arrow-parameter", - "property-declaration", "member-variable-declaration" - ], - "typedef-whitespace": [ - true, { - "call-signature": "nospace", - "index-signature": "nospace", - "parameter": "nospace", - "property-declaration": "nospace", - "variable-declaration": "nospace" - } - ], - "use-strict": [true, "check-module"], - "variable-name": [true, "ban-keywords"], - "whitespace": [ - false, "check-branch", "check-decl", "check-operator", "check-module", - "check-separator", "check-type", "check-typecast" - ], - "directive-selector-name": [true, "camelCase"], - "component-selector-name": [true, "kebab-case"], - "directive-selector-type": [true, "attribute"], - "component-selector-type": [true, "element"], - "directive-selector-prefix": [false], - "component-selector-prefix": [false], - "host-parameter-decorator": true, - "input-parameter-decorator": true, - "output-parameter-decorator": true, - "attribute-parameter-decorator": true, - "input-property-directive": true, - "output-property-directive": true, - "call-forward-ref": true - } + "extends": "./node_modules/tslint-config-valorsoft/tslint.json", + "rulesDirectory": "./node_modules/codelyzer/dist/src" }