Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 1.02 KB

README.md

File metadata and controls

41 lines (30 loc) · 1.02 KB

ESLint plugin for React JSS

React JSS specific linting rules for ESLint.

Installation

Install ESLint either locally or globally.

$ npm install --save-dev eslint

Similarly, install eslint-plugin-react-jss

$ npm install --save-dev eslint-plugin-react-jss

Configuration

Add plugins section and specify and ESLint-plugin-react-jss as a plugin.

{
  "plugins": ["react-jss"]
}

Finally, enable the rules that you would like to use.

{
  "rules": {
    "react-jss/prefer-object": "warn"
  }
}