Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/steamerjs/style-lint
alloyteam css style lint
https://github.com/steamerjs/style-lint
Last synced: about 1 month ago
JSON representation
alloyteam css style lint
- Host: GitHub
- URL: https://github.com/steamerjs/style-lint
- Owner: steamerjs
- Created: 2017-06-16T05:08:09.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-06-16T08:24:02.000Z (over 7 years ago)
- Last Synced: 2024-11-09T20:40:24.732Z (about 2 months ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 8
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
## Tencent AlloyTeam JavaScript Code Guide Stylelint Configuration
## Installation
### Install Shareable Config
There are one configs contained in this repo:
* [@alloyteam/stylelint-config-standard](https://github.com/steamerjs/style-lint/tree/master/packages/standard)```javascript
npm i --save-dev @alloyteam/stylelint-config-standard
```### Global
```javascript
npm install -g stylelintstylelint --config stylelintrc.js xxx.less
```### Local
```javascript
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```javascript
module.exports = {
"env": {},
"extends": [
"@alloyteam/stylelint-config-standard",
],
"plugins": [],
"rules": {},
"globals": {}
};
```## Reference
* [Alloyteam Code Guide](http://alloyteam.github.io/CodeGuide)
* [Stylelint Code Guide](https://stylelint.io/user-guide/configuration/#extends)