Turns off all Stylelint rules that are unnecessary or might conflict with Prettier, allowing you to use your favorite shareable Stylelint config without its stylistic choices interfering. Current stable version is 9.0.5, released January 2023. The package is maintained sporadically; it disables stylistic rules so Prettier can take over formatting. As of Stylelint v15 (released February 2023), the stylistic rules have been deprecated, making this package unnecessary for users on v15+ who do not use deprecated rules. It includes a CLI helper to check for conflicting rules. Peer dependency ranges: stylelint >= 11.x < 15.
npm install stylelint-config-prettierVerified import paths — ran on the pinned version, not inferred.
Shows how to install, extend the config (last place), and run the CLI check tool.
Remove stylelint-config-prettier from your extends array. Ensure your stylelint config does not rely on deprecated stylistic rules.
Install stylelint-scss plugin if using SCSS and updating from v8.
Ensure 'stylelint-config-prettier' is appended after all other configs in extends.
Update stylelint to v11+ and verify rules are disabled as expected.
Update to v6.0.0 or later to get security fixes.
Update to stylelint 14.x (or use stylelint-config-prettier v9+). In stylelint 15+, this package may not be needed.
Run npm install --save-dev stylelint-config-prettier. Check that it's listed in devDependencies.
Add a script in package.json: "stylelint-check": "stylelint-config-prettier-check" and run npm run stylelint-check.
Remove stylelint-config-prettier from extends and update your stylelint config accordingly.