ESLint vs Prettier

Get Advice Icon

Need advice about which tool to choose?Ask the StackShare community!

ESLint
ESLint

3.6K
2.3K
+ 1
11
Prettier
Prettier

258
103
+ 1
0
Add tool

ESLint vs Prettier: What are the differences?

Developers describe ESLint as "The fully pluggable JavaScript code quality tool". A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease. On the other hand, Prettier is detailed as "Prettier is an opinionated code formatter". Prettier is an opinionated code formatter. It enforces a consistent style by parsing your code and re-printing it with its own rules that take the maximum line length into account, wrapping code when necessary.

ESLint and Prettier can be primarily classified as "Code Review" tools.

ESLint and Prettier are both open source tools. It seems that Prettier with 32.6K GitHub stars and 1.81K forks on GitHub has more adoption than ESLint with 14.4K GitHub stars and 2.46K GitHub forks.

Asana, Rainist, and Intuit are some of the popular companies that use ESLint, whereas Prettier is used by Swat.io, HousingAnywhere, and Quizlet. ESLint has a broader approval, being mentioned in 541 company stacks & 592 developers stacks; compared to Prettier, which is listed in 63 company stacks and 60 developer stacks.

What is ESLint?

A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.

What is Prettier?

Prettier is an opinionated code formatter. It enforces a consistent style by parsing your code and re-printing it with its own rules that take the maximum line length into account, wrapping code when necessary.
Get Advice Icon

Need advice about which tool to choose?Ask the StackShare community!

Why do developers choose ESLint?
Why do developers choose Prettier?
    Be the first to leave a pro

    Sign up to add, upvote and see more prosMake informed product decisions

    What are the cons of using ESLint?
    What are the cons of using Prettier?
      Be the first to leave a con
        Be the first to leave a con
        What companies use ESLint?
        What companies use Prettier?

        Sign up to get full access to all the companiesMake informed product decisions

        What tools integrate with ESLint?
        What tools integrate with Prettier?

        Sign up to get full access to all the tool integrationsMake informed product decisions

        What are some alternatives to ESLint and Prettier?
        TSLint
        An extensible static analysis tool that checks TypeScript code for readability, maintainability, and functionality errors. It is widely supported across modern editors & build systems and can be customized with your own lint rules, configurations, and formatters.
        JSLint
        It is a static code analysis tool used in software development for checking if JavaScript source code complies with coding rules. It is provided primarily as a browser-based web application accessible through their domain, but there are also command-line adaptations.
        JSHint
        It is a community-driven tool to detect errors and potential problems in JavaScript code. It is open source and can easily adjust in the environment you expect your code to execute.
        SonarQube
        SonarQube provides an overview of the overall health of your source code and even more importantly, it highlights issues found on new code. With a Quality Gate set on your project, you will simply fix the Leak and start mechanically improving.
        Code Climate
        After each Git push, Code Climate analyzes your code for complexity, duplication, and common smells to determine changes in quality and surface technical debt hotspots.
        See all alternatives
        Decisions about ESLint and Prettier
        No stack decisions found
        Interest over time
        Reviews of ESLint and Prettier
        No reviews found
        How developers use ESLint and Prettier
        Avatar of Volkan Özçelik
        Volkan Özçelik uses ESLintESLint

        JavaScript is a language that works wonders when there are tools like ESLint, Prettier, and FlowType that cover your back.

        I use my IDE’s (Visual Studio Code) ESLint integration to validate the code I write in realtime.

        Avatar of Jack Littleton
        Jack Littleton uses ESLintESLint

        I use ESLint to ensure my JavaScript code meets my team's coding standards, and to avoid known pitfalls. The extensibility allows me to write specialized modules that detect team-specific issues as they occur.

        Avatar of Promethean TV
        Promethean TV uses ESLintESLint

        ESLint is used in the build process for the Promethean TV Broadcast Center Tool.

        Avatar of Thibault Maekelbergh
        Thibault Maekelbergh uses ESLintESLint

        Enforce code-style and non error-prone code for maintaining the module

        Avatar of Ataccama
        Ataccama uses ESLintESLint

        A must-have tool to catch bugs and enforce a consistent code style.

        Avatar of DevExpress Reimagined
        DevExpress Reimagined uses PrettierPrettier

        Forget code formatting

        How much does ESLint cost?
        How much does Prettier cost?
        Pricing unavailable
        Pricing unavailable
        News about Prettier
        More news