Skip to content

Commit

Permalink
Merge branch 'dev' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
Alvin-Liu committed Jun 20, 2023
2 parents 7c815a8 + 6ad2a90 commit fabfbcb
Show file tree
Hide file tree
Showing 5 changed files with 2,211 additions and 49 deletions.
5 changes: 5 additions & 0 deletions .changeset/sour-cycles-dress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@vingogo/stylelint-config': minor
---

feat: stylelint config
31 changes: 31 additions & 0 deletions packages/stylelint-config/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# StyleLint 规范

## 使用

### 安装

Install:

```bash
pnpm add @vingogo/stylelint-config stylelint --dev
```

### 配置

根目录下创建 `.stylelintrc.json`

```json
{
"extends": "@vingogo/stylelint-config"
}
```

### 添加 script

```json
{
"scripts": {
"stylelint": "stylelint --fix \"src/**/*.scss\""
}
}
```
29 changes: 29 additions & 0 deletions packages/stylelint-config/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
module.exports = {
extends: [
'stylelint-config-standard',
'stylelint-config-rational-order',
'stylelint-prettier/recommended',
'stylelint-config-prettier'
],
plugins: [
'stylelint-order',
'stylelint-declaration-block-no-ignored-properties'
],
rules: {
'comment-no-empty': true,
'no-descending-specificity': null,
'at-rule-no-unknown': null,
'selector-pseudo-element-no-unknown': [
true,
{
ignorePseudoElements: ['v-deep']
}
],
'selector-pseudo-class-no-unknown': [
true,
{
ignorePseudoClasses: ['global']
}
]
}
};
34 changes: 34 additions & 0 deletions packages/stylelint-config/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"name": "@vingogo/stylelint-config",
"version": "0.0.0",
"description": "vingogo stylelint-config",
"main": "index.js",
"keywords": [
"eslint-config"
],
"files": [
"index.js"
],
"publishConfig": {
"registry": "https://registry.npmjs.org",
"access": "public"
},
"repository": {
"type": "git",
"url": "https://github.com/vingogo/vin-cli.git",
"directory": "packages/stylelint-config"
},
"author": "Alvin",
"license": "MIT",
"dependencies": {
"stylelint-prettier": "^3.0.0",
"stylelint-config-prettier": "^8.0.2",
"stylelint-config-rational-order": "^0.1.2",
"stylelint-config-standard": "^22.0.0",
"stylelint-declaration-block-no-ignored-properties": "^2.3.0",
"stylelint-order": "^4.1.0"
},
"peerDependencies": {
"stylelint": ">=13.13.1"
}
}
Loading

0 comments on commit fabfbcb

Please sign in to comment.