stylelint config

This commit is contained in:
mwx816443 2020-06-06 09:23:19 +08:00
parent 2cab264790
commit 4933c388fe
3 changed files with 31 additions and 0 deletions

27
.stylelintrc.json Normal file
View File

@ -0,0 +1,27 @@
{
"extends": "stylelint-config-sass-guidelines",
"plugins": [
"stylelint-order"
],
"rules": {
"property-no-vendor-prefix": null,
"declaration-block-semicolon-newline-after": "always-multi-line",
"declaration-property-value-blacklist": null,
"selector-no-qualifying-type": null,
"selector-pseudo-element-no-unknown": null,
"selector-no-vendor-prefix": null,
"media-feature-name-no-vendor-prefix": null,
"scss/at-import-partial-extension-blacklist": null,
"scss/selector-no-redundant-nesting-selector": null,
"scss/at-mixin-pattern": null,
"scss/dollar-variable-pattern": null,
"order/properties-alphabetical-order": null,
"selector-max-id": null,
"property-no-unknown": null,
"color-named": null,
"value-no-vendor-prefix": null,
"selector-class-pattern": null,
"max-nesting-depth": 10,
"selector-max-compound-selectors": 10
}
}

3
.sytlelintignore Normal file
View File

@ -0,0 +1,3 @@
src/assets
public
dist

View File

@ -10,6 +10,7 @@
"build:stage": "vue-cli-service build --mode staging", "build:stage": "vue-cli-service build --mode staging",
"preview": "node build/index.js --preview", "preview": "node build/index.js --preview",
"lint": "eslint --ext .js,.vue src", "lint": "eslint --ext .js,.vue src",
"lint:style": "stylelint --aei .vue,.html src",
"test:unit": "jest --clearCache && vue-cli-service test:unit", "test:unit": "jest --clearCache && vue-cli-service test:unit",
"test:ci": "npm run lint && npm run test:unit", "test:ci": "npm run lint && npm run test:unit",
"svgo": "svgo -f src/icons/svg --config=src/icons/svgo.yml", "svgo": "svgo -f src/icons/svg --config=src/icons/svgo.yml",