Skip to content
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

Merged

Conversation

weltenwort
Copy link
Member

This extracts the jest-specific eslint settings from Kibana's .eslintrc into the eslint-config-kibana package so they can be applied to projects living in other repositories as well.

replaces elastic/eslint-config-kibana#9

@weltenwort weltenwort added Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc v5.6.0 v6.0.0-rc1 labels Jul 25, 2017
@weltenwort weltenwort self-assigned this Jul 25, 2017
@weltenwort weltenwort requested review from kimjoar and spalger July 25, 2017 08:39
@@ -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",
Copy link
Contributor

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.

Copy link
Member Author

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?

Copy link
Contributor

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

@weltenwort
Copy link
Member Author

@spalger does this look good to you?

@weltenwort weltenwort force-pushed the enhancement/add-shared-eslint-jest-config branch from 88b34e0 to 02c79bc Compare July 26, 2017 15:16
@weltenwort weltenwort requested a review from cjcenizal July 26, 2017 15:17
Copy link
Contributor

@cjcenizal cjcenizal left a 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

@weltenwort weltenwort force-pushed the enhancement/add-shared-eslint-jest-config branch 2 times, most recently from 42d3724 to c3ed527 Compare July 28, 2017 10:31
This extracts the ui-specific eslint settings from elastic/kibana so they can
be applied to other repositories as well.
@weltenwort weltenwort force-pushed the enhancement/add-shared-eslint-jest-config branch from c3ed527 to e78698d Compare July 28, 2017 10:46
@weltenwort weltenwort merged commit 3884d38 into elastic:master Jul 28, 2017
cjcenizal pushed a commit to cjcenizal/kibana that referenced this pull request Aug 3, 2017
cjcenizal added a commit that referenced this pull request Aug 3, 2017
* [eslint-config-kibana] Add jest plugin and settings (#13090)
* Add AirBnB linting rules for React best practices. Bump to v0.10.0. (#13259)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc v6.1.0 v7.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants