Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

eslint-plugin-styled-component-jsx-attributes

tripptofan223ISC1.0.9

A simple plugin for enforcing the use of the id attribute on styled components.

react, eslint, styled-components, accessibility, eslint-plugin, jsx-a11y, eslint-plugin-jsx-a11y, a11y, emotion, css-in-js, jsx, aria, WAI-ARIA, eslintplugin, styledcomponents, styles, styled, styled components, eslint plugin jsx a11y, css in js

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