Software Alternatives & Reviews

stylelint VS Prettier

Compare stylelint VS Prettier and see what are their differences

stylelint logo stylelint

stylelint is a modern CSS linter

Prettier logo Prettier

An opinionated code formatter
  • stylelint Landing page
    Landing page //
    2023-07-01
  • Prettier Landing page
    Landing page //
    2022-06-27

stylelint videos

Stylelint ( By Andrey Sitnik at CSSParis #6 )

More videos:

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

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]

Category Popularity

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

User comments

Share your experience with using stylelint and Prettier. 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 255 links to Prettier, we've tracked only 24 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.

stylelint mentions (24)

  • 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 / 3 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 / 3 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 / 12 months 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
  • How can I have CSS automatically formatted so that all of the properties are in order by length, as I type?
    I use StyleLint (https://stylelint.io/) to lint my css/scss. I don't think that's a rule, but writing a custom rule isn't too tough. And you can use the vscode extension - https://marketplace.visualstudio.com/items?itemName=stylelint.vscode-stylelint. Source: about 1 year ago
View more

Prettier mentions (255)

  • 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 / 11 days ago
  • Setting up Doom Emacs for Astro Development
    So anyways, I wanted to hook up Emacs with Astro support. For now, I've just been roughing it out there and running Prettier by itself and turning off save on format and auto-complete. It's been scary. - Source: dev.to / 11 days ago
  • Biome.js : Prettier+ESLint killer ?
    If you're a developer, you're surely familiar with Prettier and ESLint. With over 8 years of existence, they have established themselves as references in the JavaScript ecosystem. - Source: dev.to / 15 days ago
  • How to use Lefthooks in your node project?
    No formatting inconsistencies: The committed code should follow the organization's code formatting standards(prettier or pretty-quick). - Source: dev.to / 22 days ago
  • Git Project Configuration With Husky and ESLint
    Let’s walk through the steps for a one-time setup to configure husky pre-commit and pre-push hooks, ESLint with code styles conventions, prettier code formatter, and lint-staged. Husky automatically runs a script on each commit or push. This is useful for linting files to enforce code styles that keeps the entire code base following conventions. - Source: dev.to / 25 days ago
View more

What are some alternatives?

When comparing stylelint and Prettier, 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.

TSLint - An extensible static analysis linter for the TypeScript language

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