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
It seems that XO doesn't have support for @scoped shareable configs under the extends option.
XO checks to see if a name specified in the extends config option contains "eslint-config-", which means it doesn't properly recognize @scoped or @scoped/eslint-config as valid names for shareable configs (ESLint Docs). XO instead attempts to add "eslint-config-" to the front of the name, so you end up with eslint-config-@scoped or eslint-config-@scoped/eslint-config, which obviously aren't able to be resolved and result in a "Cannot find module" error.
The text was updated successfully, but these errors were encountered:
// TODO: This logic needs to be improved, preferably use the same code as ESLint
// user's configs must be resolved to their absolute paths
I opened an issue regarding this a long time ago (eslint/eslint#7328), and they say it's fixed, but I'm honestly not sure what was fixed and what we need to do in XO to support this.
It seems that XO doesn't have support for
@scoped
shareable configs under theextends
option.XO checks to see if a name specified in the
extends
config option contains "eslint-config-", which means it doesn't properly recognize@scoped
or@scoped/eslint-config
as valid names for shareable configs (ESLint Docs). XO instead attempts to add "eslint-config-" to the front of the name, so you end up witheslint-config-@scoped
oreslint-config-@scoped/eslint-config
, which obviously aren't able to be resolved and result in a "Cannot find module" error.The text was updated successfully, but these errors were encountered: