https://github.com/giuseppeg/styled-jsx-plugin-stylelint
Plugin to use stylelint with styled-jsx. Warning this is a Proof Of Concept plugin.
https://github.com/giuseppeg/styled-jsx-plugin-stylelint
css-in-js linter styled-jsx styled-jsx-plugin stylelint
Last synced: about 1 year ago
JSON representation
Plugin to use stylelint with styled-jsx. Warning this is a Proof Of Concept plugin.
- Host: GitHub
- URL: https://github.com/giuseppeg/styled-jsx-plugin-stylelint
- Owner: giuseppeg
- Created: 2017-10-15T16:02:51.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-05-10T17:36:13.000Z (about 5 years ago)
- Last Synced: 2025-04-23T08:07:19.051Z (about 1 year ago)
- Topics: css-in-js, linter, styled-jsx, styled-jsx-plugin, stylelint
- Language: JavaScript
- Size: 40 KB
- Stars: 17
- Watchers: 1
- Forks: 2
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# 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