1.0.7 • Published 1 year ago

eslint-plugin-styled-component-jsx-attributes v1.0.7

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

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"]
}