Skip to content

Commit

Permalink
Clear some lint warnings (#27893)
Browse files Browse the repository at this point in the history
Summary:
Applied linting for warnings that seemed trivial.

## Changelog

[Internal] [Fixed] - clear lint warnings
Pull Request resolved: #27893

Test Plan: yarn lint

Differential Revision: D19619569

Pulled By: cpojer

fbshipit-source-id: f9f02838c56e94abc1590686c8443c6c6e6f44ca
  • Loading branch information
Naturalclar authored and facebook-github-bot committed Jan 29, 2020
1 parent 2f9d944 commit 5b8f4ef
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 12 deletions.
9 changes: 5 additions & 4 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# node_modules ignored by default

**/staticBundle.js
**/main.js
Libraries/vendor/**/*
**/staticBundle.js
bots/node_modules
docs/generatedComponentApiDocs.js
flow/
Libraries/Renderer/*
Libraries/vendor/**/*
packages/*/node_modules
pr-inactivity-bookmarklet.js
question-bookmarklet.js
flow/
bots/node_modules
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
'use strict';

import type {HostComponent} from '../../Renderer/shims/ReactNativeTypes';
import type {SyntheticEvent} from '../../Types/CoreEventTypes';
import type {ViewProps} from '../View/ViewPropTypes';
import codegenNativeCommands from 'react-native/Libraries/Utilities/codegenNativeCommands';
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
Expand Down
1 change: 0 additions & 1 deletion Libraries/Components/TextInput/TextInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ const TouchableWithoutFeedback = require('../Touchable/TouchableWithoutFeedback'

const invariant = require('invariant');
const nullthrows = require('nullthrows');
const requireNativeComponent = require('../../ReactNative/requireNativeComponent');
const setAndForwardRef = require('../../Utilities/setAndForwardRef');

import type {TextStyleProp, ViewStyleProp} from '../../StyleSheet/StyleSheet';
Expand Down
1 change: 0 additions & 1 deletion Libraries/TurboModule/RCTExport.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,4 @@ export interface DEPRECATED_RCTExport<T: void = void> {
+getConstants?: () => {...};
}

// eslint-disable-next-line lint/react-native-modules
export interface TurboModule extends DEPRECATED_RCTExport<void> {}
2 changes: 0 additions & 2 deletions Libraries/Utilities/MatrixMath.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
* @noflow
*/

/* eslint-disable space-infix-ops */

'use strict';

const invariant = require('invariant');
Expand Down
1 change: 0 additions & 1 deletion Libraries/WebSocket/WebSocket.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ const Blob = require('../Blob/Blob');
const BlobManager = require('../Blob/BlobManager');
const EventTarget = require('event-target-shim');
const NativeEventEmitter = require('../EventEmitter/NativeEventEmitter');
const Platform = require('../Utilities/Platform');
const WebSocketEvent = require('./WebSocketEvent');

const base64 = require('base64-js');
Expand Down
2 changes: 0 additions & 2 deletions RNTester/js/utils/RNTesterActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

import type {RNTesterTheme} from '../components/RNTesterTheme';

export type RNTesterBackAction = {type: 'RNTesterBackAction', ...};

export type RNTesterListAction = {type: 'RNTesterListAction', ...};
Expand Down

0 comments on commit 5b8f4ef

Please sign in to comment.