stylelint

A mighty, modern CSS linter

Github星跟踪图

stylelint

NPM version Build Status NPM Downloads

A mighty, modern linter that helps you avoid errors and enforce conventions in your styles.

Features

It's mighty as it:

  • understands the latest CSS syntax including custom properties and level 4 selectors
  • extracts embedded styles from HTML, markdown and CSS-in-JS object & template literals
  • parses CSS-like syntaxes like SCSS, Sass, Less and SugarSS
  • has over 170 built-in rules to catch errors, apply limits and enforce stylistic conventions
  • supports plugins so you can create your own rules or make use of plugins written by the community
  • automatically fixes the majority of stylistic violations (experimental feature)
  • is well tested with over 15000 unit tests
  • supports shareable configs that you can extend or create
  • is unopinionated so that you can customize it to your exact needs
  • has a growing community and is used by Facebook, GitHub and WordPress

Example output

Example

Getting started

You'll find steps to get started in our User guide.

Contributors

Without the contributions from all these fantastic people, stylelint would not exist. Become a contributor.

Backers

Thank you to all our backers! Become a backer.

Sponsors

Support this project to show your logo here with a link to your website. Become a sponsor.

License

The MIT License.

主要指标

概览
名称与所有者stylelint/stylelint
主编程语言JavaScript
编程语言JavaScript (语言数: 7)
平台
许可证MIT License
所有者活动
创建于2014-12-04 16:25:23
推送于2025-04-21 01:33:25
最后一次提交
发布数249
最新版本名称16.18.0 (发布于 2025-04-06 09:53:37)
第一版名称v0.1.0 (发布于 )
用户参与
星数11.2k
关注者数99
派生数1k
提交数7.3k
已启用问题?
问题数3499
打开的问题数150
拉请求数4289
打开的拉请求数13
关闭的拉请求数671
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?