Skip to content

Commit

Permalink
build(deps-dev): Install and configure husky and lint-staged
Browse files Browse the repository at this point in the history
  • Loading branch information
chloe463 committed Dec 5, 2024
1 parent a79246f commit 11e0fea
Show file tree
Hide file tree
Showing 3 changed files with 309 additions and 8 deletions.
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
yarn lint-staged --concurrent=false
19 changes: 12 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@
"@types/estree": "^1.0.6",
"@types/graphql": "^14.5.0",
"@types/jest": "^27.4.0",
"husky": "^9.1.7",
"jest": "^29.7.0",
"lerna": "^4.0.0",
"lint-staged": "^15.2.10",
"mock-fs": "^5.0.0",
"pacote": "^11.3.4",
"scaffdog": "^1.0.1",
Expand All @@ -20,23 +22,26 @@
"workspaces": [
"packages/*"
],
"frolint": {
"prettier": {
"config": "./.prettierrc"
}
"lint-staged": {
"*.{ts,tsx,js,mjs}": [
"yarn format",
"yarn lint"
],
"*.json": "yarn format"
},
"scripts": {
"postinstall": "lerna bootstrap",
"test": "FORCE_COLOR=1 lerna run --stream test",
"test:watch": "FORCE_COLOR=1 lerna exec --stream --ignore prettier-config-wantedly -- npm run test -- --watch",
"test:watch:frolint": "lerna exec \"npm run test -- --watch\" --scope frolint",
"test:update": "lerna run --stream test -- -u",
"lint": "frolint --branch master",
"lint:ci": "frolint --expect-no-errors",
"format": "prettier --write",
"lint": "eslint --cache",
"build": "lerna run build",
"build:watch": "lerna run --parallel build:watch",
"prerelease": "yarn install --force && yarn run build",
"release": "yarn changeset publish",
"clean": "yarn lerna clean -y && rm -r packages/*/lib"
"clean": "yarn lerna clean -y && rm -r packages/*/lib",
"prepare": "husky"
}
}
Loading

0 comments on commit 11e0fea

Please sign in to comment.