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
And I tried to add root ESLint config with resolve-eslint-plugin.js from document
But, ESLint Output show message like this:
Error: Failed to load plugin 'import' declared in '.eslintrc.js » @packages/eslint-config-custom » eslint-config-airbnb-base »
C:\Users\[user-name]\[workspace-name]\[root-name]\.yarn\__virtual__\eslint-config-airbnb-base-virtual-faf220357d\0\cache\eslint-config-airbnb-base-npm-15.0.0-802837dd26-38626bad2c.zip\node_modules\eslint-config-airbnb-base\rules\imports.js':
Your application tried to access eslint-plugin-import, but it isn't declared in your dependencies; this makes the require call ambiguous and unsound.
Required package: eslint-plugin-import
Required by: C:\Users\[user-name]\[workspace-name]\[root-name]\
My directory tree like this:
.
├── apps
├── packages
│ ├── eslint-config-custom
│ │ ├── index.js
│ │ ├── package.json
├── resolve-eslint-plugin.js
├── .eslintrc.js
├── package.json
└── yarn.lock
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Description
Hi, I want to manage ESLint config in one package
And I tried to add root ESLint config with resolve-eslint-plugin.js from document
But, ESLint Output show message like this:
My directory tree like this:
.
├── apps
├── packages
│ ├── eslint-config-custom
│ │ ├── index.js
│ │ ├── package.json
├── resolve-eslint-plugin.js
├── .eslintrc.js
├── package.json
└── yarn.lock
resolve-eslint-plugin.js likte this:
I try to step by step:
step 1: Excute
step 2: Extend packages/eslint-config-custom to root eslintrc.js
root .estinrc.js like this:
Finally
@arcanis
What I want: Extend package(eslint-config-custom) to root(./.eslintrc.js)
Beta Was this translation helpful? Give feedback.
All reactions