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.