Skip to content

Commit

Permalink
chore(project): update husky, lint-staged, commitlint (#9369)
Browse files Browse the repository at this point in the history
* chore(project): update husky, lint-staged, commitlint

* chore(project): remove git add from lint-staged tasks

* chore(project): run yarn dedupe

* chore(project): update yarn.lock
  • Loading branch information
joshblack authored Aug 5, 2021
1 parent ad50455 commit daca40f
Show file tree
Hide file tree
Showing 75 changed files with 223 additions and 468 deletions.
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install commitlint --edit "$1"
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install lint-staged
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/del-npm-5.1.0-eb4ac07f4c-d9e4ef2c12.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
20 changes: 9 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"lint:styles": "stylelint '**/*.{css,scss}' --report-needless-disables --report-invalid-scope-disables",
"sync": "carbon-cli sync",
"test": "cross-env BABEL_ENV=test jest",
"test:e2e": "cross-env BABEL_ENV=test jest -c jest.e2e.config.js"
"test:e2e": "cross-env BABEL_ENV=test jest -c jest.e2e.config.js",
"postinstall": "husky install"
},
"resolutions": {
"ast-types": "^0.14.0",
Expand All @@ -44,8 +45,8 @@
"@babel/preset-react": "^7.14.5",
"@babel/runtime": "^7.14.6",
"@carbon/cli": "workspace:packages/cli",
"@commitlint/cli": "^8.3.5",
"@commitlint/config-conventional": "^8.3.4",
"@commitlint/cli": "^13.1.0",
"@commitlint/config-conventional": "^13.1.0",
"@percy/cli": "^1.0.0-beta.61",
"@testing-library/dom": "^8.1.0",
"@testing-library/jest-dom": "^5.14.1",
Expand All @@ -58,11 +59,11 @@
"eslint": "^7.28.0",
"fs-extra": "^8.1.0",
"glob": "^7.1.4",
"husky": "^4.0.10",
"husky": "^7.0.0",
"jest": "^27.0.6",
"jest-junit": "^10.0.0",
"lerna": "^3.20.2",
"lint-staged": "^9.5.0",
"lint-staged": "^11.1.1",
"node-gyp": "^7.1.2",
"prettier": "^2.2.1",
"react": "^16.8.6",
Expand Down Expand Up @@ -118,17 +119,14 @@
"lint-staged": {
"**/*.js": [
"prettier --write",
"eslint",
"git add"
"eslint"
],
"**/*.scss": [
"prettier --write",
"stylelint --report-needless-disables --report-invalid-scope-disables --allow-empty-input",
"git add"
"stylelint --report-needless-disables --report-invalid-scope-disables --allow-empty-input"
],
"!(*sass).md": [
"prettier --write",
"git add"
"prettier --write"
]
},
"eslintConfig": {
Expand Down
Loading

0 comments on commit daca40f

Please sign in to comment.