Skip to content

Commit

Permalink
9. Husky, lint-staged and others
Browse files Browse the repository at this point in the history
  • Loading branch information
sethidden committed Aug 31, 2023
1 parent eebc967 commit 96b1a3e
Show file tree
Hide file tree
Showing 7 changed files with 224 additions and 544 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"

npx lint-staged
3 changes: 3 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"*{.js,.ts}": ["eslint"]
}
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
16
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@
"@vue-storefront/jest-config": "^0.0.2",
"@vue-storefront/rollup-config": "^0.0.2",
"cross-env": "^6.0.3",
"husky": "^4.2.3",
"husky": "^8.0.3",
"jest": "^27.0.6",
"lerna": "^3.15.0",
"lint-staged": "^10.0.7",
"lint-staged": "^13.2.2",
"rimraf": "^5.0.0",
"rollup": "^2.59.0",
"ts-jest": "^27.0.3",
Expand Down
3 changes: 0 additions & 3 deletions packages/middleware/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,5 @@
"@types/node": "^12.12.2",
"nock": "^13.2.9",
"supertest": "^6.3.1"
},
"publishConfig": {
"access": "public"
}
}
9 changes: 1 addition & 8 deletions packages/sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,15 @@
"@typescript-eslint/parser": "^5.47.0",
"babel-cli": "^6.26.0",
"babel-preset-node": "^5.1.1",
"commitizen": "^4.2.5",
"cross-env": "^7.0.3",
"eslint": "8.22.0",
"eslint-config-prettier": "^8.3.0",
"eslint-import-resolver-alias": "^1.1.2",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-prettier": "^4.2.1",
"husky": "^7.0.4",
"nodemon": "^2.0.20",
"prettier": "^2.8.1",
"ts-jest": "^29.0.2",
"ts-node-dev": "^2.0.0",
"typescript": "4.8.2"
"ts-node-dev": "^2.0.0"
},
"engines": {
"npm": ">=7.0.0",
Expand All @@ -58,9 +54,6 @@
"disableScopeLowerCase": true
}
},
"publishConfig": {
"access": "public"
},
"dependencies": {
"@changesets/changelog-github": "^0.4.8",
"@changesets/cli": "^2.26.1"
Expand Down
Loading

0 comments on commit 96b1a3e

Please sign in to comment.