Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yarn dtslint tests/types-dtslint fails with a Syntax error #57

Open
johnhunter opened this issue Jul 20, 2023 · 1 comment
Open

yarn dtslint tests/types-dtslint fails with a Syntax error #57

johnhunter opened this issue Jul 20, 2023 · 1 comment

Comments

@johnhunter
Copy link

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 [email protected] and latest [email protected]. The repo has been archived and the project rolled into definitely typed. Not sure where that leaves us.

@johnhunter
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant