@ued2345/stylelint-config
Advanced tools
Comparing version 0.1.3 to 0.1.4
{ | ||
"name": "@ued2345/stylelint-config", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "stylelint by UED2345", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"test": "stylelint test/test.scss" | ||
}, | ||
@@ -9,0 +9,0 @@ "keywords": [ |
@@ -7,3 +7,3 @@ # stylelint-config | ||
在你的项目中安装 stylelint 和配置包: | ||
在你的项目中安装 stylelint 和本配置包: | ||
@@ -24,6 +24,20 @@ ```sh | ||
], | ||
} | ||
``` | ||
如果你的项目需要禁用或覆盖配置包中预设的规则,可以添加 `rules` 字段,并写入你自己的规则配置: | ||
```js | ||
rules: { | ||
'block-no-empty': null, // 禁用某条规则 | ||
'color-hex-case': 'lower', // 覆盖某条规则 | ||
}, | ||
``` | ||
如果你需要把特定文件排除在校验范围之外,可添加 `ignoreFiles` 字段: | ||
```js | ||
ignoreFiles: [ | ||
'./dist/**/*.*', | ||
'./src/vendor/**/*.*', | ||
], | ||
} | ||
``` | ||
@@ -54,1 +68,11 @@ | ||
如有必要,你可以把上述命令整合到 CI、Git hook 等工作流中。 | ||
## 规则 | ||
* [本配置包的规则配置](doc/rule.md) | ||
附: | ||
* [stylelint 规则官方文档](https://stylelint.io/user-guide/rules) | ||
* [stylelint 官方推荐的规则集(核心规则)](https://github.com/stylelint/stylelint-config-recommended/blob/master/index.js) | ||
* [stylelint 官方推荐的规则集(含代码风格)](https://github.com/stylelint/stylelint-config-standard/blob/master/index.js) |
@@ -59,3 +59,3 @@ module.exports = { | ||
// General / Sheet | ||
'no-descending-specificity': true, | ||
// 'no-descending-specificity': true, // TODO: study later | ||
'no-duplicate-at-import-rules': true, | ||
@@ -62,0 +62,0 @@ // 'no-duplicate-selectors': null, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
11159
1
2
76