From 6f356476fabf5e5a4d5455661402174249c8ba88 Mon Sep 17 00:00:00 2001 From: Michael Lancaster Date: Mon, 26 Mar 2018 15:42:33 -0700 Subject: [PATCH] fix: tslint pretest cli --- components/badge/badge.test.tsx | 1 - package.json | 2 +- tsconfig.json | 5 ++++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/components/badge/badge.test.tsx b/components/badge/badge.test.tsx index d1f2d2c02..b4638553d 100644 --- a/components/badge/badge.test.tsx +++ b/components/badge/badge.test.tsx @@ -21,7 +21,6 @@ describe("Badge", () => { .toJSON()).toMatchSnapshot() }); - it("warning", () => { expect(renderer .create(warning) diff --git a/package.json b/package.json index 4e3a7e7e1..59d24676c 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "preinstall": "./scripts/pre-install", "start": "NODE_ENV=development npm run storybook --root ./ ", "dist": "npm run clean && NODE_ENV=production webpack -p --config ./webpack.config.js", - "pretest": "tslint -c tslint.json '(components|shared)/**/*.ts'", + "pretest": "tslint -c tslint.json --project tsconfig.json", "test": "jest", "commitlint": "commitlint -e", "storybook": "start-storybook -p 6006", diff --git a/tsconfig.json b/tsconfig.json index 19abf7c31..ef34f9ed9 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -16,5 +16,8 @@ "typeRoots": ["node_modules/@types"], "lib": ["es5", "es6", "esnext", "dom"] }, - "include": ["./components/**/*"] + "include": [ + "./components/**/*", + "./shared/**/*" + ] }