From 2feb8740e815e01cc14191101b87afb158cbc25f Mon Sep 17 00:00:00 2001 From: ppetzold Date: Sun, 10 Oct 2021 15:06:38 +0200 Subject: [PATCH] add prettier and lint check to ci flow --- .github/workflows/main.yml | 2 ++ package.json | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4befe41..9976aa1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,6 +21,8 @@ jobs: with: node-version: ${{ matrix.node-version }} - run: npm ci + - run: npm run format -- --list-different + - run: npm run lint - run: npm run build - run: npm run test:cov - run: bash <(curl -s https://codecov.io/bash) diff --git a/package.json b/package.json index f1cc8c5..7d338fe 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "prebuild": "rimraf lib", "build": "tsc", "format": "prettier --write \"src/**/*.ts\"", - "lint": "eslint \"src/**/*.ts\" --fix", + "lint": "eslint -c .eslintrc.json --ext .ts --max-warnings 0 src", "test": "jest", "test:watch": "jest --watch", "test:cov": "jest --coverage", @@ -87,4 +87,4 @@ "dependencies": { "lodash": "^4.17.21" } -} +} \ No newline at end of file