From f80a1c2146aaf7a5a898844deeb7d3dd2fd27945 Mon Sep 17 00:00:00 2001 From: Spencer Ahrens Date: Wed, 22 May 2019 16:48:25 -0700 Subject: [PATCH] Turn off no-inline-styles lint internally Summary: no-inline-styles is a false positive more often than not because it fires even when compositing dynamic styles which must be done inline. It's not that big a deal anyway so I'm just turning it off to reduce noise on diffs. Also removes all existing supressions. Reviewed By: yungsters Differential Revision: D15457771 fbshipit-source-id: 44fbd058834e70966b71fbe4eb7af40d6f3a0a57 --- RNTester/js/TextExample.android.js | 4 +--- RNTester/js/ViewExample.js | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/RNTester/js/TextExample.android.js b/RNTester/js/TextExample.android.js index efc53aa8d4a..ae21774375d 100644 --- a/RNTester/js/TextExample.android.js +++ b/RNTester/js/TextExample.android.js @@ -8,12 +8,10 @@ * @flow */ -/* eslint-disable react-native/no-inline-styles */ - 'use strict'; const React = require('react'); -const {Image, StyleSheet, Text, View} = require('react-native'); +const {StyleSheet, Text, View} = require('react-native'); const RNTesterBlock = require('./RNTesterBlock'); const RNTesterPage = require('./RNTesterPage'); const TextInlineView = require('./Shared/TextInlineView'); diff --git a/RNTester/js/ViewExample.js b/RNTester/js/ViewExample.js index 25dc2641f72..6c27499cce8 100644 --- a/RNTester/js/ViewExample.js +++ b/RNTester/js/ViewExample.js @@ -10,8 +10,6 @@ 'use strict'; -/* eslint-disable react-native/no-inline-styles */ - const React = require('react'); const { StyleSheet,