Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zoubin/stylelint-wxss
A collection of WXSS specific linting rules for [stylelint](https://github.com/stylelint/stylelint) (in a form of plugin)
https://github.com/zoubin/stylelint-wxss
Last synced: 8 days ago
JSON representation
A collection of WXSS specific linting rules for [stylelint](https://github.com/stylelint/stylelint) (in a form of plugin)
- Host: GitHub
- URL: https://github.com/zoubin/stylelint-wxss
- Owner: zoubin
- Created: 2021-01-07T04:57:00.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-08-21T11:55:12.000Z (about 1 year ago)
- Last Synced: 2024-11-07T18:54:17.696Z (11 days ago)
- Language: JavaScript
- Size: 417 KB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# stylelint-wxss
A collection of WXSS specific linting rules for [stylelint](https://github.com/stylelint/stylelint) (in a form of plugin).## Installation and usage
```bash
npm install stylelint stylelint-wxss```
Create the configuration file `stylelint.config.js`:
```js
module.exports = {
plugins: ['stylelint-wxss'],
rules: {
'wxss/selector-disallowed': ['tag']
}
}```
### `options.exclude`
```js
module.exports = {
plugins: ['stylelint-wxss'],
rules: {
'wxss/selector-disallowed': [['tag'], {
exclude: {
tag: ['page']
}
}]
}
}```
### `options.glob`
`glob` options: [multimatch](https://github.com/sindresorhus/multimatch#globbing-patterns)
```js
module.exports = {
plugins: ['stylelint-wxss'],
rules: {
'wxss/selector-disallowed': [['tag'], {
// skip lint files under component directory
glob: ['**', '!**/component/**']
}]
}
}```
## List of rules
### wxss/selector-disallowed
To disable specific selector types.