Skip to content

Commit 89757ed

Browse files
SnowCoderAlexfacebook-github-bot
authored andcommitted
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
1 parent 8cdc7d3 commit 89757ed

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.eslintrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"flowtype",
1414
"prettier",
1515
"react",
16+
"react-native",
1617
"jest"
1718
],
1819

@@ -252,6 +253,11 @@
252253
"react/self-closing-comp": 1,
253254
"react/wrap-multilines": 0,
254255

256+
// React-Native Plugin
257+
// The following rules are made available via `eslint-plugin-react-native`
258+
259+
"react-native/no-inline-styles": 1,
260+
255261
// Jest Plugin
256262
// The following rules are made available via `eslint-plugin-jest`.
257263
"jest/no-disabled-tests": 1,

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@
166166
"denodeify": "^1.2.1",
167167
"envinfo": "^3.0.0",
168168
"errorhandler": "^1.5.0",
169+
"eslint-plugin-react-native": "^3.2.1",
169170
"event-target-shim": "^1.0.5",
170171
"fbjs": "^0.8.14",
171172
"fbjs-scripts": "^0.8.1",

0 commit comments

Comments
 (0)