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

Eslint preact fails with an error related to jest #949

Open
julienw opened this issue Jan 14, 2023 · 1 comment
Open

Eslint preact fails with an error related to jest #949

julienw opened this issue Jan 14, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@julienw
Copy link

julienw commented Jan 14, 2023

When running eslint after initializing a project with wmr, I get this error when running eslint:

Error: Error while loading rule 'jest/no-deprecated-functions': Unable to detect Jest version - please ensure jest package is installed, or otherwise set version explicitly

This makes sense because jest isn't installed. But this means that eslint support is broken after initialization. I'm not sure what the best path forward is here.

see also preactjs/eslint-config-preact#19 (comment)

@julienw julienw added the bug Something isn't working label Jan 14, 2023
@julienw
Copy link
Author

julienw commented Jan 14, 2023

Actually I just disabled this rule by adding this to the config in package.json:

    "rules": { "jest/no-deprecated-functions": 0 }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant