Alter husky scripts to use yarn instead of npx for lint-staged

This commit is contained in:
neatchee 2023-03-27 11:47:53 -07:00
parent 8ad6754ba5
commit 584a5753fe
3 changed files with 4 additions and 4 deletions

View file

@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npx lint-staged
yarn lint-staged

View file

@ -36,8 +36,8 @@
"@rails/ujs": "^6.1.7",
"abortcontroller-polyfill": "^1.7.5",
"array-includes": "^3.1.6",
"atrament": "0.2.4",
"arrow-key-navigation": "^1.2.0",
"atrament": "0.2.4",
"autoprefixer": "^10.4.14",
"axios": "^1.3.4",
"babel-loader": "^8.3.0",
@ -154,7 +154,7 @@
"husky": "^8.0.3",
"jest": "^29.5.0",
"jest-environment-jsdom": "^29.5.0",
"lint-staged": "^13.1.2",
"lint-staged": "^13.2.0",
"postcss-scss": "^4.0.6",
"prettier": "^2.8.5",
"raf": "^3.4.1",

View file

@ -7188,7 +7188,7 @@ lines-and-columns@^1.1.6:
resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.1.6.tgz#1c00c743b433cd0a4e80758f7b64a57440d9ff00"
integrity sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA=
lint-staged@^13.1.2:
lint-staged@^13.2.0:
version "13.2.0"
resolved "https://registry.yarnpkg.com/lint-staged/-/lint-staged-13.2.0.tgz#b7abaf79c91cd36d824f17b23a4ce5209206126a"
integrity sha512-GbyK5iWinax5Dfw5obm2g2ccUiZXNGtAS4mCbJ0Lv4rq6iEtfBSjOYdcbOtAIFtM114t0vdpViDDetjVTSd8Vw==