diff --git a/hooks/pre-commit b/hooks/pre-commit index 034f5ff65..fc777952d 100755 --- a/hooks/pre-commit +++ b/hooks/pre-commit @@ -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 diff --git a/package.json b/package.json index e2bd31278..bce455d70 100644 --- a/package.json +++ b/package.json @@ -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",