From 77afaa194b621df7277ac51364a6d3d7be70c87d Mon Sep 17 00:00:00 2001 From: Victor Korzunin Date: Tue, 14 Sep 2021 22:28:16 +0200 Subject: [PATCH] chore: improve configs --- .eslintignore | 5 +++++ .eslintrc.yml | 5 ----- .github/workflows/release.yml | 2 +- package.json | 3 ++- 4 files changed, 8 insertions(+), 7 deletions(-) create mode 100644 .eslintignore diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..bf36368 --- /dev/null +++ b/.eslintignore @@ -0,0 +1,5 @@ +coverage/* +dist/* +plop/* +prisma/* +jest.config.js diff --git a/.eslintrc.yml b/.eslintrc.yml index f8451e9..f219b5f 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -2,11 +2,6 @@ env: node: true jest: true root: true -ignorePatterns: - - dist - - plop - - prisma - - jest.config.js plugins: - jest - '@typescript-eslint' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index eb6a9cd..70ba33b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,7 +29,7 @@ jobs: # with: # node-version: 14 # - run: npm install - # - run: npm run coverage + # - run: npm run test:coverage # - uses: coverallsapp/github-action@master # with: # github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/package.json b/package.json index c7cc1fd..33e4eed 100644 --- a/package.json +++ b/package.json @@ -70,7 +70,8 @@ "prepublishOnly": "npm run build", "pretest": "npm run lint", "test": "jest --passWithNoTests", - "coverage": "npm run test -- --coverage", + "test:watch": "jest --watch", + "test:coverage": "jest --coverage", "lint": "eslint .", "prepare": "husky install" },