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:
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)

View File

@ -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"
}
}
}