styled-jsx-plugin-stylelint
Version:
Plugin to use stylelint with styled-jsx
39 lines (26 loc) • 1.05 kB
Markdown
# styled-jsx-plugin-stylelint
[](https://travis-ci.org/giuseppeg/styled-jsx-plugin-stylelint)
[](https://www.npmjs.com/package/styled-jsx-plugin-stylelint)
Use [stylelint](https://github.com/stylelint/stylelint) with [styled-jsx](https://github.com/zeit/styled-jsx) 💥
## Usage
Install the package first.
```bash
npm install --save styled-jsx-plugin-stylelint
```
Next, add `styled-jsx-plugin-stylelint` to the `styled-jsx`'s `plugins` in your babel configuration:
```json
{
"plugins": [
[
"styled-jsx/babel",
{ "plugins": ["styled-jsx-plugin-stylelint"] }
]
]
}
```
#### Notes
`styled-jsx-plugin-stylelint` uses `styled-jsx`'s plugin system which is supported from version 2.
Read more on their repository for further info.
**This is a Proof of Concept plugin, in case you or your team needs such a plugin please consider contributing.**
## License
MIT