2024-10-08
2535
#vanilla javascript
Rob O'Leary
52051
Oct 8, 2024 ⋅ 9 min read

Using Prettier and ESLint for JavaScript formatting

Rob O'Leary Rob is a solution architect, fullstack developer, technical writer, and educator. He is an active participant in non-profit organizations supporting the underprivileged and promoting equality. He is travel-obsessed (one bug he cannot fix). You can find him at roboleary.net.

Recent posts:

Exploring The Top Rust Web Frameworks

Exploring the top Rust web frameworks

In this article, we’ll explore the best Rust frameworks for web development, including Actix Web, Rocket, Axum, warp, Leptos, Cot, and Loco.

Abiodun Solomon
May 28, 2025 ⋅ 11 min read
How To Use The CSS Cursor Property

How to use the CSS cursor property

A single line of CSS can change how users feel about your UI. Learn how to leverage the cursor property to signal intent, improve interaction flow, and elevate accessibility.

Chizaram Ken
May 28, 2025 ⋅ 6 min read
Build TypeScript App Vite

How to build a React + TypeScript app with Vite

We explore the benefits of building an app with React, TypeScript, and Vite, and compare its performance to the same app built with CRA.

Clara Ekekenta
May 28, 2025 ⋅ 7 min read

How to use Claude to build a web app

Learn how to build a weather app using Claude, from setting up infrastructure to creating a functional UI that displays city-based forecasts.

Andrew Evans
May 28, 2025 ⋅ 8 min read
View all posts

6 Replies to "Using Prettier and ESLint for JavaScript formatting"

  1. thanks for sharing . Help me solve the problem that the vue file cannot be automatically formatted after saving

  2. Hi,thanks for sharing in detailed,But still iam facing overriding issue of prettier with eslint

  3. Hi Rob,

    this is a rare and great article. Well done, thank you for that.
    There is just one detail in your article that makes me wonder, and it’s not explained anywhere:
    Why do you suggest using the `–save-exact` option for installing prettier?

    Cheers, Roman.

  4. Prettier makes code terrible because it doesn’t have fine tuning rules. It’s like repairing a smartphone with an axe.
    It is enough to have a well-tuned linter and direct hands to make your code perfect.

Leave a Reply