Add eslint-plugin-react-native Yarn package and enable no-inline-styles rule for Marketplace

Reviewed By: TheSavior

Differential Revision: D7158098

fbshipit-source-id: 52c92c5427d27278c8f82ffa5d61b7e9ebbf7824
This commit is contained in:
Alex McKelvey 2018-03-07 22:33:21 -08:00 committed by Facebook Github Bot
parent 8cdc7d3e02
commit 89757edb34
2 changed files with 7 additions and 0 deletions

View File

@ -13,6 +13,7 @@
"flowtype",
"prettier",
"react",
"react-native",
"jest"
],
@ -252,6 +253,11 @@
"react/self-closing-comp": 1,
"react/wrap-multilines": 0,
// React-Native Plugin
// The following rules are made available via `eslint-plugin-react-native`
"react-native/no-inline-styles": 1,
// Jest Plugin
// The following rules are made available via `eslint-plugin-jest`.
"jest/no-disabled-tests": 1,

View File

@ -166,6 +166,7 @@
"denodeify": "^1.2.1",
"envinfo": "^3.0.0",
"errorhandler": "^1.5.0",
"eslint-plugin-react-native": "^3.2.1",
"event-target-shim": "^1.0.5",
"fbjs": "^0.8.14",
"fbjs-scripts": "^0.8.1",