-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use new eslint-config-fbjs, fix lint warnings
Summary: I just shipped `eslint-config-fbjs` which much more closely matches the lint config we have internally, uses a few plugins, and has the globals we need for Flow. This also takes care of the really large list of Flow-related unused/undef var warnings. With this you're back down to 0 warnings. Closes #1280 Reviewed By: zpao Differential Revision: D3562291 Pulled By: kassens fbshipit-source-id: ea70968d2fbf9022435af032f6a147fa491cf228
- Loading branch information
Showing
7 changed files
with
21 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,8 @@ | ||
--- | ||
parser: babel-eslint | ||
|
||
extends: | ||
- ./node_modules/fbjs-scripts/eslint/.eslintrc.js | ||
|
||
plugins: | ||
- react | ||
- fbjs | ||
|
||
rules: | ||
react/jsx-uses-react: 2 | ||
|
||
globals: | ||
$Keys: true | ||
$FixMe: true | ||
$FlowFixMe: true | ||
$FlowIssue: true | ||
Iterator: true | ||
IteratorResult: true | ||
ReactClass: true | ||
ReactElement: true | ||
# this is very noisy, so disable | ||
consistent-return: 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters