An ESLint config that disables all rules that are unnecessary or conflict with Prettier.
eslint-config-prettier is an ESLint configuration that disables all ESLint rules that are unnecessary or might conflict with Prettier. It solves the problem of ESLint and Prettier fighting over code formatting by letting Prettier handle formatting while ESLint focuses on code quality issues.
JavaScript and TypeScript developers who use both ESLint for code quality and Prettier for code formatting in their projects.
Developers choose eslint-config-prettier because it seamlessly integrates ESLint and Prettier, eliminating configuration conflicts and allowing each tool to do what it does best without interference.
Turns off all rules that are unnecessary or might conflict with Prettier.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Disables all ESLint core and plugin rules that conflict with Prettier, ensuring no interference between the two tools as per the README's minimalist approach.
Works with popular ESLint plugins like @typescript-eslint, React, Vue, and others, automatically handling rule conflicts across a wide ecosystem.
Includes a command-line tool to detect conflicting rules in your ESLint configuration, helping to simplify and clean up your config files.
Supports both traditional eslintrc and the newer ESLint flat config format, making it adaptable to modern ESLint setups.
With ESLint flat config, if plugins are given non-standard names, eslint-config-prettier cannot detect or disable conflicting rules, as highlighted in the README's caveat section.
The CLI helper tool cannot guarantee 100% conflict detection without checking every file in the project, which is impractical for large or complex configurations with overrides.
Some rules require specific configurations to work with Prettier, and users must manually enable and configure them, adding steps and potential for error, as detailed in the 'Special rules' section.