ESLint rule that check suitcss-classnames argument object shape.
npm install eslint-plugin-suitcss-classnameseslint-plugin that provide rules for suitcss-classnames.
- Check object shape of suitClassNames(object).
- states's key should start with is-*
Install with npm:
npm install eslint-plugin-suitcss-classnames
``js`
{
"plugins": [
"suitcss-classnames"
],
"rules": {
"suitcss-classnames/states": 2
}
}
See Releases page.
Install devDependencies and Run npm test:
npm i -d && npm test
Pull requests and stars are always welcome.
For bugs and feature requests, please create an issue.
1. Fork it!
2. Create your feature branch: git checkout -b my-new-featuregit commit -am 'Add some feature'
3. Commit your changes: git push origin my-new-feature`
4. Push to the branch:
5. Submit a pull request :D
MIT © azu