Update linter

This commit is contained in:
Tom Hu
2021-01-02 19:03:40 -05:00
parent 5dca80cf76
commit 431265badf
2 changed files with 3 additions and 1 deletions

View File

@@ -1,6 +1,8 @@
#!/usr/bin/env bash
npm i --package-lock-only
npm run lint --fix
npm run build
git add src/
git add dist/index.js
git add package-lock.json

View File

@@ -4,7 +4,7 @@
"description": "Upload coverage reports to Codecov from GitHub Actions",
"main": "index.js",
"scripts": {
"lint": "eslint",
"lint": "eslint src/*.*",
"test": "yarn run test-script && yarn run test-calculator && yarn run test-coverage",
"test-calculator": "jest --testPathPattern=demo/calculator/ --coverage --coverageDirectory=coverage/calculator",
"test-coverage": "jest --testPathPattern=demo/coverage-test/ --coverage --coverageDirectory=coverage/coverage-test",