eslint-config-common-react
v1.0.2
Published
JavaScript Common coding Style React/JSX support - ESLint Shareable Config
Downloads
1
Maintainers
Readme
Common React coding style - ESLint Shareable Config
__ An ESLint Shareable Config for React/JSX support in JavaScript Common coding Style__
This module is for advanced users. You probably want to use common
instead :)
Install
npm install eslint-config-common-react
Usage
Shareable configs are designed to work with the extends
feature of .eslintrc
files.
You can learn more about
Shareable Configs on the
official ESLint website.
This Shareable Config adds React and JSX to the baseline JavaScript Common Style rules
provided in eslint-config-common
.
Here's how to install everything you need:
npm install eslint-config-common eslint-config-common-react eslint-config-common-jsx eslint-plugin-promise eslint-plugin-react eslint-plugin-standard
Then, add this to your .eslintrc file:
{
"extends": ["common", "common-react"]
}
Note: We omitted the eslint-config-
prefix since it is automatically assumed by ESLint.
You can override settings from the shareable config by adding them directly into your
.eslintrc
file.
Learn more
The rules of the Common coding style are based and/or inspired by:
- Google's JavaScript Style Guide
- Airbnb JavaScript Style Guide
- Felix's Node.js Style Guide
- Feross's JavaScript Standard Style
LICENSE
MIT (c) 2016, Nicolas Tallefourtane.
Author
| | |---| | Nicolas Talle | | |