Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[eslint-config-airbnb] can't resolve reference #1488

Closed
blablapolicja opened this issue Jul 12, 2017 · 6 comments
Closed

[eslint-config-airbnb] can't resolve reference #1488

blablapolicja opened this issue Jul 12, 2017 · 6 comments

Comments

@blablapolicja
Copy link

I see error when running eslint:

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

Full log after running eslint --debug:

eslint:cli Running on files +0ms
  eslint:glob-util Creating list of files to process. +9ms
  eslint:ignored-paths Looking for ignore file in /Users/stanislavdzhus/Documents/global-locale +3ms
  eslint:ignored-paths Loaded ignore file /Users/stanislavdzhus/Documents/global-locale/.eslintignore +0ms
  eslint:ignored-paths Adding /Users/stanislavdzhus/Documents/global-locale/.eslintignore +0ms
  eslint:cli-engine Processing /Users/stanislavdzhus/Documents/global-locale/src/actions/__tests__/actions.test.js +11ms
  eslint:cli-engine Linting /Users/stanislavdzhus/Documents/global-locale/src/actions/__tests__/actions.test.js +1ms
  eslint:config Constructing config file hierarchy for /Users/stanislavdzhus/Documents/global-locale/src/actions/__tests__ +0ms
  eslint:config Using .eslintrc and package.json files +0ms
  eslint:config Loading /Users/stanislavdzhus/Documents/global-locale/.eslintrc +2ms
  eslint:config-file Loading config file: /Users/stanislavdzhus/Documents/global-locale/.eslintrc +0ms
  eslint:config-file Loading airbnb +120ms
  eslint:config-file Attempting to resolve eslint-config-airbnb +0ms
  eslint:config-file Loading JS config file: /Users/stanislavdzhus/Documents/global-locale/node_modules/eslint-config-airbnb/index.js +1ms
  eslint:config-file Loading /Users/stanislavdzhus/Documents/global-locale/node_modules/eslint-config-airbnb/rules/react-a11y.js +4ms
  eslint:config-file Loading JS config file: /Users/stanislavdzhus/Documents/global-locale/node_modules/eslint-config-airbnb/rules/react-a11y.js +0ms
  eslint:config-file Loading /Users/stanislavdzhus/Documents/global-locale/node_modules/eslint-config-airbnb/rules/react.js +567ms
  eslint:config-file Loading JS config file: /Users/stanislavdzhus/Documents/global-locale/node_modules/eslint-config-airbnb/rules/react.js +0ms
