0.0.2 • Published 7 years ago

@alloyteam/stylelint-config-standard v0.0.2

Weekly downloads
1
License
ISC
Repository
github
Last release
7 years ago

Tencent AlloyTeam JavaScript Code Guide Stylelint Configuration

Installation

Install Shareable Config

There are one configs contained in this repo:

npm i --save-dev @alloyteam/stylelint-config-standard

Global

npm install -g stylelint

stylelint --config stylelintrc.js xxx.less

Local

npm install --save-dev stylelint

// in package.json
scripts: {
	lint: "stylelint --config stylelintrc.js xxx.less"
}

npm run lint

Usage

  • create .stylelintrc.js file
  • if you would like standard code guide, please copy and paste following content
module.exports = {
    "env": {},
    "extends": [
        "@alloyteam/stylelint-config-standard",
    ],
    "plugins": [],
    "rules": {},
    "globals": {}
};

Reference