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-config-preact': Cannot find module 'eslint-plugin-jest' #19
Comments
Sorry for the late response, hopefully you found a fix but you'd probably just need to do a clean install. eslint-config-preact/package.json Line 54 in c1edeca
|
Looks like this is a longstanding bug in eslint itself eslint/eslint#3458 |
Assuming this is related? Getting this error after bumping to 1.3.0, looks like this possibly broke with jest-community/eslint-plugin-jest#970 but I haven't investigated too deeply. Adding jest itself as a devDependency silences it for now if anybody needs a quick fix, even though I don't use it. :)
Full logs: |
Same for me, after bumping to 1.3.0. Other workaround is to add jest version to {
"root": true,
"extends": [
"preact"
],
"settings": {
"jest": { "version": 27 }
}
} |
Same as @piotr-cz . Thank you for the workaround. |
Other workaround is to disable this rule by adding:
|
I have some similar issues, but using Everything seems fine with
I feel like this is somehow related. |
eslint-config-preactがjestの設定に依存していて、その中のひとつがjestのバージョンを読もうとする。 今回は入れないのでdisableにする。 preactjs/eslint-config-preact#19 jest-community/eslint-plugin-jest#686
ESLint documentation says the following: > If your shareable config depends on a plugin, you should also specify > it as a peerDependency (plugins will be loaded relative to the end > user's project, so the end user is required to install the plugins > they need). Fixes preactjs#19.
ESLint documentation says the following: > If your shareable config depends on a plugin, you should also specify > it as a peerDependency (plugins will be loaded relative to the end > user's project, so the end user is required to install the plugins > they need). Fixes preactjs#19.
ESLint documentation says the following: > If your shareable config depends on a plugin, you should also specify > it as a peerDependency (plugins will be loaded relative to the end > user's project, so the end user is required to install the plugins > they need). Fixes preactjs#19.
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 preactjs/eslint-config-preact#19
I created a new preact project using the cli
npx preact-cli create typescript my-project
I tried to enable ESLint in my IDE (Webstorm) and receive the following error upon lint
Error Log:
.eslintrc.json
devDependencies
The text was updated successfully, but these errors were encountered: