Software Alternatives, Accelerators & Startups

Prettier VS stylelint

Compare Prettier VS stylelint and see what are their differences

Prettier logo Prettier

An opinionated code formatter

stylelint logo stylelint

stylelint is a modern CSS linter
  • Prettier Landing page
    Landing page //
    2022-06-27
  • stylelint Landing page
    Landing page //
    2023-07-01

Prettier videos

Code Formatting with Prettier in Visual Studio Code

More videos:

  • Review - ESLint + Prettier + VS Code — The Perfect Setup
  • Review - Miranda Lambert -- Only Prettier [REVIEW/RATING]

stylelint videos

Stylelint ( By Andrey Sitnik at CSSParis #6 )

More videos:

  • Review - Stylelint — как и зачем линтить CSS (Андрей Ситник) - TK Conf

Category Popularity

0-100% (relative to Prettier and stylelint)
Code Coverage
92 92%
8% 8
Code Analysis
89 89%
11% 11
Developer Tools
90 90%
10% 10
Software Development
100 100%
0% 0

User comments

Share your experience with using Prettier and stylelint. For example, how are they different and which one is better?
Log in or Post with

Social recommendations and mentions

Based on our record, Prettier seems to be a lot more popular than stylelint. While we know about 259 links to Prettier, we've tracked only 25 mentions of stylelint. We are tracking product recommendations and mentions on various public social media platforms and blogs. They can help you identify which product is more popular and what people think of it.

Prettier mentions (259)

  • Make Commit in Your React Project Format-Test-Build Ready with Husky - A Step-by-Step Guide
    Prettier: It makes our code prettier by formatting. It supports many languages and editors. - Source: dev.to / 5 days ago
  • Rustify your JavaScript tooling
    A big part of my work revolves around JavaScript tooling, and as such it's important to keep an eye on the ecosystem and see where things are going. It's no secret that recently lots of projects are native-ying (??) parts of their codebase, or even rewriting them to native languages altogether. Esbuild is one of the first popular and successful examples of this, which was written in Go. Other examples are Rspack... - Source: dev.to / 7 days ago
  • How to prevent Prettier putting a full stop on a new line after a link
    Do you use Prettier? Have your configuration settings caused weird HTML rendering issues by adding extra whitespace where you didn't want it? Perhaps after an anchor link at the end of a paragraph? Me, too. Here's what's happening and how you might be able to fix it. - Source: dev.to / 16 days ago
  • Mastering Code Quality: Setting Up ESLint with Standard JS in TypeScript Projects
    In this post, I also use ESLint + Standard JS as my code formatting tools. Formatting JS/TS code by using ESLint is also subjective and opinionated, arguably most people would rather use Prettier instead, which provides more configurable options. - Source: dev.to / 23 days ago
  • To Review or Not to Review: The Debate on Mandatory Code Reviews
    Automating code checks with static code analysis allows us to enforce code styling effectively. By integrating tools into our workflow, we can identify errors at an early stage, while coding instead of blocking us at the end. For instance, flake8 checks Python code for style and errors, eslint performs similar checks for JavaScript, and prettier automatically formats code to maintain consistency. - Source: dev.to / about 1 month ago
View more

stylelint mentions (25)

  • Streamline Your Workflow: A Guide to Normalising Git Commit and Push Processes
    There are more linting tools that I won't go into deeply, but you can integrate them with lint-staged. For example, you can lint your CSS content with Stylelint, or even lint your README files with markdownlint, etc. - Source: dev.to / 23 days ago
  • Why it is Important to Update Linters and How to Do it Right
    Another common way to extend configs in linters is using the extends key in the configuration file. Let's take StyleLint as an example:. - Source: dev.to / 4 months ago
  • How to Improve Development Experience of your React Project
    Stylelint is similar to ESLint, but its focus is on styling rather than JavaScript. It helps you find errors in style files, such as old syntax or empty classes. We will also incorporate stylelint-config-clean-order to sort your style rules and group them consistently across the entire codebase. - Source: dev.to / 4 months ago
  • Don't sound like a robot: use CSS to Control Text-to-Speech
    As the property is still experimental, stylelint does not recognize it yet at the time of writing this, so let's explicitly disable the property-no-unknown rule only where we use it by adding a stylelint-disable comment and re-enable it afterwards. - Source: dev.to / about 1 year ago
  • How to Effortlessly Improve a Legacy Codebase Using Robots
    Run static analysis e.g. Lint with lockfile-lint, Stylelint, ESLint, check for unimported files using unimported, and identify potential security vulnerabilities. Source: about 1 year ago
View more

What are some alternatives?

When comparing Prettier and stylelint, you can also consider the following products

ESLint - The fully pluggable JavaScript code quality tool

SonarQube - SonarQube, a core component of the Sonar solution, is an open source, self-managed tool that systematically helps developers and organizations deliver Clean Code.

Tailwind CSS - A utility-first CSS framework for rapidly building custom user interfaces.

BEM - BEM — Block Element Modifier is a methodology, that helps you to achieve reusable components and code sharing in the front-end.

Next.js - A small framework for server-rendered universal JavaScript apps

TSLint - An extensible static analysis linter for the TypeScript language