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
發布數230
最新版本名稱16.5.0 (發布於 2024-05-02 15:53:07)
第一版名稱v0.1.0 (發布於 )
創建於2014-12-04 16:25:23
推送於2024-05-13 06:11:27
最后一次提交
星數10.8k
關注者數108
派生數0.9k
提交數6.8k
已啟用問題?
問題數3259
打開的問題數119
拉請求數3745
打開的拉請求數2
關閉的拉請求數626
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?
去到頂部