1.0.5 • Published 3 years ago

@modyqyw/stylelint-config v1.0.5

Weekly downloads
2
License
MIT
Repository
github
Last release
3 years ago

DEPRECATED. Check @modyqyw/fabric.

@modyqyw/stylelint-config

A Stylelint shareable config for CSS/LESS/SCSS. Supports miniprogram.

Usage

npm i -D stylelint@~13.8.0 @modyqyw/stylelint-config@~1.0.5
# or
# yarn add -D stylelint@~13.8.0 @modyqyw/stylelint-config@~1.0.5
// ${PROJECT_DIR}/stylelint.config.js
module.exports = {
  extends: ["@modyqyw/stylelint-config/css"], // for css
  // extends: ["@modyqyw/stylelint-config/less"], // for less
  // extends: ["@modyqyw/stylelint-config/scss"], // for scss
};

VSCode

  • Install plugins.
  • Set up Settings.json. Then F1 => File: Save.
{
  "css.validate": false,
  "editor.codeActionsOnSave": {
    "source.fixAll.stylelint": true
  },
  "files.associations": {
    "*.wxml": "html",
    "*.wxs": "javascript",
    "*.wxss": "css",
    "*.axml": "html",
    "*.sjs": "javascript",
    "*.acss": "css",
    "*.swan": "html",
    "*.ttml": "html",
    "*.ttss": "css",
    "*.jxml": "html",
    "*.jxss": "css",
    "*.wpy": "vue",
    "*.nvue": "vue",
    "*.ux": "vue"
  },
  "less.validate": false,
  "scss.validate": false,
  "[vue]": {
    "editor.defaultFormatter": "octref.vetur"
  }
}

More Config

@modyqyw/eslint-config and @modyqyw/stylelint-config do not use any Prettier config and plugin, while @modyqyw/fabric does.

License

MIT

Copyright (c) 2020-present MillCloud