type-coverage-core
Advanced tools
Comparing version 2.22.0 to 2.23.0
@@ -30,3 +30,3 @@ "use strict"; | ||
let file = sourceFile.fileName; | ||
if (!file.includes('node_modules') && (!lintOptions.files || lintOptions.files.includes(file))) { | ||
if (!file.includes('node_modules')) { | ||
if (!lintOptions.absolutePath) { | ||
@@ -38,2 +38,5 @@ file = path.relative(process.cwd(), file); | ||
} | ||
if (lintOptions.files && !lintOptions.files.includes(file)) { | ||
continue; | ||
} | ||
if (ignoreFileGlobs && ignoreFileGlobs.some((f) => minimatch(file, f))) { | ||
@@ -115,3 +118,2 @@ continue; | ||
ignoreEmptyType: lintOptions.ignoreEmptyType, | ||
reportSemanticError: lintOptions.reportSemanticError, | ||
}; | ||
@@ -254,3 +256,2 @@ sourceFile.forEachChild(node => { | ||
ignoreEmptyType: lintOptions.ignoreEmptyType, | ||
reportSemanticError: lintOptions.reportSemanticError, | ||
}; | ||
@@ -257,0 +258,0 @@ sourceFile.forEachChild(node => { |
@@ -41,2 +41,3 @@ import * as ts from 'typescript'; | ||
absolutePath?: boolean; | ||
reportSemanticError: boolean; | ||
} | ||
@@ -73,3 +74,2 @@ interface CommonOptions { | ||
ignoreEmptyType: boolean; | ||
reportSemanticError: boolean; | ||
} | ||
@@ -76,0 +76,0 @@ export interface FileContext extends CommonOptions { |
{ | ||
"name": "type-coverage-core", | ||
"version": "2.22.0", | ||
"version": "2.23.0", | ||
"description": "A library to check type coverage for typescript code", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1630
58067