1 | # eslint-config-fbjs
|
2 |
|
3 | For the most part, this configuration matches the ESLint configuration we have internally at Facebook.
|
4 |
|
5 | There are several exceptions:
|
6 |
|
7 | - **No special cases for projects.** Some projects have stricter lint rules. Those configurations are not present here. If you open source a project with different configuration, just specify the overrides in your own repository's `.eslintrc`
|
8 | - **No fb-specific rules.** We have a number of custom rules internally that are not synced out. We may do that in the future. This means there are several things which we will not catch here but will be caught in Phabricator. Beware of that when relying on this configuration as your only linting process.
|
9 |
|
10 | ## Usage
|
11 |
|
12 | ### Install:
|
13 |
|
14 | ```js
|
15 | npm install --save-dev eslint-config-fbjs eslint-plugin-babel eslint-plugin-flow-vars eslint-plugin-react eslint babel-eslint
|
16 | ```
|
17 |
|
18 | ### Configure
|
19 |
|
20 | Add `extends: 'fbjs'` to your local `.eslintrc`
|