yarn dtslint tests/types-dtslint fails with a Syntax error
Opened this issue · 1 comments
johnhunter commented
Running yarn dtslint tests/types-dtslint
results in a syntax error for me.
/Users/[...]/.dts/typescript-installs/4.3/node_modules/typescript/lib/typescript.js:139
for (let i = startIndex ?? 0; i < array.length; i++) {
Which suggests dtslint does not support nullish coalescing?
Have tried with dtslint@4.0.7
and latest dtslint@4.2.1
. The repo has been archived and the project rolled into definitely typed. Not sure where that leaves us.
johnhunter commented
Tried using the latest @definitelytyped/dtslint
. Engine incompatibilities meant upgrading node to 14 volta pin node@14
. However now get a thrown error
The 'strict-export-declare-modifiers' rule threw an error in '[...]/professional-ts/tests/types-dtslint/test.ts':
TypeError: ts.getModifiers is not a function
It outputs the test fails as expected but also expects a types-dtslint/tsconfig.eslint.json
file and gives a parsing error as the file is not found.
I think the repo dependencies need to be updated and breaking changes resolved.