eslint-plugin-styled-component-jsx-attributes
v1.0.7
Published
A simple plugin for enforcing the use of the id attribute on styled components.
Downloads
57
Maintainers
Readme
Eslint Plugin Styled Component JSX Attributes
A simple plugin for enforcing the use of the id attribute on styled components.
Installation
Install as a dev dependency:
yarn add -D eslint-plugin-styled-component-jsx-attributes
or
npm i --save-dev eslint-plugin-styled-component-jsx-attributes
Configuration
Add styled-component-jsx-attributes to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": ["styled-component-jsx-attributes"]
}