string-no-newline: 禁止字符串(非转义)换行。 string-quotes: 为字符串指定单引或双引号。 时长 time-no-imperceptible: 禁止animation与transition时长低于 100ms 。 单位 unit-blacklist: 指定一个不允许使用单位的黑名单。 unit-whitelist: 指定一个允许使用单位的白名单。 值 value-no-vendor-prefix: 禁止...
Allows strings to use single-quotes or double-quotes so long as the string contains a quote that would have to be escaped otherwise. For example, with "single", { "avoidEscape" : false }. The following patterns are considered problems: ...
number-no-trailing-zeros: 禁止在数量尾随零。 String string-no-newline: 禁止在字符串(转义)换行。 string-quotes: 指定字串,单或双引号。 Length length-zero-no-unit: 禁止单位零长度。 Time time-no-imperceptible: 禁止动画和过渡小于或等于100毫秒。 Unit unit-blacklist: 指定不允许使用单位的黑名单。
"function-linear-gradient-no-nonstandard-direction": true, "function-url-quotes": "always", "function-whitespace-after": "always", "number-leading-zero": "never", "number-no-trailing-zeros": true, "string-no-newline": true, "string-quotes": "double", "unit-case": "lower", "unit-n...
],"string-quotes":"single",// 单引号"at-rule-empty-line-before":null,"at-rule-no-unknown":null,"at-rule-name-case":"lower",// 指定@规则名的大小写"length-zero-no-unit":true,// 禁止零长度的单位(可自动修复)"shorthand-property-no-redundant-values":true,// 简写属性"number-leading-zer...
string-quotes: 指定字串,单或双引号。 Length length-zero-no-unit: 禁止单位零长度。 Time time-no-imperceptible: 禁止动画和过渡小于或等于100毫秒。 Unit unit-blacklist: 指定不允许使用单位的黑名单。 unit-case: 指定大写或小写的单位。 unit-no-unknown: 禁止未知的单位。
string-quotes: 指定字串,单或双引号。 Length length-zero-no-unit: 禁止单位零长度。 Time time-no-imperceptible: 禁止动画和过渡小于或等于100毫秒。 Unit unit-blacklist: 指定不允许使用单位的黑名单。 unit-case: 指定大写或小写的单位。 unit-no-unknown: 禁止未知的单位。
"string-quotes": "double", "value-no-vendor-prefix": true } 最后,建议读一下stylelint 的官方配置文档,在其基础上做一些个性化的设置。接下来,让我们将这些审查规则融入到构建流程中。 如何审查 CSS# 首先,让我们先来审查 CSS 代码。配置审查工具的过程非常简单,你只需要安装gulp-postcss/postcss-reporter和...
"string-no-newline": null } } 3、使用stylelint验证CSS代码即可,如验证src目录下的所有vue文件 react react中使用styled-components来书写CSS代码,stylelint同样提供了插件来校验CSS 1、安装stylelint、stylelint-processor-styled-components、stylelint-config-styled-components、stylelint-config-recommend、stylelint...
],'number-leading-zero':'always','no-descending-specificity':null,'function-url-quotes':'always','string-quotes':'single','unit-case':null,'color-hex-case':'lower','color-hex-length':'long','rule-empty-line-before':'never','font-family-no-missing-generic-family-keyword':null,'select...