eslint-plugin-css-in-js
This plugin provides a collection of ESLint rules that help with linting CSS-in-JS codebases.
Installation
You'll first need to install ESLint:
npm i eslint, @jchiam/eslint-plugin-css-in-js --save-dev
Add the plugin to your ESLint config file (e.g. .eslintrc
):
{
"plugins": [
...,
"@jchiam/eslint-plugin-css-in-js"
]
}
Usage
The plugin does not enable any rule out of the box. To add a rule, add them manually to the rules section in your ESLint config file.
{
"rules": {
"@jchiam/css-in-js/css-concentric-order": "warn"
}
}