Skip to content

dashxhq/eslint-plugin-react-jss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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