-
-
Notifications
You must be signed in to change notification settings - Fork 292
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
v0.13.0 crashes on plugin shared config #88
Comments
It does not appear to be |
@jamestalmage Probably https://github.com/sindresorhus/xo/blob/bfb1b4fed0e6b8d946c341bdc06f65d63265a0db/options-manager.js#L105-L116 Maybe we should ask ESLint to expose that method? |
I'm getting the same error when I do this in the "xo": {
"space": 2,
"plugin": ["lodash-fp"],
"extends": ["plugin:lodash-fp/recommended"]
} or with the cli xo --plugin lodash-fp --extend plugin:eslint-plugin-lodash-fp/recommended but it works fine when I go and modify module.exports = {
plugins: [
'lodash-fp',
'no-use-extend-native',
'import-order',
'ava',
'xo',
'promise'
],
extends: [
'plugin:lodash-fp/recommended',
'plugin:ava/recommended',
'plugin:xo/recommended'
],
rules: {
'no-use-extend-native/no-use-extend-native': 2,
'import-order/import-order': 2,
'promise/param-names': 2
}
}; (v0.15) |
v0.16 Just got this. If you try to use a plugin, it results in the options array passed to eslint having a null in the extends array (because |
Opening an issue on ESLint asking them to expose the method for resolving |
Any steps backward with this to make it work i.e. any previous version of xo or eslint which can fix this issue? |
ESLint issue opened: eslint/eslint#7328 |
The ESLint team says the underlying problem has been fixed in ESLint, so we should be able to rip out our custom resolve logic: Lines 254 to 282 in 510d02e
We need to add a lot of test to confirm everything is still working though. |
@issuehuntfest has funded $80.00 to this issue. See it on IssueHunt |
I think current resolve logic on shared config still don't include |
Eslint has a rfc eslint/rfcs#7 to simplify the resolution of sharable configs. Maybe we wait on this first. |
Yeah, probably smart. |
Closing as this will be fixed with #702 |
The bounty from this issue has moved to #702 |
I tried to use:
And things crashed.
I am not sure if it is overrides specific
The text was updated successfully, but these errors were encountered: