Run single ESLint rule
24 July 2024 (Updated 24 July 2024)
Lint
Syntax:
<eslint-binary> --rule <rule-name>:<severity> <files>
Example:
npx eslint --rule simple-import-sort/imports:error src
Fix
Syntax:
<eslint-binary> --rule <rule-name>:<severity> <files>
Example:
npx eslint --rule simple-import-sort/imports:error src --fix
Tagged:
JavaScript tooling
Thanks for your comment 🙏. Once it's approved, it will appear here.
Leave a comment