Skip to content

Commit

Permalink
chore: update and config husky and lint staged
Browse files Browse the repository at this point in the history
  • Loading branch information
nimaa77 committed Apr 20, 2023
1 parent 6c566ee commit 29883b3
Show file tree
Hide file tree
Showing 3 changed files with 298 additions and 1,739 deletions.
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn lint-staged
26 changes: 11 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,17 @@
"private": true,
"version": "independent",
"devDependencies": {
"husky": "^4.2.3",
"lint-staged": "^10.0.8",
"prettier": "^1.19.1"
"lint-staged": "^13.2.1",
"prettier": "^2.8.7",
"husky": "^8.0.0"
},
"workspaces": [
"packages/*"
],
"scripts": {
"format": "prettier --trailing-comma es5 --single-quote --semi --write \"**/*.+(js|jsx|json|yml|yaml|css|less|scss|ts|tsx|md|mdx)\"",
"publish-packages": "turbo run build lint test && changeset version && changeset publish"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"**/*.+(js|jsx|json|yml|yaml|css|less|scss|ts|tsx|md|mdx)": [
"prettier --trailing-comma es5 --single-quote --semi --write",
"git add"
]
"publish-packages": "turbo run build lint test && changeset version && changeset publish",
"prepare": "husky install"
},
"prettier": {
"trailingComma": "es5",
Expand All @@ -33,5 +23,11 @@
"dependencies": {
"@changesets/cli": "^2.26.1",
"turbo": "^1.9.3"
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"turbo lint",
"prettier --write"
]
}
}
Loading

0 comments on commit 29883b3

Please sign in to comment.