Skip to content

Commit e361741

Browse files
authored
fix(dts-generator): adapt eslintrc rules to what is in dt repo (#495)
Also, increase memory limit for cases with MANY errors
1 parent b5bcf80 commit e361741

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/dts-generator/src/checkDtslint/check-dtslint.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ export default function checkDtslint(
225225
spawnSync(
226226
`"${nodePath}"`,
227227
[
228+
`--max-old-space-size=8192`, // increase memory limit to 8 GB, as dtslint crashes with the default 4 GB in case of many errors
228229
`"${binaryPath}"`,
229230
`"${path.relative(process.cwd(), tempDir)}"`,
230231
"2>",

packages/dts-generator/src/checkDtslint/dtslintConfig/.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"@definitelytyped/strict-export-declare-modifiers": "off",
88
"@definitelytyped/no-single-declare-module": "off",
99
"@definitelytyped/npm-naming": "off",
10-
"@typescript-eslint/ban-types": "off",
10+
"@typescript-eslint/no-unsafe-function-type": "off",
11+
"@typescript-eslint/no-wrapper-object-types": "off",
1112
"@typescript-eslint/no-empty-interface": "off",
1213
"@typescript-eslint/naming-convention": "off",
1314
"@typescript-eslint/consistent-type-definitions": "off",

0 commit comments

Comments
 (0)