diff --git a/.stylelintrc.json b/.stylelintrc.json new file mode 100644 index 00000000..bf3fe7b9 --- /dev/null +++ b/.stylelintrc.json @@ -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 + } +} diff --git a/.sytlelintignore b/.sytlelintignore new file mode 100644 index 00000000..70567fa0 --- /dev/null +++ b/.sytlelintignore @@ -0,0 +1,3 @@ +src/assets +public +dist diff --git a/package.json b/package.json index 0d728018..7c9231e1 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "build:stage": "vue-cli-service build --mode staging", "preview": "node build/index.js --preview", "lint": "eslint --ext .js,.vue src", + "lint:style": "stylelint --aei .vue,.html src", "test:unit": "jest --clearCache && vue-cli-service test:unit", "test:ci": "npm run lint && npm run test:unit", "svgo": "svgo -f src/icons/svg --config=src/icons/svgo.yml",