Use pnpm for lint-staged files

[MAILPOET-6370]
This commit is contained in:
Rostislav Wolny
2025-01-14 14:11:40 +01:00
committed by Oluwaseun Olorunsola
parent 142b0f3d2c
commit b2a0f09a7f

View File

@ -17,9 +17,9 @@
"format": "./node_modules/.bin/prettier --config .prettierrc.js --write 'src/**/*.{js,jsx,json,ts,tsx,yml,yaml,scss}'" "format": "./node_modules/.bin/prettier --config .prettierrc.js --write 'src/**/*.{js,jsx,json,ts,tsx,yml,yaml,scss}'"
}, },
"lint-staged": { "lint-staged": {
"*.{js,jsx,json,ts,tsx,yml,yaml,scss}": "npm run format", "*.{js,jsx,json,ts,tsx,yml,yaml,scss}": "pnpm run format",
"*.{scss,css}": "npm run lint:css", "*.{scss,css}": "pnpm run lint:css",
"*.{js,jsx,ts,tsx}": "npm run lint:js" "*.{js,jsx,ts,tsx}": "pnpm run lint:js"
}, },
"dependencies": { "dependencies": {
"@wordpress/api-fetch": "^7.0.0", "@wordpress/api-fetch": "^7.0.0",