Eslint-plugin-prettier is an invaluable tool for developers seeking to seamlessly integrate Prettier, the popular opinionated code formatter, into their ESLint workflow. Version 2.0.1 builds upon the stable foundation of 2.0.0, offering subtle yet important improvements. Both versions share the core functionality of running Prettier as an ESLint rule, enabling automated code formatting directly within the ESLint linting process. They depend on requireindex for managing rule imports and bundle various development dependencies like Mocha for testing, ESLint for linting, and configurations like eslint-config-prettier to avoid conflicts and eslint-config-not-an-aardvark which provides a base ESLint configuration. Notably, both versions mandate compatible peer dependencies for ESLint (version 3.14.1) and Prettier (version 0.11.0 or higher), ensuring smooth operation.
The key distinction between versions 2.0.0 and 2.0.1 lies simply in the inclusion of a newer Prettier version as a dev dependency, upgrading it from ">= 0.11.0" to "^0.18.0". This seemingly small change means the newer version of the plugin was tested against the newer Prettier release. This implies potential improvements in formatting consistency or compatibility with newer JavaScript features supported by Prettier. For developers, updating to version 2.0.1 offers the peace of mind of using a version verified with a more recent Prettier, potentially leading to a more robust and up-to-date code formatting experience while benefiting from the automated linting and formatting capabilities. The new version was released about a month after the previous one.
The are not vulnerabilities for the version 2.0.1 of the package eslint-plugin-prettier