Software Alternatives & Reviews

BEM VS stylelint

Compare BEM VS stylelint and see what are their differences

BEM logo BEM

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

stylelint logo stylelint

stylelint is a modern CSS linter
  • BEM Landing page
    Landing page //
    2022-11-21
  • stylelint Landing page
    Landing page //
    2023-07-01

BEM videos

BEM REVIEW! is Bem worth watching?

More videos:

  • Review - BEM - First Impressions
  • Review - Bem Episode 1 Discussion/ Review BEM HAS THE MUSIC!!!!!

stylelint videos

Stylelint ( By Andrey Sitnik at CSSParis #6 )

More videos:

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

Category Popularity

0-100% (relative to BEM and stylelint)
Developer Tools
53 53%
47% 47
Code Analysis
0 0%
100% 100
Design Tools
74 74%
26% 26
CSS Framework
100 100%
0% 0

User comments

Share your experience with using BEM 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, BEM should be more popular than stylelint. It has been mentiond 43 times since March 2021. 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.

BEM mentions (43)

  • Earth rescue - A CSS only game
    After I had created space, the code was as spaghetti as it can get. I decided to switch to SCSS and finally read into the BEM Pattern for CSS and after wasting another 4 hours, I decided that I could not decide wether the HUD is an element of the game and the button is an element of the HUD and the text is an element of the button and someone else also thought about this and called it the BEM grandchildren... - Source: dev.to / 3 days ago
  • Upgrading and Refactoring a Slightly Outdated Web Project
    There are some conceptual requirements to clean code that I always found hard to achieve in a traditional web project, but that's one more reason to use tools like static site generators and follow design patterns like Atomic Design, (A)BEM CSS, and a modular file structure. - Source: dev.to / about 1 year ago
  • 21 Resources to Learn And Practice Your CSS Skills
    BEM is a methodology for organizing and naming CSS classes in a scalable and maintainable way. Learning the principles of BEM can improve the structure of your stylesheets drastically. - Source: dev.to / 4 months ago
  • StyleX – Meta's Styling Library
    It always surprises me the lengths people are willing to go to avoid writing CSS. If organization is the issue, there's BEM (https://getbem.com/). This just looks like another layer of complexity on top of an already convoluted front-end stack that just slows everything it touches to a crawl and only works moderately well on the developers beefed up latest MacBook Pro's, and sucks horribly on any regular person's... - Source: Hacker News / 5 months ago
  • Incomplete List of Mistakes in the Design of CSS
    I am a reluctant convert to tailwind. I've been doing HTML since the 90s, before CSS was even really usable for things like page layout. I mean, we didn't even use div in those days - it was table based layouts and spacer gifs. CSS appeals to a programmers mindset. Cascading seems like a good idea. Having classes that are reusable seems like a good idea. Complex selectors seem like a good idea. These are all forms... - Source: Hacker News / 5 months ago
View more

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 / 11 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: 12 months 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

What are some alternatives?

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

Sass - Syntatically Awesome Style Sheets

ESLint - The fully pluggable JavaScript code quality tool

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

Prettier - An opinionated code formatter

styled-components - styled-components is a visual primitive for the component age that also helps the user to use the ES6 and CSS to style apps.

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.