Linter checks for extraneous dependencies

Summary: Added eslint rule "no-extraneous-imports" which disallow using modules which are not listed as dependencies in the corresponding package.json. Fixed a bunch of reported errors after the rule applied.

Reviewed By: passy

Differential Revision: D21186848

fbshipit-source-id: 0af9ac4b3fffdfd0ab7c23ae4ff12a3f5989d5e9
This commit is contained in:
Anton Nikolaev
2020-04-23 05:30:29 -07:00
committed by Facebook GitHub Bot
parent 17ccdeaf6f
commit ec07272c78
18 changed files with 278 additions and 180 deletions

View File

@@ -0,0 +1,17 @@
{
"name": "flipper-headless",
"private": true,
"version": "0.39.0",
"description": "Headless version of Flipper - Mobile development tool",
"productName": "Flipper Headless",
"author": "Facebook Inc",
"main": "index.tsx",
"license": "MIT",
"dependencies": {
"node-fetch": "^2.3.0",
"redux": "^4.0.0",
"remote-redux-devtools": "^0.5.16",
"ws": "^7.2.3",
"yargs": "^15.3.1"
}
}