Skip to content

Commit 61b5f93

Browse files
committed
suppress lint any warning
1 parent 8559b97 commit 61b5f93

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

ts-parser/src/parser/ModuleParser.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export class ModuleParser {
2424

2525
async parseModule(modulePath: string, relativeDir: string, options: { loadExternalSymbols?: boolean, noDist?: boolean, srcPatterns?: string[] } = {}): Promise<Module> {
2626
const packageJsonPath = path.join(modulePath, 'package.json');
27+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
2728
let packageJson: any = {};
2829

2930
if (fs.existsSync(packageJsonPath)) {
@@ -75,6 +76,7 @@ export class ModuleParser {
7576
const pathUitl = new PathUtils(this.projectRoot)
7677

7778
// Build files map with detailed import analysis
79+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
7880
const files: Record<string, any> = {};
7981
for (const [filePath, fileInfo] of structure.files) {
8082
const sourceFile = this.project.addSourceFileAtPath(filePath);

ts-parser/src/parser/PackageParser.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@ export class PackageParser {
2222
isMain: boolean,
2323
isTest: boolean
2424
): Promise<Package> {
25+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
2526
const functions: Record<string, any> = {};
27+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
2628
const types: Record<string, any> = {};
29+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
2730
const vars: Record<string, any> = {};
2831

2932
for (const sourceFile of sourceFiles) {

0 commit comments

Comments
 (0)