Skip to content

Commit

Permalink
chore: reportSemanticError is not used by FileContext
Browse files Browse the repository at this point in the history
  • Loading branch information
plantain-00 committed Jul 10, 2022
1 parent 9da468c commit ed918f4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions packages/core/src/core.ts
Expand Up @@ -126,7 +126,6 @@ export async function lint(project: string, options?: Partial<LintOptions>) {
ignoreNonNullAssertion: lintOptions.ignoreNonNullAssertion,
ignoreObject: lintOptions.ignoreObject,
ignoreEmptyType: lintOptions.ignoreEmptyType,
reportSemanticError: lintOptions.reportSemanticError,
}

sourceFile.forEachChild(node => {
Expand Down Expand Up @@ -274,7 +273,6 @@ export function lintSync(compilerOptions: ts.CompilerOptions, rootNames: string[
ignoreNonNullAssertion: lintOptions.ignoreNonNullAssertion,
ignoreObject: lintOptions.ignoreObject,
ignoreEmptyType: lintOptions.ignoreEmptyType,
reportSemanticError: lintOptions.reportSemanticError,
}

sourceFile.forEachChild(node => {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/interfaces.ts
Expand Up @@ -44,6 +44,7 @@ export interface LintOptions extends CommonOptions {
ignoreFiles?: string | string[],
fileCounts: boolean,
absolutePath?: boolean,
reportSemanticError: boolean
}

interface CommonOptions {
Expand Down Expand Up @@ -76,7 +77,6 @@ interface CommonOptions {
* {}
*/
ignoreEmptyType: boolean
reportSemanticError: boolean
}

export interface FileContext extends CommonOptions {
Expand Down

0 comments on commit ed918f4

Please sign in to comment.