Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

islinxuan/stylelint-config-random-order

Repository files navigation

stylelint-config-random-order

GitHub GitHub Workflow Status npm

一份 Stylelint 配置,使用 stylelint-order 对 CSS 属性* 进行排序。

* 包含眼熟的和感兴趣的,欢迎补充。

用法

安装 Stylelint,并将此包添加到你的项目中。

pnpm add -D stylelint stylelint-config-random-order

配置你的 stylelint 配置文件(.stylelintrc.json)以启用此包。

{
+  "extends": ["stylelint-config-random-order"],
-   // this package already does for you
-  "plugins": ["stylelint-order"],
+  "rules": {
+    // Add overrides and additional rules here
+  }
}

参考

About

A stylelint config that sorts CSS properties with stylelint-order.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published