diff --git a/README.md b/README.md index e9a8ef7..78dc519 100644 --- a/README.md +++ b/README.md @@ -18,4 +18,8 @@ Copy the `.env.sample` file to `.env` and fill in the required values. ```bash npm run test -``` \ No newline at end of file +``` + +## Contributing + +Use `npm run lint:check` to check for linting errors and `npm run lint:fix` to fix them. \ No newline at end of file diff --git a/package.json b/package.json index c065d76..517eb41 100644 --- a/package.json +++ b/package.json @@ -5,14 +5,15 @@ "main": "index.js", "type": "module", "scripts": { - "lint": "semistandard --fix tests/**/*.js", + "lint:check": "semistandard tests/**/*.js" + "lint:fix": "semistandard --fix tests/**/*.js", "codegen": "npx playwright codegen", "test": "playwright test", "prepare": "npm run lint" }, "husky": { "hooks": { - "pre-commit": "npm run lint" + "pre-commit": "npm run lint:fix" } }, "keywords": [],