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

TS Strict config not working #755

Closed
Sufiane opened this issue Jun 27, 2024 · 2 comments
Closed

TS Strict config not working #755

Sufiane opened this issue Jun 27, 2024 · 2 comments

Comments

@Sufiane
Copy link

Sufiane commented Jun 27, 2024

I'm playing around with XO, and can't get away from the following error:

This rule requires the strictNullChecks compiler option to be turned on to function correctly. @typescript-eslint/prefer-nullish-coalescing

It should work out of the box since xo should handles as stated here

I even turned everything on in my own tsconfig.json, but w/o success.

Since I've seen in other issues that restarting your IDE (Webstorm in my case) may work I've done it. No success either.

Did I missed something ?

@fregante
Copy link
Member

Did you enable strictNullChecks? I have no problem using XO with packages based on this tsconfig: https://github.com/sindresorhus/tsconfig

@fregante
Copy link
Member

Either way, the error comes from typescript-eslint and it's related to your config rather than XO.

@fregante fregante closed this as not planned Won't fix, can't repro, duplicate, stale Jul 13, 2024
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

2 participants