Skip to content

Commit

Permalink
feat: Set Up Auto Fromatting (#212)
Browse files Browse the repository at this point in the history
* feat: Set Up Auto Fromatting

* remove formatting checkbox from PR template

---------

Co-authored-by: tanzimfh <51885607+tanzimfh@users.noreply.github.com>
  • Loading branch information
BorhanSaflo and tanzimfh authored Jan 9, 2025
1 parent 107cbc7 commit 3f2fe77
Show file tree
Hide file tree
Showing 4 changed files with 293 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@
### Checks before you create your pull request

- [ ] Did you read and follow article requirements?
- [ ] Did you run prettier (`pnpm format`)?
- [ ] Is it safe to rollback this change if anything goes wrong?
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pnpm lint-staged
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@
"deploy": "docusaurus deploy",
"serve": "docusaurus serve --no-open",
"clear": "docusaurus clear",
"format": "prettier --list-different --write \"**/*.{js,jsx,ts,tsx,json,md}\""
"format": "prettier --list-different --write \"**/*.{js,jsx,ts,tsx,json,md}\"",
"prepare": "husky"
},
"lint-staged": {
"*.{js,ts,json,css,md}": "pnpm format"
},
"browserslist": {
"production": [
Expand Down Expand Up @@ -51,6 +55,8 @@
"@docusaurus/module-type-aliases": "3.7.0",
"@docusaurus/tsconfig": "3.7.0",
"@docusaurus/types": "3.7.0",
"husky": "^9.1.7",
"lint-staged": "^15.3.0",
"prettier": "3.4.2",
"typescript": "5.7.2"
}
Expand Down
Loading

0 comments on commit 3f2fe77

Please sign in to comment.