You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getting the follwowing error after installing eslint v8.20.0. not sure what causing break as it was working fine with eslint v8.17.0 before.
Oops! Something went wrong! :(
ESLint: 8.20.0
TypeError: Failed to load plugin 'jsx-a11y' declared in'.eslintrc » @umai/eslint-config': Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.
Referenced from: /home/murtaza/umai/webrms/node_modules/@umai/eslint-config/index.js
at _nonIterableSpread (/home/murtaza/umai/webrms/node_modules/@babel/runtime/helpers/nonIterableSpread.js:2:9)
at _toConsumableArray (/home/murtaza/umai/webrms/node_modules/@babel/runtime/helpers/toConsumableArray.js:10:95)
at Object.<anonymous> (/home/murtaza/umai/webrms/node_modules/eslint-plugin-jsx-a11y/lib/util/isInteractiveElement.js:24:61)
at Module._compile (/home/murtaza/umai/webrms/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:12)
at Module.require (internal/modules/cjs/loader.js:974:19)
at require (/home/murtaza/umai/webrms/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
at Object.<anonymous> (/home/murtaza/umai/webrms/node_modules/eslint-plugin-jsx-a11y/lib/rules/aria-activedescendant-has-tabindex.js:22:52)
husky - pre-commit hook exited with code 1 (error)
module.exports={// https://github.com/prettier/eslint-plugin-prettierextends: ['react-app','react-app/jest','airbnb','plugin:prettier/recommended','plugin:jsx-a11y/recommended',],plugins: ['jsx-a11y'],// NOTE: need to disable the babelOptions for "babel-preset-react-app", as it was breaking due to a bug in CRA5// For more info: https://github.com/facebook/create-react-app/issues/12070// Remove the below parserOptions when its fixedparserOptions: {babelOptions: {presets: [['babel-preset-react-app',false],'babel-preset-react-app/prod'],},},rules: {// NOTE: to be same as the "@umai/prettier-config" to make sure we follow the prettier rules using eslint'prettier/prettier': ['error',{},{usePrettierrc: true,},],'import/no-unresolved': 'off','import/no-named-as-default': 'off','no-console': ['warn',{allow: ['warn','error']}],'no-param-reassign': 'off','function-paren-newline': 'off','arrow-parens': [0,'as-needed'],'arrow-body-style': ['error','as-needed'],'comma-dangle': ['error','only-multiline'],'import/no-extraneous-dependencies': 0,'import/prefer-default-export': 0,'template-curly-spacing': 'off','max-len': 0,'react/forbid-prop-types': 0,'react/jsx-curly-brace-presence': 'off','react/jsx-first-prop-new-line': [2,'multiline'],'react/jsx-filename-extension': [1,{extensions: ['.js','.jsx']}],'react/require-default-props': 0,'react/self-closing-comp': 0,'class-methods-use-this': 0,'react/jsx-one-expression-per-line': 0,'react/function-component-definition': 0,'no-plusplus': 'off',},ignorePatterns: ['config/','scripts/','public/'],};
The text was updated successfully, but these errors were encountered:
In the diff it looks like aria-query was missing from eslint-plugin-jsx-a11y’s dependencies and that is where the dom in dom.keys() is coming from which was causing the error.
However, i still dont know why it did not generate aria-query package before on simple doing npm i.
Getting the follwowing error after installing eslint v8.20.0. not sure what causing break as it was working fine with eslint v8.17.0 before.
here is the my eslint npm package trace
Following is the custom eslint plugin i am using in my code:
lastly this is my eslintrc.js file
The text was updated successfully, but these errors were encountered: