DEPRECATED! Check @modyqyw/stylelint-config.
A Stylelint shareable config for less. Also support miniprograms.
- Install the config.
npm i stylelint@~13.7.0 @modyqyw/stylelint-config-less@~1.1.0 -D
For yarn, run scripts below.
yarn add stylelint@~13.7.0 @modyqyw/stylelint-config-less@~1.1.0 -D
- Set up.
// stylelint.config.js
module.exports = {
extends: ["@modyqyw/stylelint-config-less"],
};
- Install plugins.
- Set up
Settings.json
. ThenF1 => File: Save
.
{
"css.validate": false,
"less.validate": false,
"scss.validate": false,
"editor.codeActionsOnSave": {
"source.fixAll": 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"
}
}
Copyright (c) 2020-present MillCloud