Skip to content

Commit 677e0f3

Browse files
Fix misspell lint issues (#462)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
1 parent 0f350a8 commit 677e0f3

File tree

6 files changed

+7
-6
lines changed

6 files changed

+7
-6
lines changed

.golangci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ linters:
3030
- intrange
3131
- makezero
3232
- mirror
33+
- misspell
3334
- musttag
3435
- nolintlint
3536
- paralleltest

internal/checker/checker.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17996,7 +17996,7 @@ func (c *Checker) getSignaturesOfSymbol(symbol *ast.Symbol) []*Signature {
1799617996
}
1799717997
}
1799817998
// If this is a function or method declaration, get the signature from the @type tag for the sake of optional parameters.
17999-
// Exclude contextually-typed kinds because we already apply the @type tag to the context, plus applying it here to the initializer would supress checks that the two are compatible.
17999+
// Exclude contextually-typed kinds because we already apply the @type tag to the context, plus applying it here to the initializer would suppress checks that the two are compatible.
1800018000
result = append(result, c.getSignatureFromDeclaration(decl))
1800118001
}
1800218002
return result
@@ -20241,7 +20241,7 @@ func (c *Checker) instantiateTypeWithAlias(t *Type, m *TypeMapper, alias *TypeAl
2024120241
}
2024220242
if c.instantiationDepth == 100 || c.instantiationCount >= 5_000_000 {
2024320243
// We have reached 100 recursive type instantiations, or 5M type instantiations caused by the same statement
20244-
// or expression. There is a very high likelyhood we're dealing with a combination of infinite generic types
20244+
// or expression. There is a very high likelihood we're dealing with a combination of infinite generic types
2024520245
// that perpetually generate new type identities, so we stop the recursion here by yielding the error type.
2024620246
c.error(c.currentNode, diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite)
2024720247
return c.errorType

internal/checker/emitresolver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ func (r *emitResolver) isAliasResolvedToValue(symbol *ast.Symbol, excludeTypeOnl
9797
if container := ast.GetSourceFileOfNode(symbol.ValueDeclaration); container != nil {
9898
fileSymbol := c.getSymbolOfDeclaration(container.AsNode())
9999
// Ensures cjs export assignment is setup, since this symbol may point at, and merge with, the file itself.
100-
// If we don't, the merge may not have yet occured, and the flags check below will be missing flags that
100+
// If we don't, the merge may not have yet occurred, and the flags check below will be missing flags that
101101
// are added as a result of the merge.
102102
c.resolveExternalModuleSymbol(fileSymbol, false /*dontResolveAlias*/)
103103
}

internal/checker/relater.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3758,7 +3758,7 @@ func (r *Relater) structuredTypeRelatedToWorker(source *Type, target *Type, repo
37583758
// type references (which are intended by be compared structurally). Obtain the variance
37593759
// information for the type parameters and relate the type arguments accordingly.
37603760
variances := r.c.getVariances(source.Target())
3761-
// We return Ternary.Maybe for a recursive invocation of getVariances (signalled by emptyArray). This
3761+
// We return Ternary.Maybe for a recursive invocation of getVariances (signaled by emptyArray). This
37623762
// effectively means we measure variance only from type parameter occurrences that aren't nested in
37633763
// recursive instantiations of the generic type.
37643764
if len(variances) == 0 {

internal/testutil/jstest/node.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ var getNodeExeOnce = sync.OnceValue(func() string {
2525
return exe
2626
})
2727

28-
// EvalNodeScript imports a Node.js script that deafult-exports a single function,
28+
// EvalNodeScript imports a Node.js script that default-exports a single function,
2929
// calls it with the provided arguments, and unmarshals the JSON-stringified
3030
// awaited return value into T.
3131
func EvalNodeScript[T any](t testing.TB, script string, dir string, args ...string) (result T, err error) {

internal/transformers/esmodule.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ func (tx *ESModuleTransformer) visitExportDeclaration(node *ast.ExportDeclaratio
196196

197197
updatedModuleSpecifier := rewriteModuleSpecifier(tx.emitContext, node.ModuleSpecifier, tx.compilerOptions)
198198
if tx.compilerOptions.ModuleKind > core.ModuleKindES2015 || node.ExportClause == nil || !ast.IsNamespaceExport(node.ExportClause) {
199-
// Either ill-formed or don't need to be tranformed.
199+
// Either ill-formed or don't need to be transformed.
200200
return tx.factory.UpdateExportDeclaration(
201201
node,
202202
nil, /*modifiers*/

0 commit comments

Comments
 (0)