79377825

Date: 2025-01-22 13:15:18
Score: 1.5
Natty:
Report link

I used the following Yarn script, and that seems to provide the desired result:

"lint:js": "sh -c 'eslint --cache ${@:-.}' --"

This allows me to run lint:js from lint-staged and it only lints the staged files, and I can also manually run yarn lint:js and it lints all JS files.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: gtb104