chore: add @vant/stylelint-config package (#4943)

This commit is contained in:
neverland
2019-11-06 15:41:20 +08:00
committed by GitHub
parent 0108b44699
commit 6ff5c93cd1
7 changed files with 2498 additions and 16 deletions

View File

@@ -0,0 +1,23 @@
# Stylelint Config of Vant
## Install
#### NPM
```shell
npm i @vant/stylelint-config -D
```
#### YARN
```shell
yarn add @vant/stylelint-config --dev
```
## Usage
```js
{
"extends": ["@vant/stylelint-config"]
}
```

View File

@@ -0,0 +1,11 @@
module.exports = {
extends: ['stylelint-config-standard', 'stylelint-config-rational-order'],
rules: {
'order/properties-order': [],
'at-rule-no-unknown': null,
'number-leading-zero': null,
'no-descending-specificity': null,
'declaration-colon-newline-after': null,
'font-family-no-missing-generic-family-keyword': null
}
};

View File

@@ -0,0 +1,19 @@
{
"name": "@vant/stylelint-config",
"version": "1.0.0",
"description": "stylelint config of vant.",
"main": "index.js",
"publishConfig": {
"access": "public"
},
"license": "MIT",
"repository": "https://github.com/youzan/vant/tree/dev/packages/vant-stylelint-config",
"peerDependencies": {
"stylelint": "^11.0.0"
},
"dependencies": {
"stylelint-config-rational-order": "^0.1.2",
"stylelint-config-standard": "^19.0.0",
"stylelint-order": "^3.1.1"
}
}

File diff suppressed because it is too large Load Diff