Skip to content

[eslint-config-kibana] Add jest plugin and settings#13090

Merged
weltenwort merged 2 commits intoelastic:masterfrom
weltenwort:enhancement/add-shared-eslint-jest-config
Jul 28, 2017
Merged

[eslint-config-kibana] Add jest plugin and settings#13090
weltenwort merged 2 commits intoelastic:masterfrom
weltenwort:enhancement/add-shared-eslint-jest-config

Conversation

@weltenwort
Copy link
Copy Markdown
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 Platform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t// 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
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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 Platform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t// v6.1.0 v7.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants