-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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-kibana] Add jest plugin and settings #13090
[eslint-config-kibana] Add jest plugin and settings #13090
Conversation
@@ -22,6 +22,7 @@ | |||
"eslint": "^4.1.0", | |||
"eslint-plugin-babel": "^4.1.1", | |||
"eslint-plugin-import": "^2.6.0", | |||
"eslint-plugin-jest": "^20.0.3", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will always require the jest eslint plugin be installed, but I think that's okey. I don't see any harm in people not using Jest having to install this, as this works great for Kibana and xpack.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aren't peer dependencies always considered optional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, yeah, you'll just receive the warning
@spalger does this look good to you? |
88b34e0
to
02c79bc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Tested locally with a symlink and it works.
ln -s ./packages/eslint-config-kibana ./node_modules/@elastic/eslint-config-kibana
42d3724
to
c3ed527
Compare
This extracts the ui-specific eslint settings from elastic/kibana so they can be applied to other repositories as well.
c3ed527
to
e78698d
Compare
This extracts the jest-specific eslint settings from Kibana's
.eslintrc
into theeslint-config-kibana
package so they can be applied to projects living in other repositories as well.replaces elastic/eslint-config-kibana#9