stylelint-wxss
A collection of WXSS specific linting rules for stylelint (in a form of plugin).
Installation and usage
npm install stylelint stylelint-wxss
Create the configuration file stylelint.config.js
:
module.exports = {
plugins: ['stylelint-wxss'],
rules: {
'wxss/selector-disallowed': ['tag', 'id', 'attribute']
}
}
List of rules
wxss/selector-disallowed
To disable specific selector types.