What's the difference between using `// prettier-ignore` and creating a Prettier plugin for handling bullet points?

Responsive Ad Header

Question

Grade: Education Subject: Support
What's the difference between using `// prettier-ignore` and creating a Prettier plugin for handling bullet points?
Asked by:
115 Viewed 115 Answers

Answer (115)

Best Answer
(379)
Using `// prettier-ignore` is a quick, per-line solution for disabling Prettier's formatting on specific lines. It's simple but can become tedious for many instances. Creating a Prettier plugin is a more complex but scalable solution that allows you to define custom formatting rules for bullet points across your entire project, providing more consistent and automated behavior.