add prettier and lint check to ci flow
This commit is contained in:
parent
20f3e7209c
commit
2feb8740e8
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@ -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)
|
||||
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user