1.0.10 • Published 6 years ago

@temowemo/eslint-config-react v1.0.10

Weekly downloads
1
License
ISC
Repository
github
Last release
6 years ago

ESLint React Config by temowemo

Summary:

A very opinionated ESLint configuration module with all of my personal preferences.

This package is made to work with React.js environments. Check the source code to see the exact configuration.

Installation:

Install ESLint:

npm install eslint --save-dev

Install the necessary Babel packages:

npm install babel-cli babel-core babel-eslint babel-loader babel-plugin-transform-class-properties babel-plugin-transform-object-rest-spread babel-preset-env babel-preset-react --save-dev

Install my ESlint ES6+ configuration package (optional):

npm install @temowemo/eslint-config --save-dev

Install this package:

npm install @temowemo/eslint-config-react --save-dev

Configuration:

Create a Babel configuration file (.babelrc):

{
  "presets": [ 
    "env", 
    "react" 
  ],
  "plugins": [
    "transform-class-properties",
    "transform-object-rest-spread"
  ]
}

Create an ESLint configuration file (.eslintrc.js):

module.exports = {
  "extends": [
    "eslint:recommended", // optional
    "@temowemo/eslint-config", // optional
    "@temowemo/eslint-config-react"
  ],
  parser: "babel-eslint",
}

And now you are ready to go! :wave:

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago