format using yarn .eslintrc.js code example Example 1: eslint fix npm run lint -- --fix Example 2: npx eslint src yarn lint-fix