UNPKG

eslint-config-uber-es5

Version:

The base eslint config for web JavaScript at Uber

50 lines (34 loc) 984 B
# eslint-config-uber-es5 [![NPM version][npm-image]][npm-url] > The base eslint config for web JavaScript at Uber ## Installation Install [eslint](https://www.github.com/eslint/eslint) either locally or globally. ```sh npm install --save-dev eslint ``` If you installed `eslint` locally, you should install `eslint-config-uber-es5` locally too. Otherwise, install it globally. ```sh npm install --save-dev eslint-config-uber-es5 ``` ## 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-es5" ] } ``` === [:back: to uber-eslint home](../../README.md) [npm-image]: https://badge.fury.io/js/eslint-config-uber-es5.svg [npm-url]: https://npmjs.org/package/eslint-config-uber-es5