0.0.2 • Published 8 years ago

eslint-plugin-styled-components-config v0.0.2

Weekly downloads
923
License
ISC
Repository
-
Last release
8 years ago

eslint-plugin-styled-components-config

Eslint rules for styled-components config

Build Status

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-styled-components-config:

$ npm install eslint-plugin-styled-components-config --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-styled-components-config globally.

Usage

Add display-name-required to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "styled-components-config"
    ]
}

Then configure the rules you want to use under the rules section.

{
    "rules": {
        "styled-components-config/rule-name": 2
    }
}

Supported Rules

Author

Dima Pavlovsky