-
Notifications
You must be signed in to change notification settings - Fork 6
Conversation
The jest-related eslint configuration is located in the shared configuration once elastic/eslint-config-kibana#9 has been merged.
When this is merged, can you push a new version and create PRs for core and xpack? |
I use the kibana presets in non-kibana projects that I really don't want to depend on jest. Can we add this as a supplementary config that needs opt-in via extends? if it exposed a ---
extends:
- "@elastic/kibana"
- "@elastic/kibana/jest" |
-1 from me. imo this is the Kibana eslint config, and should be optimized for those projects (It's not a big deal, but we shouldn't have to think about this when adding other plugins later either imo) |
(Though, maybe it makes sense if there are other elastic projects that rely on them but not jest? Open to the idea) |
That's what I'm describing, other elastic js projects that reuse the kibana config but aren't using jest. We can improve that after this is merged though, LGTM |
Ah, I misunderstood the "non-kibana projects" part. Works for me. |
This extracts the ui-specific eslint settings from elastic/kibana so they can be applied to other repositories as well.
1e1c7d2
to
43d476c
Compare
@spalger makes sense, thanks for the suggestion. I updated the PR. |
When adding some documentation I noticed that we are referencing the config as
Is that something we want to change as well to align with the official docs? |
@weltenwort if it works in eslint 3 then I think we should, but pretty sure that was a breaking change added in eslint 4 |
I think specifying the fully qualified name was always supported. There was a breaking change in 4 that disallows shorthands in namespaced packages to fix misbehavior resulting from ambiguities. I will change it in the PR that references this in kibana after this is merged and published. @spalger any other concerns? |
replaced by elastic/kibana#13090 |
This extracts the ui-specific eslint settings from elastic/kibana so they can
be applied to other repositories as well.