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

Remove invalid syntax from .eslintrc.js #129164

Merged
merged 2 commits into from
Apr 4, 2022
Merged

Conversation

watson
Copy link
Contributor

@watson watson commented Apr 1, 2022

The exclamation mark prefix doesn't have any effect in the files list. You instead need to override the matched path later with a different rule in order to change the behavior.

I've verified this manually by commenting out the specific license rule for packages/elastic-datemath below this one and seen that in fact this rule is run for that path even though it's supposed to not include it.

I've not been able to find any ESLint documentation saying anything about this kind of syntax in this place.

The exclamation mark prefix doesn't have any effect in the `files` list.
You instead need to override the matched path later with a different
rule in order to change the behavior.
@watson watson added release_note:skip Skip the PR/issue when compiling release notes auto-backport Deprecated - use backport:version if exact versions are needed v8.3.0 v7.17.3 labels Apr 1, 2022
@watson watson requested a review from a team April 1, 2022 08:35
@watson watson self-assigned this Apr 1, 2022
Copy link
Member

@jbudz jbudz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

plugins/ and packages/elastic-eslint-config-kibana are already in .eslintignore too. Sounds like the datemath package is good. LGTM

@watson watson enabled auto-merge (squash) April 4, 2022 05:45
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @watson

@watson watson merged commit 98306f1 into elastic:main Apr 4, 2022
kibanamachine pushed a commit that referenced this pull request Apr 4, 2022
The exclamation mark prefix doesn't have any effect in the `files` list.
You instead need to override the matched path later with a different
rule in order to change the behavior.

(cherry picked from commit 98306f1)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
7.17

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Apr 4, 2022
The exclamation mark prefix doesn't have any effect in the `files` list.
You instead need to override the matched path later with a different
rule in order to change the behavior.

(cherry picked from commit 98306f1)

Co-authored-by: Thomas Watson <watson@elastic.co>
@watson watson deleted the fix-eslintrc branch April 4, 2022 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed release_note:skip Skip the PR/issue when compiling release notes v7.17.3 v8.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants