@jamesallardice/eslint-config-react

1.0.1 • Public • Published

@jamesallardice/eslint-config-react

This module provides my personal ESLint config for all React apps with JSX.

Usage

Extend this module in your own ESLint configuration file. You can use either the default parser or babel-eslint. If you're using Babel to compile your code it is recommended that you use babel-eslint. Assuming you are using the default JSON form of .eslintrc that will look something like this:

{
  "extends": "@jamesallardice/eslint-config-base",
  "parser": "babel-eslint",
  "settings": {
    "react": {
      "version": "15.0"
    }
  }
}

If you do not use babel-eslint you will have to set some additional options:

{
  "parserOptions": {
    "ecmaFeatures": {
      "jsx": true
    }
}

Readme

Keywords

none

Package Sidebar

Install

npm i @jamesallardice/eslint-config-react

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • jamesallardice