can't resolve reference #/definitions/basicConfig from id #
can't resolve reference #/definitions/basicConfigOrBoolean from id #
can't resolve reference #/definitions/basicConfigOrBoolean from id #
  eslint:config-file Loading /Users/stanislavdzhus/Documents/global-locale/node_modules/eslint-config-airbnb/node_modules/eslint-config-airbnb-base/rules/strict.js +69ms
  eslint:config-file Loading JS config file: /Users/stanislavdzhus/Documents/global-locale/node_modules/eslint-config-airbnb/node_modules/eslint-config-airbnb-base/rules/strict.js +0ms
  eslint:config-file Loading /Users/stanislavdzhus/Documents/global-locale/node_modules/eslint-config-airbnb/node_modules/eslint-config-airbnb-base/index.js +21ms
  eslint:config-file Loading JS config file: /Users/stanislavdzhus/Documents/global-locale/node_modules/eslint-config-airbnb/node_modules/eslint-config-airbnb-base/index.js +1ms
  eslint:config-file Loading /Users/stanislavdzhus/Documents/global-locale/node_modules/eslint-config-airbnb/node_modules/eslint-config-airbnb-base/rules/imports.js +2ms
  eslint:config-file Loading JS config file: /Users/stanislavdzhus/Documents/global-locale/node_modules/eslint-config-airbnb/node_modules/eslint-config-airbnb-base/rules/imports.js +0ms
  eslint:config-file Loading /Users/stanislavdzhus/Documents/global-locale/node_modules/eslint-config-airbnb/node_modules/eslint-config-airbnb-base/rules/es6.js +314ms
  eslint:config-file Loading JS config file: /Users/stanislavdzhus/Documents/global-locale/node_modules/eslint-config-airbnb/node_modules/eslint-config-airbnb-base/rules/es6.js +0ms
  eslint:config-file Loading /Users/stanislavdzhus/Documents/global-locale/node_modules/eslint-config-airbnb/node_modules/eslint-config-airbnb-base/rules/variables.js +36ms
  eslint:config-file Loading JS config file: /Users/stanislavdzhus/Documents/global-locale/node_modules/eslint-config-airbnb/node_modules/eslint-config-airbnb-base/rules/variables.js +0ms
  eslint:config-file Loading /Users/stanislavdzhus/Documents/global-locale/node_modules/eslint-config-airbnb/node_modules/eslint-config-airbnb-base/rules/style.js +19ms
  eslint:config-file Loading JS config file: /Users/stanislavdzhus/Documents/global-locale/node_modules/eslint-config-airbnb/node_modules/eslint-config-airbnb-base/rules/style.js +1ms
  eslint:config-file Loading /Users/stanislavdzhus/Documents/global-locale/node_modules/eslint-config-airbnb/node_modules/eslint-config-airbnb-base/rules/node.js +374ms
  eslint:config-file Loading JS config file: /Users/stanislavdzhus/Documents/global-locale/node_modules/eslint-config-airbnb/node_modules/eslint-config-airbnb-base/rules/node.js +1ms
  eslint:config-file Loading /Users/stanislavdzhus/Documents/global-locale/node_modules/eslint-config-airbnb/node_modules/eslint-config-airbnb-base/rules/errors.js +3ms
  eslint:config-file Loading JS config file: /Users/stanislavdzhus/Documents/global-locale/node_modules/eslint-config-airbnb/node_modules/eslint-config-airbnb-base/rules/errors.js +0ms
  eslint:config-file Loading /Users/stanislavdzhus/Documents/global-locale/node_modules/eslint-config-airbnb/node_modules/eslint-config-airbnb-base/rules/best-practices.js +39ms
  eslint:config-file Loading JS config file: /Users/stanislavdzhus/Documents/global-locale/node_modules/eslint-config-airbnb/node_modules/eslint-config-airbnb-base/rules/best-practices.js +0ms
  eslint:config Using /Users/stanislavdzhus/Documents/global-locale/.eslintrc +94ms
  eslint:config-ops Using config from partial cache +1ms
  eslint:config-ops Apply environment settings to config +2ms
  eslint:config-ops Creating config for environment node +1ms
  eslint:config-ops Creating config for environment es6 +0ms
  eslint:config-ops Creating config for environment browser +0ms
  eslint:config-ops Creating config for environment jest +1ms
  eslint:cli-engine Processing /Users/stanislavdzhus/Documents/global-locale/src/actions/actionCreators.js +753ms
  eslint:cli-engine Linting /Users/stanislavdzhus/Documents/global-locale/src/actions/actionCreators.js +0ms
  eslint:config Constructing config file hierarchy for /Users/stanislavdzhus/Documents/global-locale/src/actions +0ms
  eslint:config Using .eslintrc and package.json files +0ms
  eslint:config Using config from cache +0ms
  eslint:cli-engine Processing /Users/stanislavdzhus/Documents/global-locale/src/actions/actionTypes.js +65ms
  eslint:cli-engine Linting /Users/stanislavdzhus/Documents/global-locale/src/actions/actionTypes.js +0ms
  eslint:config Constructing config file hierarchy for /Users/stanislavdzhus/Documents/global-locale/src/actions +0ms
  eslint:config Using .eslintrc and package.json files +0ms
  eslint:config Using config from cache +0ms
  eslint:cli-engine Processing /Users/stanislavdzhus/Documents/global-locale/src/actions/index.js +50ms
  eslint:cli-engine Linting /Users/stanislavdzhus/Documents/global-locale/src/actions/index.js +0ms
  eslint:config Constructing config file hierarchy for /Users/stanislavdzhus/Documents/global-locale/src/actions +0ms
  eslint:config Using .eslintrc and package.json files +1ms
  eslint:config Using config from cache +0ms
  eslint:cli-engine Processing /Users/stanislavdzhus/Documents/global-locale/src/index.js +38ms
  eslint:cli-engine Linting /Users/stanislavdzhus/Documents/global-locale/src/index.js +1ms
  eslint:config Constructing config file hierarchy for /Users/stanislavdzhus/Documents/global-locale/src +0ms
  eslint:config Using .eslintrc and package.json files +0ms
  eslint:config Using config from cache +0ms
  eslint:cli-engine Processing /Users/stanislavdzhus/Documents/global-locale/src/store/reducer/__tests__/reducer.test.js +41ms
  eslint:cli-engine Linting /Users/stanislavdzhus/Documents/global-locale/src/store/reducer/__tests__/reducer.test.js +1ms
  eslint:config Constructing config file hierarchy for /Users/stanislavdzhus/Documents/global-locale/src/store/reducer/__tests__ +0ms
  eslint:config Using .eslintrc and package.json files +0ms
  eslint:config Using config from cache +1ms
  eslint:cli-engine Processing /Users/stanislavdzhus/Documents/global-locale/src/store/reducer/index.js +101ms
  eslint:cli-engine Linting /Users/stanislavdzhus/Documents/global-locale/src/store/reducer/index.js +0ms
  eslint:config Constructing config file hierarchy for /Users/stanislavdzhus/Documents/global-locale/src/store/reducer +0ms
  eslint:config Using .eslintrc and package.json files +0ms
  eslint:config Using config from cache +1ms
  eslint:cli-engine Linting complete in: 2789ms +47ms

