docs: linting notes, npm: lint scripts

This commit is contained in:
hayzamjs 2024-06-02 21:13:03 +05:30
parent 0436480a44
commit ad0ed2269f
Signed by: hayzam
GPG key ID: 13B4C5B544B53947
2 changed files with 8 additions and 3 deletions

View file

@ -19,3 +19,7 @@ Copy the `.env.sample` file to `.env` and fill in the required values.
```bash
npm run test
```
## Contributing
Use `npm run lint:check` to check for linting errors and `npm run lint:fix` to fix them.

View file

@ -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": [],