0

I get the following warnings on every eslint run with config following config. What is it caused by and how do I get rid of it?

eslint warnings

can't resolve reference #/definitions/basicConfig from id #
can't resolve reference #/definitions/basicConfigOrBoolean from id #
can't resolve reference #/definitions/basicConfigOrBoolean from id #

.eslintrc.js

module.exports = {
  extends: 'airbnb',
  root: true,
  env: {
    browser: true,
    jest: true,
  },
  plugins: ['react', 'jsx-a11y', 'import', 'jest'],
  rules: {
    'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
    'react/jsx-filename-extension': [0],
    'import/prefer-default-export': [0],
  },
  settings: {
    'import/resolver': {
      webpack: {
        config: 'webpack.config.js',
      },
    },
  },
  parser: 'babel-eslint',
};
Wiktor Czajkowski
  • 1,623
  • 1
  • 14
  • 20

1 Answers1

0

This error was caused by eslint-plugin-react package (which I found out following this airbnb config issue).

This PR solves the issue and contains more info. The gist is that it was fixed in version 7.2.0 of the eslint-plugin-react package, so all I needed to do was yarn upgrade eslint-plugin-react.

Wiktor Czajkowski
  • 1,623
  • 1
  • 14
  • 20