From 65b73a237cc004eff319d63b8eb601fffd594d6e Mon Sep 17 00:00:00 2001 From: Aarni Halinen Date: Fri, 5 Jul 2019 00:46:52 +0300 Subject: [PATCH] Replace TSLint --- package.json | 4 +- tslint.json | 105 --------------------------------------------------- 2 files changed, 1 insertion(+), 108 deletions(-) delete mode 100644 tslint.json diff --git a/package.json b/package.json index 411be59..96e6d2d 100644 --- a/package.json +++ b/package.json @@ -23,9 +23,7 @@ "build": "NODE_ENV=production npm-run-all build:client build:server", "build:server": "webpack -p --config=configs/webpack/prod.js --env.platform=server", "build:client": "webpack -p --config=configs/webpack/prod.js --env.platform=client", - "lint": "npm run lint:ts && npm run lint:sass", - "lint:ts": "tslint -p tsconfig.json --format stylish --exclude node_modules", - "lint:ts:fix": "tslint -p tsconfig.json --format stylish --exclude node_modules --fix", + "lint": "npm run lint:es && npm run lint:sass", "lint:es": "eslint './src/**/*.ts*'", "lint:es:fix": "eslint --fix './src/**/*.ts*'", "lint:sass": "stylelint ./src/**/**/*.scss ./src/**/*.scss ./src/*.scss", diff --git a/tslint.json b/tslint.json deleted file mode 100644 index fd2e241..0000000 --- a/tslint.json +++ /dev/null @@ -1,105 +0,0 @@ -{ - "jsRules": { - "class-name": true, - "comment-format": [ - true, - "check-space" - ], - "eofline": true, - "indent": [ - true, - "spaces", - 2 - ], - "no-duplicate-variable": true, - "no-eval": true, - "no-trailing-whitespace": true, - "no-unsafe-finally": true, - "one-line": [ - true, - "check-open-brace", - "check-whitespace" - ], - "quotemark": [ - true, - "double" - ], - "semicolon": [ - true, - "always" - ], - "triple-equals": [ - true, - "allow-null-check" - ], - "variable-name": [ - true, - "ban-keywords" - ], - "whitespace": [ - true, - "check-branch", - "check-decl", - "check-operator", - "check-separator", - "check-type" - ] - }, - "rules": { - "class-name": true, - "comment-format": [ - true, - "check-space" - ], - "eofline": true, - "indent": [ - true, - "spaces", - 2 - ], - "no-eval": true, - "no-internal-module": true, - "no-trailing-whitespace": true, - "no-unsafe-finally": true, - "no-var-keyword": true, - "one-line": [ - true, - "check-open-brace", - "check-whitespace" - ], - "quotemark": [ - true, - "double" - ], - "semicolon": [ - true, - "always" - ], - "triple-equals": [ - true, - "allow-null-check" - ], - "typedef-whitespace": [ - true, - { - "call-signature": "nospace", - "index-signature": "nospace", - "parameter": "nospace", - "property-declaration": "nospace", - "variable-declaration": "nospace" - } - ], - "variable-name": [ - true, - "ban-keywords" - ], - "whitespace": [ - true, - "check-branch", - "check-decl", - "check-operator", - "check-separator", - "check-type" - ] - } -} \ No newline at end of file