Automatically integrates ESLint's auto-fix functionality into Prettier formatting, so that running Prettier also applies ESLint --fix. Version 1.0.2 is the current stable release; the plugin runs ESLint on .js files before Prettier formatting. Compared to alternatives like prettier-eslint, this is a Prettier plugin (not a separate CLI) and requires no extra configuration beyond installation. It assumes ESLint configuration is in an .eslintrc file (package.json support planned).
npm install prettier-plugin-eslintVerified import paths — ran on the pinned version, not inferred.
Install prettier-plugin-eslint, configure .prettierrc, ESLint rule for no semicolons, and run Prettier to see autofix.
Use separate plugins (e.g., prettier-plugin-tslint) for non-JS files.
Ensure ESLint rules are compatible with Prettier output; use eslint-config-prettier to disable conflicting rules.
Move ESLint config to an .eslintrc file or wait for package.json support.
Run ESLint directly if custom fix behavior is needed.
Upgrade Prettier to version 2.0 or later.
Run 'npm install --save-dev prettier-plugin-eslint'.
Use full package name: { "plugins": ["prettier-plugin-eslint"] }Create an .eslintrc file (e.g., .eslintrc.json) in project root.
Ensure both 'prettier' and 'eslint' are installed as devDependencies.