preactjs / wmr

👩‍🚀 The tiny all-in-one development tool for modern web apps.
https://wmr.dev/
MIT License
4.92k stars 109 forks source link

Eslint preact fails with an error related to jest #949

Open julienw opened 1 year ago

julienw commented 1 year ago

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 https://github.com/preactjs/eslint-config-preact/issues/19#issuecomment-995906312

julienw commented 1 year ago

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

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