Skip to content

Eslint preact fails with an error related to jest #949

Open

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)

Activity

  1. julienw commented on Jan 14, 2023

    @julienw
    Author

    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

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