diff --git a/.eslintrc b/.eslintrc index 2c1f512a1..9887d1c6d 100644 --- a/.eslintrc +++ b/.eslintrc @@ -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, diff --git a/package.json b/package.json index 86dd83d3a..d69018f16 100644 --- a/package.json +++ b/package.json @@ -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",