mirror of
https://github.com/youzan/vant.git
synced 2025-10-17 08:37:23 +00:00
chore: add @vant/stylelint-config package (#4943)
This commit is contained in:
23
packages/vant-stylelint-config/README.md
Normal file
23
packages/vant-stylelint-config/README.md
Normal 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"]
|
||||
}
|
||||
```
|
11
packages/vant-stylelint-config/index.js
Normal file
11
packages/vant-stylelint-config/index.js
Normal 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
|
||||
}
|
||||
};
|
19
packages/vant-stylelint-config/package.json
Normal file
19
packages/vant-stylelint-config/package.json
Normal 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"
|
||||
}
|
||||
}
|
2433
packages/vant-stylelint-config/yarn.lock
Normal file
2433
packages/vant-stylelint-config/yarn.lock
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user