ci: Add task for CI

This commit is contained in:
peaceiris 2020-03-27 18:07:37 +09:00
parent 0ac5822f71
commit f5ec9e9038
3 changed files with 17 additions and 4 deletions

View file

@ -8,6 +8,7 @@
"npm": ">=6.13.7"
},
"scripts": {
"all": "npm run format:check && npm run lint && npm test",
"lint": "eslint ./{src,__tests__}/**/*.ts",
"lint:fix": "eslint --fix ./{src,__tests__}/**/*.ts",
"test": "jest --coverage --verbose",
@ -28,8 +29,7 @@
"lint-staged": {
"src/**/*.ts": [
"prettier --check",
"eslint",
"jest --bail --findRelatedTests"
"eslint"
]
},
"repository": {