error upgrading from 22.7.0 to 23.1.1
See original GitHub issueI’m seeing this error loading the jest plugin in my config. Any ideas?
Error: Failed to load plugin 'jest' declared in 'aaa-static/.eslintrc.js': Cannot find module 'eslint-plugin-jest'
Require stack:
- ~/projects/aaa/__placeholder__.js
Error: Failed to load plugin 'jest' declared in 'aaa-static/.eslintrc.js': Cannot find module 'eslint-plugin-jest'
Require stack:
- ~/projects/aaa/__placeholder__.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
at Function.resolve (internal/modules/cjs/helpers.js:30:19)
at Object.resolve (~/projects/aaa/aaa-static/node_modules/eslint/lib/shared/relative-module-resolver.js:44:50)
at ConfigArrayFactory._loadPlugin (~/projects/aaa/aaa-static/node_modules/eslint/lib/cli-engine/config-array-factory.js:957:39)
at names.reduce (~/projects/aaa/aaa-static/node_modules/eslint/lib/cli-engine/config-array-factory.js:846:33)
at Array.reduce (<anonymous>)
at ConfigArrayFactory._loadPlugins (~/projects/aaa/aaa-static/node_modules/eslint/lib/cli-engine/config-array-factory.js:842:22)
at ConfigArrayFactory._normalizeObjectConfigDataBody (~/projects/aaa/aaa-static/node_modules/eslint/lib/cli-engine/config-array-factory.js:665:32)
at _normalizeObjectConfigDataBody.next (<anonymous>)
at ConfigArrayFactory._normalizeObjectConfigData (~/projects/aaa/aaa-static/node_modules/eslint/lib/cli-engine/config-array-factory.js:594:20)
Process finished with exit code -1
Here is my config file
module.exports = {
extends: [ 'react-app' ],
root: true,
settings: {
react: {
version: '16.10'
}
},
plugins: [ 'jest' ],
rules: {
semi: [ 'warn', 'always' ],
'no-fallthrough': 'warn',
'no-undef': 'warn', // !
'no-unused-vars': ['warn', {'args': 'after-used'}],
'prefer-const': 'warn',
'jest/expect-expect': 'error',
'jest/no-commented-out-tests': 'error',
'jest/valid-expect': 'error',
}
};
Issue Analytics
- State:
- Created 4 years ago
- Comments:15 (1 by maintainers)
Top Results From Across the Web
eslint-plugin-jest - UNPKG
8, * update to typescript-eslint@4 ... 24, * set `no-jasmine-globals` to `error` in recommended ruleset ...
Read more >eslint-plugin-jest - NPM Package Overview - Socket - Socket.dev
This plugin exports a recommended configuration that enforces good testing practices. To enable this configuration use the extends property in your .eslintrc ...
Read more >Index (Android Tools sdk-common library) - Javadoc.io
Adds a new source file. addError(String) - Method in class com.android.ide.common.resources.ScanningContext: Adds the given error to the scanning context.
Read more >Stripe - Swift Package Index
Updating to a newer version of the SDK? ... We welcome contributions of any kind including new features, bug fixes, and documentation improvements....
Read more >2.69598f97.chunk.js
n // Popper 1 is broken in this case and never had a bug report so let's assume\n ... This means\n // it...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes!
Nice! So we can close this?