Plugins are rules and sets of rules built by the community that support methodologies, toolsets, non-standard CSS features, or very specific use cases. Their package names are prefixed with "stylelint". Their rule names are namespaced so that they do not clash with stylelint's core rules.
插件是由社区创建的规则或规则集,支持方法论、工具集,非标准 的 CSS 特性,或非常特定的用例。它们的 包 名以 "stylelint" 为前缀。它们的 规则 名称以命名空间的形式展现,以避免与 stylelint 的核心规则发生冲突。
stylelint-csstree-validator
: Validate CSS values to match W3C specs and browsers extensions.stylelint-csstree-validator
:验证 CSS 的值是否匹配 W3C 标准和浏览器扩展。stylelint-declaration-strict-value
: Specify properties for which either a variable ($sass
, @less
, var(--cssnext)
), function or custom CSS keyword (inherit
, none
, etc.) must be used for its value.stylelint-declaration-strict-value
:指定变量($sass
,@less
,var(--cssnext)
),函数 或自定义的 CSS 关键字(inherit
,none
等) 的属性是否必须用来做它 的值。stylelint-declaration-use-variable
: Specify properties for which a variable must be used for its value.stylelint-declaration-use-variable
:指定哪个变量的属性必须用作它的值stylelint-order
: Specify the ordering of things e.g. properties within declaration blocks (plugin pack).stylelint-order
:指定排序,比如声明的块内(插件包)属性的顺序。stylelint-rscss
: Validate RSCSS conventions.stylelint-rscss
:验证 RSCSS约定。stylelint-scss
: Enforce a wide variety of SCSS-syntax specific linting rules (plugin pack).stylelint-scss
:执行各种各样的 SCSS语法特性检测规则(插件包)stylelint-selector-bem-pattern
: Specify a BEM pattern for selectors (incorporates postcss-bem-linter).stylelint-selector-bem-pattern
: 为选择器指定 BEM 模式(合并了 postcss-bem-linter)。