Skip to content

Commit

Permalink
Turn off no-inline-styles lint internally
Browse files Browse the repository at this point in the history
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
  • Loading branch information
sahrens authored and M-i-k-e-l committed Mar 10, 2020
1 parent fee92e2 commit 47147b2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 1 addition & 3 deletions RNTester/js/TextExample.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 0 additions & 2 deletions RNTester/js/ViewExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

/* eslint-disable react-native/no-inline-styles */

const React = require('react');
const {
StyleSheet,
Expand Down

0 comments on commit 47147b2

Please sign in to comment.