eslint-config-uber-jsx
Version:
The base jsx eslint config for web JavaScript at Uber
53 lines (35 loc) • 1.17 kB
Markdown
# eslint-config-uber-jsx [![NPM version][npm-image]][npm-url]
> The base jsx eslint config for web JavaScript at Uber
## Installation
Install [eslint](https://www.github.com/eslint/eslint) and [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) either locally or globally.
```sh
npm install --save-dev eslint eslint-plugin-react
```
If you installed `eslint` locally, you should install `eslint-config-uber-jsx` locally too. Otherwise, install it globally.
```sh
npm install --save-dev eslint-config-uber-jsx
```
## Usage
Initialize a `.eslintrc` file or append to an existing one.
*Note: you can also configure eslint with [other types of config files](http://eslint.org/docs/user-guide/configuring#configuration-file-formats)*
#### Before
```js
{
"rules": {},
"extends": []
}
```
#### After
```js
{
"rules": {},
"extends": [
"eslint-config-uber-jsx"
]
}
```
*`eslint-config-uber-es5` is already included, so there's no need to extend it.*
===
[:back: to uber-eslint home](../../README.md)
[npm-image]: https://badge.fury.io/js/eslint-config-uber-jsx.svg
[npm-url]: https://npmjs.org/package/eslint-config-uber-jsx