Skip to content

Commit 1d8fec1

Browse files
huntiefacebook-github-bot
authored andcommitted
Fix all active ESLint warnings (#50964)
Summary: Pull Request resolved: #50964 Address/supress ESLint warnings across the codebase, currently flagged on every PR via GitHub's "Unchanged files with check annotations" check. {F1977480883} Changelog: [Internal] Reviewed By: cipolleschi Differential Revision: D73778510 fbshipit-source-id: 91bed86877eae74fa3b9ebea71e26cdcaeee1761
1 parent 93efaeb commit 1d8fec1

File tree

9 files changed

+5
-6
lines changed

9 files changed

+5
-6
lines changed

flow-typed/npm/jest.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
// Modifications are explained inline by comments beginning with `// MODIFIED`.
1313

1414
// MODIFIED: Added ESLint suppression comment - no-unused-vars doesn't understand declaration files
15-
/* eslint-disable no-unused-vars */
1615

1716
type JestMockFn<TArguments: $ReadOnlyArray<mixed>, TReturn> = {
1817
(...args: TArguments): TReturn,

packages/assets/registry.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,5 @@ function getAssetByID(assetId /*: number */) /*: PackagerAsset */ {
4040
return assets[assetId - 1];
4141
}
4242

43+
// eslint-disable-next-line lint/no-commonjs-exports
4344
module.exports = {registerAsset, getAssetByID};

packages/dev-middleware/src/inspector-proxy/Device.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ import WS from 'ws';
3737
const debug = require('debug')('Metro:InspectorProxy');
3838

3939
const PAGES_POLLING_INTERVAL = 1000;
40-
const MIN_MESSAGE_QUEUE_BYTES_TO_REPORT = 2 * 1024 * 1024; // 2 MiB
4140

4241
const WS_CLOSURE_CODE = {
4342
NORMAL: 1000,

packages/polyfills/console.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
'use client';
1313

14-
/* eslint-disable no-shadow, eqeqeq, curly, no-unused-vars, no-void, no-control-regex */
14+
/* eslint-disable no-shadow, eqeqeq, no-unused-vars, no-void, no-control-regex */
1515

1616
/**
1717
* This pipes all of our console logging functions to native logging so that

packages/react-native-compatibility-check/src/__tests__/TypeDiffing-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ const [
8282
nativeTypeDiffingTypesAliases,
8383
nativeTypeDiffingTypesMethodParamLookup,
8484
nativeTypeDiffingTypesMethodLookup,
85-
_,
85+
,
8686
nativeTypeDiffingTypesEnums,
8787
] = getModule(
8888
'native-module-type-diffing-types',

packages/react-native/Libraries/Animated/animations/Animation.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import type AnimatedNode from '../nodes/AnimatedNode';
1313
import type AnimatedValue from '../nodes/AnimatedValue';
1414

1515
import NativeAnimatedHelper from '../../../src/private/animated/NativeAnimatedHelper';
16-
import * as ReactNativeFeatureFlags from '../../../src/private/featureflags/ReactNativeFeatureFlags';
1716
import AnimatedProps from '../nodes/AnimatedProps';
1817

1918
export type EndResult = {finished: boolean, value?: number, ...};

packages/react-native/Libraries/Animated/nodes/AnimatedValue.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ const NativeAnimatedAPI = NativeAnimatedHelper.API;
5252
* transform which can receive values from multiple parents.
5353
*/
5454
export function flushValue(rootNode: AnimatedNode): void {
55-
// eslint-disable-next-line func-call-spacing
5655
const leaves = new Set<{update: () => void, ...}>();
5756
function findAnimatedStyles(node: AnimatedNode) {
5857
// $FlowFixMe[prop-missing]

packages/react-native/Libraries/BatchedBridge/__mocks__/MessageQueueTestConfig.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,5 @@ const MessageQueueTestConfig = {
3535
remoteModuleConfig: remoteModulesConfig,
3636
};
3737

38+
// eslint-disable-next-line lint/no-commonjs-exports
3839
module.exports = MessageQueueTestConfig;

packages/react-native/Libraries/BatchedBridge/__mocks__/MessageQueueTestModule.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@ const MessageQueueTestModule = {
1919
testHook2: function () {},
2020
};
2121

22+
// eslint-disable-next-line lint/no-commonjs-exports
2223
module.exports = MessageQueueTestModule;

0 commit comments

Comments
 (0)