2022-02-11
2421
#vanilla javascript
Rob O'Leary
52051
Feb 11, 2022 ⋅ 8 min read

Using Prettier and ESLint to automate formatting and fixing JavaScript

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:

Integrating Django Templates With React For Dynamic Webpages

Integrating Django templates with React for dynamic webpages

Create a dynamic demo blog site using Django and React to demonstrate Django’s server-side functionalities and React’s interactive UI.

Kayode Adeniyi
Apr 18, 2024 ⋅ 7 min read
Using Aoi Js To Build A Bot For Discord

Using aoi.js to build a bot on Discord

Explore how the aoi.js library makes it easy to create Discord bots with useful functionalities for frontend applications.

Rahul Padalkar
Apr 17, 2024 ⋅ 9 min read
Web Components Adoption Guide: Overview, Examples, And Alternatives

Web Components adoption guide: Overview, examples, and alternatives

Evaluate Web Components, a set of standards that allow you to create custom HTML tags for more reusable, manageable code.

Elijah Asaolu
Apr 16, 2024 ⋅ 11 min read
Using Aws Lambda And Aws Cloudfront To Optimize Image Handling

Using AWS Lambda and CloudFront to optimize image handling

Leverage services like AWS Lambda, CloudFront, and S3 to handle images more effectively, optimizing performance and providing a better UX.

Nitish Sharma
Apr 12, 2024 ⋅ 12 min read
View all posts

6 Replies to "Using Prettier and ESLint to automate formatting and fixing JavaScript"

  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