My devDependencies:

{
    "eslint": "^4.2.0",
    "eslint-config-airbnb": "^15.0.2",
    "eslint-plugin-import": "^2.7.0",
    "eslint-plugin-jest": "^20.0.3",
    "eslint-plugin-jsx-a11y": "^6.0.2",
    "eslint-plugin-react": "^7.1.0",
}
@ljharb
Copy link
Collaborator

ljharb commented Jul 12, 2017

Those are warnings from eslint-plugin-react, that don't cause eslint to exit nonzero and that you can safely disregard.

It was fixed in jsx-eslint/eslint-plugin-react#1292, but is not yet released.

@ljharb ljharb closed this as completed Jul 12, 2017
@blablapolicja
Copy link
Author

thank you

paranoidjk added a commit to ant-design/ant-design-mobile that referenced this issue Jul 22, 2017
@lijunle
Copy link

lijunle commented Jul 24, 2017

Is the fixed released? I still see the warning now.

@ljharb
Copy link
Collaborator

ljharb commented Jul 24, 2017

No, it's not yet released in eslint-plugin-react. However, on eslint v4.2+, the warning can be ignored.

@sergeysova
Copy link

Has any progress here?

@ljharb
Copy link
Collaborator

ljharb commented Jul 29, 2017

@lestad no progress is needed here. You're still waiting for a release of eslint-plugin-react, but in the meantime you can merely ignore the error.

zslabs added a commit to rhinogram/rhinostyle that referenced this issue Aug 2, 2017
This includes updates for eslint to the newest version. There is a [small issue](airbnb/javascript#1488) around how it parses the eslint config, but based on the aforementioned issue, it does not cause an issue with how eslint is run or configured and will be fixed in an upcoming release. Also ran `eslint —fix` through the code which has come a long way.
zslabs added a commit to rhinogram/rhinostyle that referenced this issue Aug 2, 2017
* August 2017 dependency updates

This includes updates for eslint to the newest version. There is a [small issue](airbnb/javascript#1488) around how it parses the eslint config, but based on the aforementioned issue, it does not cause an issue with how eslint is run or configured and will be fixed in an upcoming release. Also ran `eslint —fix` through the code which has come a long way.

* revert datepicker for now (changed their CSS around a bit too much)
wKovacs64 added a commit to wKovacs64/hibp that referenced this issue Aug 4, 2017
N.B. The "can't resolve reference" warnings are coming from
eslint-plugin-react and can be safely ignored until a version of
eslint-plugin-react containing PR #1292 is released.

See:
airbnb/javascript#1488
jsx-eslint/eslint-plugin-react#1292
dainyl added a commit to nwaywood/react-fullstack-template that referenced this issue Aug 8, 2017
N.B. The "can't resolve reference" warnings are coming from
eslint-plugin-react and can be safely ignored until a version of
eslint-plugin-react containing PR #1292 is released.

See:
airbnb/javascript#1488
jsx-eslint/eslint-plugin-react#1292
lixiaoyang1992 pushed a commit to lixiaoyang1992/ant-design-mobile that referenced this issue Apr 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants