npx eslint --fix src/

Category: Node.js & npm/yarn

npx eslint --fix src/

Run ESLint with automatic fixing on a directory without needing a global ESLint install

Runs ESLint with automatic fixing — corrects fixable style issues across an entire folder without needing ESLint installed globally.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.