From c9f8b53aeeec434a29e2e4f9ae0a87b391ed75ce Mon Sep 17 00:00:00 2001 From: Filipp Riabchun Date: Mon, 8 Jan 2018 19:18:32 +0300 Subject: [PATCH] Merge pull request #2684 from storybooks/tslint-extract-exclusions Extract tslint exclusions out of package.json scripts --- package.json | 4 ++-- tslint.json | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index f87efd68f424..db764ec79e73 100644 --- a/package.json +++ b/package.json @@ -21,9 +21,9 @@ "docs:deploy:manual": "npm --prefix docs run deploy:manual", "docs:dev": "npm --prefix docs run dev", "github-release": "github-release-from-changelog", - "lint": "yarn lint:js . && yarn lint:ts && yarn lint:md .", + "lint": "yarn lint:js . && yarn lint:ts **/*.ts && yarn lint:md .", "lint:js": "cross-env NODE_ENV=production eslint --cache --cache-location=.cache/eslint --ext .js,.jsx,.json", - "lint:ts": "tslint -p . -t stylish -e '{**/node_modules/**,**/dist/**,lib/cli/test/**,**/storybook-static/**}' **/*.ts", + "lint:ts": "tslint -p . -c tslint.json -t stylish", "lint:md": "remark", "publish": "lerna publish", "postpublish": "yarn --cwd lib/cli test -o", diff --git a/tslint.json b/tslint.json index 7ab31c67093e..5835bcdb92b4 100644 --- a/tslint.json +++ b/tslint.json @@ -146,5 +146,13 @@ "no-access-missing-member": true, "templates-use-public": true, "invoke-injectable": true + }, + "linterOptions": { + "exclude": [ + "lib/cli/test/**", + "**/node_modules/**", + "**/dist/**", + "**/storybook-static/**" + ] } }