chore: add husky and lint-staged packages

This commit is contained in:
Sat Naing
2022-10-16 21:37:00 +06:30
parent 6fa8990f3d
commit 80aee6bedb
2 changed files with 922 additions and 1 deletions
+912
View File
File diff suppressed because it is too large Load Diff
+10 -1
View File
@@ -11,7 +11,8 @@
"lint": "eslint .", "lint": "eslint .",
"format:check": "prettier --check .", "format:check": "prettier --check .",
"format": "prettier --write .", "format": "prettier --write .",
"cz": "cz" "cz": "cz",
"prepare": "husky install"
}, },
"dependencies": { "dependencies": {
"@astrojs/rss": "^1.0.1", "@astrojs/rss": "^1.0.1",
@@ -39,6 +40,8 @@
"eslint-plugin-prettier": "^4.2.1", "eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.31.10", "eslint-plugin-react": "^7.31.10",
"eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-react-hooks": "^4.6.0",
"husky": "^8.0.0",
"lint-staged": "^13.0.3",
"prettier": "^2.7.1", "prettier": "^2.7.1",
"react": "^18.2.0", "react": "^18.2.0",
"react-dom": "^18.2.0" "react-dom": "^18.2.0"
@@ -47,5 +50,11 @@
"commitizen": { "commitizen": {
"path": "./node_modules/cz-conventional-changelog" "path": "./node_modules/cz-conventional-changelog"
} }
},
"lint-staged": {
"*": [
"eslint",
"prettier --write"
]
} }
} }