README
prettier-plugin-eslint
Automatically includes ESLint's
autoformatting functionality into Prettier
using eslint --fix
The problem
Prettier is a powerful automatic formatter however, it doesn't address javascript-specific issues that are better handled by eslint using the fix feature. Most IDE's support prettier via plugins however, not all of the plugins also support eslint integration and often require complex configuration to setup.
This solution
This prettier plugin automatically includes eslint into your prettier process without any extra configuration or setup.
This only applies to files with an extension of
.js
since eslint is only for javascript.
Installation
This module is distributed via npm which is bundled with node and
should be installed as one of your project's devDependencies
:
npm install --save-dev prettier-plugin-eslint
Usage
This is a plugin to prettier so simply installing it in your project will automatically apply eslint to your files when prettier is applied.
This plugin currently assumes your eslint config is defined in an .eslintrc file. Support for eslint configuration in package.json is planned soon.
Inspiration
LICENSE
MIT