Skip to content
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.
/ stylelint-config Public archive

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

License

Notifications You must be signed in to change notification settings

MillCloud/stylelint-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published