Skip to content

Eslint preact fails with an error related to jest #949

@julienw

Description

@julienw

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions