Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ued2345/stylelint-config

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ued2345/stylelint-config - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

4

package.json
{
"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,

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc