UNPKG

eslint-plugin-styled-component-jsx-attributes

Version:

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

31 lines (17 loc) 635 B
## Eslint Plugin Styled Component JSX Attributes A simple plugin for enforcing the use of the id attribute on styled components. <br /> <!-- should figure out how to actually style this section. this is a temp fix --> <br /> ## 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: ```json { "plugins": ["styled-component-jsx-attributes"] } ```