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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 2498 additions and 16 deletions

View File

@ -1,14 +1,3 @@
{
"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
}
"extends": ["@vant/stylelint-config"]
}

View File

@ -76,6 +76,7 @@
"@vant/eslint-config": "^1.4.0",
"@vant/markdown-loader": "^2.2.0",
"@vant/markdown-vetur": "^1.0.0",
"@vant/stylelint-config": "^1.0.0",
"@vant/touch-emulator": "^1.1.0",
"@vue/babel-preset-jsx": "^1.1.0",
"@vue/test-utils": "^1.0.0-beta.29",
@ -100,9 +101,6 @@
"postcss-loader": "^3.0.0",
"style-loader": "^1.0.0",
"stylelint": "^11.0.0",
"stylelint-config-rational-order": "^0.1.2",
"stylelint-config-standard": "^19.0.0",
"stylelint-order": "^3.0.1",
"ts-jest": "^24.0.2",
"typescript": "^3.5.3",
"uppercamelcase": "^3.0.0",

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

View File

@ -1345,6 +1345,15 @@
resolved "https://registry.yarnpkg.com/@vant/markdown-vetur/-/markdown-vetur-1.0.0.tgz#04774bc45cb6e11c734b8985925558ed8d3aab61"
integrity sha512-v6rVoLPJhKc6V4iHnidaueHCdkF6/aCVdQFDGvKcYoNJnVL8t8pem/XGJ+VBFNfD3b2pggwLc1QaWYVJFfaXLw==
"@vant/stylelint-config@^1.0.0":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@vant/stylelint-config/-/stylelint-config-1.0.0.tgz#83a9a68510d8de3b94bcfbcd45c5303b574c702e"
integrity sha512-503KNz26HwiXP8mndmKl6z59SjEyeEM/vDDX5Cez+S6HLWLEod4vNmRPB0WWVUGrszqKvKdZ1DHFnTA1LSChGQ==
dependencies:
stylelint-config-rational-order "^0.1.2"
stylelint-config-standard "^19.0.0"
stylelint-order "^3.1.1"
"@vant/touch-emulator@^1.1.0":
version "1.1.0"
resolved "https://registry.yarnpkg.com/@vant/touch-emulator/-/touch-emulator-1.1.0.tgz#3cb2bcf87dbed1f8a2408c57139ee4fb2e761e5f"
@ -9391,7 +9400,7 @@ stylelint-order@^2.2.1:
postcss "^7.0.2"
postcss-sorting "^4.1.0"
stylelint-order@^3.0.1:
stylelint-order@^3.1.1:
version "3.1.1"
resolved "https://registry.yarnpkg.com/stylelint-order/-/stylelint-order-3.1.1.tgz#ba9ea6844d1482f97f31204e7c9605c7b792c294"
integrity sha512-4gP/r8j/6JGZ/LL41b2sYtQqfwZl4VSqTp7WeIwI67v/OXNQ08dnn64BGXNwAUSgb2+YIvIOxQaMzqMyQMzoyQ==