stylelint-config-style-guide
v0.0.3
Published
在stylelint-config-standard基础上自定义代码检测规则
Downloads
3
Readme
stylelint-config-style-guide
在stylelint-config-standard基础上自定义代码检测规则
在线生成的配置
- https://maximgatilin.github.io/stylelint-config/
{
"extends": "stylelint-config-standard",
"rules": {
"string-quotes": "single",
"indentation": 2,
"no-duplicate-selectors": true,
"color-hex-case": "lower",
"color-hex-length": "short",
"color-named": "never",
"selector-no-qualifying-type": true,
"selector-no-id": true,
"selector-combinator-space-after": "always",
"selector-attribute-quotes": "always",
"selector-attribute-operator-space-before": "never",
"selector-attribute-operator-space-after": "never",
"selector-attribute-brackets-space-inside": "never",
"declaration-block-trailing-semicolon": "always",
"declaration-colon-space-before": "never",
"declaration-colon-space-after": "always",
"number-leading-zero": "never",
"function-url-quotes": "never",
"function-url-data-uris": "always",
"font-weight-notation": "numeric",
"font-family-name-quotes": "always-where-required",
"comment-whitespace-inside": "always",
"comment-empty-line-before": "never",
"rule-empty-line-before": "never",
"selector-pseudo-element-colon-notation": "double",
"selector-pseudo-class-parentheses-space-inside": "never",
"selector-no-universal": true,
"media-feature-range-operator-space-before": "always",
"media-feature-range-operator-space-after": "always",
"media-feature-parentheses-space-inside": "never",
"media-feature-colon-space-before": "never",
"media-feature-colon-space-after": "always"
}
}
资源
- https://npm.taobao.org/package/stylelint-config-sm
- https://github.com/ntwb/stylelint-config-bootstrap
- http://stylelint.cn/
- https://github.com/CSSLint/csslint
- https://github.com/ntwb/awesome-stylelint
- https://github.com/CSSLint/csslint/issues/668
- https://www.npmjs.com/package/csshint
- https://github.com/putaoshu/jdf