Skip to content

Commit 5769d9f

Browse files
maxtaran2010maxtaran2010claude
authored
docs: fix typos in comments and JSDoc (#4880)
- superceded -> superseded in cli.ts comment - namepace -> namespace in plugin-naming.ts JSDoc - cotains -> contains in format.test.ts test name Co-authored-by: maxtaran2010 <ocotifuzo727@gmail.com> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 6e20041 commit 5769d9f

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

@commitlint/cli/src/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ function getEditValue(flags: CliFlags) {
465465
// This does not work properly with win32 systems, where env variable declarations
466466
// use a different syntax
467467
// See https://github.com/conventional-changelog/commitlint/issues/103 for details
468-
// This has been superceded by the `-E GIT_PARAMS` / `-E HUSKY_GIT_PARAMS`
468+
// This has been superseded by the `-E GIT_PARAMS` / `-E HUSKY_GIT_PARAMS`
469469
const isGitParams = edit === "$GIT_PARAMS" || edit === "%GIT_PARAMS%";
470470
const isHuskyParams = edit === "$HUSKY_GIT_PARAMS" || edit === "%HUSKY_GIT_PARAMS%";
471471

@commitlint/format/src/format.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ test("format result prints help for warnings", () => {
327327
expect(actual).toEqual(expect.arrayContaining([expect.stringContaining("Get help:")]));
328328
});
329329

330-
test("format result help cotains options.helpUrl", () => {
330+
test("format result help contains options.helpUrl", () => {
331331
const helpUrl = "https://example.com";
332332

333333
const actual = formatResult(

@commitlint/load/src/utils/plugin-naming.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export function getShorthandName(fullname: string) {
8282
/**
8383
* Gets the scope (namespace) of a term.
8484
* @param {string} term The term which may have the namespace.
85-
* @returns {string} The namepace of the term if it has one.
85+
* @returns {string} The namespace of the term if it has one.
8686
*/
8787
export function getNamespaceFromTerm(term: string) {
8888
const match = NAMESPACE_REGEX.exec(term);

0 commit comments

Comments
 (0)