@temowemo/eslint-config-react v1.0.10
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: