Skip to content

Commit eacdffb

Browse files
author
nikhil6393
committed
docs: fix 'the the' typos in code comments
1 parent b1b5fff commit eacdffb

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

packages/@lwc/babel-plugin-component/src/__tests__/index.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ describe('fixtures', () => {
9999
}
100100

101101
// Conditionally including lwcErrors.json otherwise, toMatchFileSnapshot
102-
// will create an empty snapshot file regardless of the the option being present for all tests
102+
// will create an empty snapshot file regardless of the option being present for all tests
103103
return {
104104
'expected.js': code,
105105
'error.json': error,

packages/@lwc/babel-plugin-component/src/decorators/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ function validateImportedLwcDecoratorUsage(
100100
)
101101
.forEach(({ name, reference }) => {
102102
// Get the decorator from the identifier
103-
// If the the decorator is:
103+
// If the decorator is:
104104
// - an identifier @track : the decorator is the parent of the identifier
105105
// - a call expression @wire("foo") : the decorator is the grand-parent of the identifier
106106
const decorator = reference.parentPath!.isDecorator()

packages/@lwc/engine-core/src/framework/wiring/context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export function createContextWatcher(
100100
},
101101
setDisconnectedCallback(disconnectCallback: () => void) {
102102
// adds this callback into the disconnect bucket so it gets disconnected from parent
103-
// the the element hosting the wire is disconnected
103+
// the element hosting the wire is disconnected
104104
ArrayPush.call(wiredDisconnecting, disconnectCallback);
105105
},
106106
});

packages/@lwc/engine-dom/src/apis/is-node-from-template.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const _Node = Node;
2222
* EXPERIMENTAL: The purpose of this function is to detect shadowed nodes. THIS API WILL BE REMOVED
2323
* ONCE LOCKER V1 IS NO LONGER SUPPORTED.
2424
* @param node Node to check
25-
* @returns `true` if the the node is shadowed
25+
* @returns `true` if the node is shadowed
2626
* @example isNodeShadowed(document.querySelector('my-component'))
2727
*/
2828
function isNodeShadowed(node: Node): boolean {

packages/@lwc/style-compiler/src/selector-scoping/transform.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import type { StyleCompilerCtx } from '../utils/error-recovery';
1717
type ChildNode = Exclude<Node, Selector>;
1818

1919
export interface SelectorScopingConfig {
20-
/** When set to true, the :host selector gets replace with the the scoping token. */
20+
/** When set to true, the :host selector gets replaced with the scoping token. */
2121
transformHost: boolean;
2222
/** When set to true, the synthetic shadow support is disabled. */
2323
disableSyntheticShadowSupport: boolean;

scripts/test-utils/test-fixture-dir.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function getTestOptions(dirname: string) {
4545
return isOnly ? { only: true } : isSkip ? { skip: true } : {};
4646
}
4747

48-
/** Loads the the contents of the `config.json` in the provided directory, if present. */
48+
/** Loads the contents of the `config.json` in the provided directory, if present. */
4949
function getFixtureConfig<T>(dirname: string): T | undefined {
5050
const filepath = path.join(dirname, 'config.json');
5151
let contents: string;

0 commit comments

Comments
 (0)