Skip to content

Commit

Permalink
Fix various JS linter warnings (facebook#36307)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: facebook#36307

[Changelog][Internal]

Noticed some JS linter warnings during CircleCI tests being run, this disturbed my OCD, so here's a fix for them.

Reviewed By: cipolleschi

Differential Revision: D43619403

fbshipit-source-id: 779a1d2e197298275d06a2597cfef7554017016f
  • Loading branch information
rshest authored and OlimpiaZurek committed May 22, 2023
1 parent ff87aab commit e9b90a0
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Libraries/ActionSheetIOS/ActionSheetIOS.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
import type {ProcessedColorValue} from '../StyleSheet/processColor';
import type {ColorValue} from '../StyleSheet/StyleSheet';

import processColor from '../StyleSheet/processColor';
import RCTActionSheetManager from './NativeActionSheetManager';

import processColor from '../StyleSheet/processColor';
const invariant = require('invariant');

/**
Expand Down
1 change: 0 additions & 1 deletion Libraries/Animated/nodes/AnimatedNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

import type {PlatformConfig} from '../AnimatedPlatformConfig';

import ReactNativeFeatureFlags from '../../ReactNative/ReactNativeFeatureFlags';
import NativeAnimatedHelper from '../NativeAnimatedHelper';
import invariant from 'invariant';

Expand Down
2 changes: 0 additions & 2 deletions Libraries/Core/__tests__/ExceptionsManager-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

import LogBox from '../../LogBox/LogBox';

const ExceptionsManager = require('../ExceptionsManager');
const NativeExceptionsManager = require('../NativeExceptionsManager').default;
const ReactFiberErrorDialog = require('../ReactFiberErrorDialog').default;
Expand Down
3 changes: 2 additions & 1 deletion Libraries/ReactNative/getNativeComponentAttributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@

'use strict';

import processColor from '../StyleSheet/processColor';

const ReactNativeStyleAttributes = require('../Components/View/ReactNativeStyleAttributes');
const resolveAssetSource = require('../Image/resolveAssetSource');
import processColor from '../StyleSheet/processColor';
const processColorArray = require('../StyleSheet/processColorArray');
const insetsDiffer = require('../Utilities/differ/insetsDiffer');
const matricesDiffer = require('../Utilities/differ/matricesDiffer');
Expand Down
2 changes: 1 addition & 1 deletion Libraries/Share/Share.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
*/

import NativeActionSheetManager from '../ActionSheetIOS/NativeActionSheetManager';
import processColor from '../StyleSheet/processColor';
import NativeShareModule from './NativeShareModule';

import processColor from '../StyleSheet/processColor';
const Platform = require('../Utilities/Platform');
const invariant = require('invariant');

Expand Down

0 comments on commit e9b90a0

Please sign in to comment.