diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 0df0b6e86..e58369a41 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -55,6 +55,7 @@ To contribute changes, follow these instructions in the order given below: ```bash npm run format:all + npm run lint:fix ``` 1. If you have only modified Markdown documents (`*.md`), then you can alternatively execute the following to format only those documents: diff --git a/package.json b/package.json index 057557356..76114805b 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "format:all": "prettier --write .", "format:all:check": "prettier --check .", "lint": "eslint", + "lint:fix": "eslint --fix", "check:markdown-links": "find *.md docs/*.md -print0 | xargs -0 -n1 markdown-link-check", "update:cypress": "./scripts/update-cypress-latest.sh", "prepare": "husky"