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
npm run lint
: couldn't find the plugin "eslint-plugin-jest".
#67
Comments
See: preactjs/eslint-config-preact#19 It's a long standing issue in ESLint itself, nothing we can do. |
Gotcha! 🙇 But this means the default I tried installing the package manually - as the error message recommends - but even this fails (see below). Is there a way forward or a workaround in the meantime? The linked eslint issue is from 2015 and I'm not sure if / when it will get resolved.
|
That's not true across the board; I have no idea what the resolution issue is (besides that there is one), but I can run the That error message looks to be just dealing with the wonky peer dep system that npm v7 brought with it. Have you tried installing with legacy peer deps, and trying again?
Remove the Preact eslint config I suppose.
"eslintConfig": {
"parser": "@typescript-eslint/parser",
"extends": [
- "preact",
"plugin:@typescript-eslint/recommended"
],
"ignorePatterns": [
"build/"
]
}, npm uninstall eslint-config-preact |
Gotcha! 🙇 I'm running Node LTS 16 in a
self-contained and reproducible docker image; in there it is an issue. It sounds like it depends on the npm/yarn version then? Here are the npm and node versions the node 16 image is coming with
If I install with legacy peer deps, then I get the following error when running the lint script.
Not sure why it's complaining about a react hooks package now; this is punching way above my head and I can't really debug it 😅 |
Upgrading to So perhaps upping |
I don't believe it's related to ESLint version, unfortunately. I've had the problem correct itself after a wipe of Not against bumping ESLint, as I think the preact config is now compatible, but I don't think it will solve any issues sadly. |
I have the same issue on a brand new project created with preact typescript template. Running |
Hey folks, it looks like we provide a
npm run lint
script, but running it in a freshly created template project does not work by default.Here are the steps to reproduce is:
npm run lint
See the outputs below.
The text was updated successfully, but these errors were encountered: