diff --git a/package.json b/package.json index 988711f..a13ae09 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,8 @@ "src" ], "scripts": { - "lint": "eslint src test", + "lint": "eslint src test --ext .ts", + "pretest": "npm run lint -- --fix", "test": "egg-bin test", "ci": "egg-bin cov", "contributors": "git-contributor",