Reputation: 701
When adding the jest
plugin to .eslintrc.js
, I get the following stack error:
TypeError: Cannot read property 'meta' of undefined
react-native
CLI./node_modules/.bin/eslint --init
jest
to the plugin array in .eslintrc.js
module.exports = {
env: {
browser: true,
es6: true
},
extends: ["standard", "plugin:jest/recommended"],
globals: {
Atomics: "readonly",
SharedArrayBuffer: "readonly"
},
parserOptions: {
ecmaFeatures: {
jsx: true
},
ecmaVersion: 2018,
sourceType: "module"
},
plugins: ["react", "jest"],
rules: {}
};
I expect that eslint picks up the eslint-plugin-jest plugin, but instead I get
[Error - 18:38:16] ESLint stack trace:
[Error - 18:38:16] TypeError: Cannot read property 'meta' of undefined
at c.isFunction.H.handled.has.p.getRules.forEach (/home/bob/.vscode/extensions/dbaeumer.vscode-eslint-1.9.0/server/out/eslintServer.js:1:55431)
at Map.forEach (<anonymous>)
at /home/bob/.vscode/extensions/dbaeumer.vscode-eslint-1.9.0/server/out/eslintServer.js:1:55413
at W.E.get.N.then.n (/home/bob/.vscode/extensions/dbaeumer.vscode-eslint-1.9.0/server/out/eslintServer.js:1:55555)
Upvotes: 1
Views: 1037
Reputation: 701
This was a temporary issue in 22.6 up to 22.6.2. It has now been fixed in 22.6.3 released today. Just need to update the package.
Upvotes: 1