From 686c17ac62a0caba9806eebfda660497f1cf44a1 Mon Sep 17 00:00:00 2001 From: Michael Lancaster Date: Mon, 26 Mar 2018 16:30:23 -0700 Subject: [PATCH] fix: tslint pretest cli --- components/badge/badge.test.tsx | 1 - package.json | 3 ++- tsconfig.json | 5 ++++- 3 files changed, 6 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..2d9641201 100644 --- a/package.json +++ b/package.json @@ -6,8 +6,9 @@ "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", + "test:watch": "jest --watch", "commitlint": "commitlint -e", "storybook": "start-storybook -p 6006", "build:storybook": "build-storybook", 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/**/*" + ] }