From 20a257c259c265d25ece77ee3c18f353b4b9a925 Mon Sep 17 00:00:00 2001 From: Vic Graf <69855483+Vicachu42@users.noreply.github.com> Date: Thu, 29 Sep 2022 15:57:49 +0200 Subject: [PATCH] Refactor: more word doubles removed (#25352) --- .../react-dom/src/__tests__/ReactDOMEventPropagation-test.js | 4 ++-- packages/shared/CheckStringCoercion.js | 2 +- packages/shared/ReactFeatureFlags.js | 2 +- scripts/rollup/validate/index.js | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/react-dom/src/__tests__/ReactDOMEventPropagation-test.js b/packages/react-dom/src/__tests__/ReactDOMEventPropagation-test.js index 7c28b7bb905b0..786a209d4faa9 100644 --- a/packages/react-dom/src/__tests__/ReactDOMEventPropagation-test.js +++ b/packages/react-dom/src/__tests__/ReactDOMEventPropagation-test.js @@ -1932,7 +1932,7 @@ describe('ReactDOMEventListener', () => { // Since the element is created by the inner React, the bubbling // stops at the inner parent and never reaches the outer React. // In the future, we might consider not bubbling these events - // at all, in in which case inner parent also wouldn't be logged. + // at all, in which case inner parent also wouldn't be logged. expect(log).toEqual(unindent` - outer parent capture -- outer capture @@ -2096,7 +2096,7 @@ describe('ReactDOMEventListener', () => { // Since the element is created by the inner React, the bubbling // stops at the inner parent and never reaches the outer React. // In the future, we might consider not bubbling these events - // at all, in in which case inner parent also wouldn't be logged. + // at all, in which case inner parent also wouldn't be logged. expect(log).toEqual(unindent` - outer parent capture -- outer capture diff --git a/packages/shared/CheckStringCoercion.js b/packages/shared/CheckStringCoercion.js index a6c72c4bbe77a..32e1e8ae2c42b 100644 --- a/packages/shared/CheckStringCoercion.js +++ b/packages/shared/CheckStringCoercion.js @@ -8,7 +8,7 @@ */ /* - * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol + * The `'' + value` pattern (used in perf-sensitive code) throws for Symbol * and Temporal.* types. See https://github.com/facebook/react/pull/22064. * * The functions in this module will throw an easier-to-understand, diff --git a/packages/shared/ReactFeatureFlags.js b/packages/shared/ReactFeatureFlags.js index 447d25542536e..e4863bbfc299d 100644 --- a/packages/shared/ReactFeatureFlags.js +++ b/packages/shared/ReactFeatureFlags.js @@ -126,7 +126,7 @@ export const enableUseEventHook = __EXPERIMENTAL__; // Chopping Block // // Planned feature deprecations and breaking changes. Sorted roughly in order of -// when we we plan to enable them. +// when we plan to enable them. // ----------------------------------------------------------------------------- // This flag enables Strict Effects by default. We're not turning this on until diff --git a/scripts/rollup/validate/index.js b/scripts/rollup/validate/index.js index 34faf6ed73403..a09add406f3bd 100644 --- a/scripts/rollup/validate/index.js +++ b/scripts/rollup/validate/index.js @@ -23,7 +23,7 @@ function getFormat(filepath) { if (filepath.includes('shims')) { // We don't currently lint these shims. We rely on the downstream Facebook // repo to transform them. - // TODO: Should we we lint them? + // TODO: Should we lint them? return null; } return 'rn';