From cccd95562c0013e2fc49e2c13914c6222bc929dc Mon Sep 17 00:00:00 2001 From: davidcanonieto Date: Thu, 30 May 2019 17:47:59 +0100 Subject: [PATCH] Fix pre-commit hook (#4792) * Fix pre-commit hook * Remove excluded files from tslint lib config --- package.json | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 18e6f1377e..b920777509 100644 --- a/package.json +++ b/package.json @@ -234,8 +234,12 @@ "module": "./index.js", "typings": "./index.d.ts", "lint-staged": { - "*.ts": "npm run lint-lib -- --fix", - "*.scss": "npm run stylelint --syntax scss" + "linters": { + "**/demo-shell/**/*.ts": "npm run lint-lib -- --fix", + "**/lib/**/*.ts": "npm run lint-lib -- --fix", + "**/e2e/**/*.ts": "npm run lint-e2e -- --fix", + "*.scss": "npm run stylelint -- --fix" + } }, "husky": { "hooks": {