add prettier and lint check to ci flow

This commit is contained in:
ppetzold 2021-10-10 15:06:38 +02:00
parent 20f3e7209c
commit 2feb8740e8
2 changed files with 4 additions and 2 deletions

View File

@ -21,6 +21,8 @@ jobs:
with: with:
node-version: ${{ matrix.node-version }} node-version: ${{ matrix.node-version }}
- run: npm ci - run: npm ci
- run: npm run format -- --list-different
- run: npm run lint
- run: npm run build - run: npm run build
- run: npm run test:cov - run: npm run test:cov
- run: bash <(curl -s https://codecov.io/bash) - run: bash <(curl -s https://codecov.io/bash)

View File

@ -22,7 +22,7 @@
"prebuild": "rimraf lib", "prebuild": "rimraf lib",
"build": "tsc", "build": "tsc",
"format": "prettier --write \"src/**/*.ts\"", "format": "prettier --write \"src/**/*.ts\"",
"lint": "eslint \"src/**/*.ts\" --fix", "lint": "eslint -c .eslintrc.json --ext .ts --max-warnings 0 src",
"test": "jest", "test": "jest",
"test:watch": "jest --watch", "test:watch": "jest --watch",
"test:cov": "jest --coverage", "test:cov": "jest --coverage",