eslint-plugin-jest: error upgrading from 22.7.0 to 23.1.1
I’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',
}
};
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 15 (1 by maintainers)
Yes!