Skip to content

[ESLint] Move devDependencies to dependencies - #9804

Merged
weronikaolejniczak merged 2 commits into
elastic:mainfrom
weronikaolejniczak:fix/eslint-plugin-runtime-deps
Jul 15, 2026
Merged

weronikaolejniczak merged 2 commits into
elastic:mainfrom
weronikaolejniczak:fix/eslint-plugin-runtime-deps

Conversation

@weronikaolejniczak

@weronikaolejniczak weronikaolejniczak commented Jul 14, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Closes #9780

  • Move cssstyle, micromatch, @typescript-eslint/* to dependencies (they were in devDependencies); plugin failed to load for consumers.
  • Bump @typescript-eslint/* v8.31.1 → v8.64.0.

QA instructions for reviewer

  • CI is green (ESLint tests are evaluated in CI)
  • Changelog entry is correct

@weronikaolejniczak weronikaolejniczak self-assigned this Jul 14, 2026
Copilot AI review requested due to automatic review settings July 14, 2026 13:25
@weronikaolejniczak
weronikaolejniczak requested a review from a team as a code owner July 14, 2026 13:25

Copilot AI left a comment

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.

Pull request overview

This PR fixes @elastic/eslint-plugin-eui failing to load in consumer projects by ensuring runtime-required packages are shipped as dependencies (not devDependencies), and updates related dependency versions (including a Node.js engine bump required by cssstyle@v6).

Changes:

  • Move cssstyle, micromatch, and @typescript-eslint/utils from devDependencies to dependencies so the plugin can load at runtime for consumers.
  • Upgrade cssstyle to ^6.2.0 and @typescript-eslint/* to ^8.64.0.
  • Add engines.node: >=20 and document the breaking change in the plugin changelog.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.

File Description
yarn.lock Updates lockfile to reflect cssstyle@6 and @[email protected] dependency graph changes.
packages/eslint-plugin/package.json Moves runtime deps to dependencies, bumps versions, and adds a Node >=20 engine constraint.
packages/eslint-plugin/changelogs/upcoming/9780.md Adds changelog entry covering the bug fix, breaking Node support change, and dependency bumps.
packages/eslint-plugin/changelogs/upcoming/_template.md Adds a changelog entry template for upcoming changes (matches other packages’ templates).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/eslint-plugin/package.json Resolved

Copilot AI left a comment

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.

Pull request overview

Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.

Comment thread packages/eslint-plugin/package.json Resolved
@weronikaolejniczak
weronikaolejniczak force-pushed the fix/eslint-plugin-runtime-deps branch 2 times, most recently from 228492e to 132d7da Compare July 14, 2026 14:32
@weronikaolejniczak
weronikaolejniczak marked this pull request as ready for review July 14, 2026 14:55

Copilot AI left a comment

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.

Pull request overview

Copilot reviewed 3 out of 4 changed files in this pull request and generated 3 comments.

Comments suppressed due to low confidence (1)

packages/eslint-plugin/package.json:44

  • dedent is still imported by this package’s Jest tests (e.g. src/rules/href_or_on_click.test.ts), but it was removed from devDependencies. That will break yarn test-unit in this workspace unless dedent happens to be hoisted from elsewhere.
    "ts-jest": "^29.2.5",
    "ts-node": "^10.9.2",
    "typescript": "^5.8.3"

Comment thread packages/eslint-plugin/package.json Resolved
Comment thread packages/eslint-plugin/package.json Resolved

Copilot AI left a comment

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.

Pull request overview

Copilot reviewed 3 out of 4 changed files in this pull request and generated no new comments.

@mgadewoll mgadewoll left a comment

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.

🟢 LGTM

Copilot AI left a comment

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.

Pull request overview

Copilot reviewed 3 out of 4 changed files in this pull request and generated no new comments.

@weronikaolejniczak
weronikaolejniczak enabled auto-merge (squash) July 15, 2026 10:51
@infra-vault-gh-plugin-prod

Copy link
Copy Markdown

💚 Build Succeeded

History

cc @weronikaolejniczak

@weronikaolejniczak
weronikaolejniczak merged commit 4e9a227 into elastic:main Jul 15, 2026
1 check passed
@infra-vault-gh-plugin-prod

Copy link
Copy Markdown

💚 Build Succeeded

History

cc @weronikaolejniczak

acstll added a commit to elastic/kibana that referenced this pull request Jul 21, 2026
## Dependency updates

`@elastic/eui` - v117.0.0 ⏩ v117.1.0
`@elastic/eslint-plugin-eui` - v2.13.0 ⏩ v2.14.1

## Package updates

### `@elastic/eui`
[v117.1.0](https://github.com/elastic/eui/blob/main/packages/eui/changelogs/CHANGELOG_2026.md)

- Updated the outer border width on `EuiFlyout` to `1px`
([#9803](elastic/eui#9803))
- Removed the `translateY` transform on clickable `EuiPanel`s
([#9702](elastic/eui#9702))
- Updated the hover shadow size on clickable `EuiPanel`s from `l` to `m`
to align with the shadow guidelines
([#9702](elastic/eui#9702))

**Bug fixes**

- Fixed `renderHook` test utility requiring
`@testing-library/react-hooks` in consumer environments running React
18+ ([#9805](elastic/eui#9805))
- Fixed `EuiSearchBar` in-memory filtering keeping items that a negated
multi-value clause such as `-field:(a or b)` should exclude
([#9783](elastic/eui#9783))

**Dependency updates**

- Updated `@elastic/prismjs-esql` to v4.13.0
([#9814](elastic/eui#9814))

### `@elastic/eslint-plugin-eui`
[v2.14.1](https://github.com/elastic/eui/blob/main/packages/eslint-plugin/changelogs/CHANGELOG_2026.md)

**Bug fixes**

- Fixed ESLint failing to load `@elastic/eslint-plugin-eui` by moving
its runtime dependencies (`cssstyle`, `micromatch`,
`@typescript-eslint/utils` and `@typescript-eslint/typescript-estree`)
from `devDependencies` to `dependencies`
([#9804](elastic/eui#9804))

**Dependency updates**

- Updated `@typescript-eslint/*` packages from `8.31.1` to `8.64.0`
([#9804](elastic/eui#9804))

---------

Co-authored-by: kibanamachine <[email protected]>
patrykkopycinski pushed a commit to patrykkopycinski/kibana that referenced this pull request Aug 5, 2026
## Dependency updates

`@elastic/eui` - v117.0.0 ⏩ v117.1.0
`@elastic/eslint-plugin-eui` - v2.13.0 ⏩ v2.14.1

## Package updates

### `@elastic/eui`
[v117.1.0](https://github.com/elastic/eui/blob/main/packages/eui/changelogs/CHANGELOG_2026.md)

- Updated the outer border width on `EuiFlyout` to `1px`
([elastic#9803](elastic/eui#9803))
- Removed the `translateY` transform on clickable `EuiPanel`s
([elastic#9702](elastic/eui#9702))
- Updated the hover shadow size on clickable `EuiPanel`s from `l` to `m`
to align with the shadow guidelines
([elastic#9702](elastic/eui#9702))

**Bug fixes**

- Fixed `renderHook` test utility requiring
`@testing-library/react-hooks` in consumer environments running React
18+ ([elastic#9805](elastic/eui#9805))
- Fixed `EuiSearchBar` in-memory filtering keeping items that a negated
multi-value clause such as `-field:(a or b)` should exclude
([elastic#9783](elastic/eui#9783))

**Dependency updates**

- Updated `@elastic/prismjs-esql` to v4.13.0
([elastic#9814](elastic/eui#9814))

### `@elastic/eslint-plugin-eui`
[v2.14.1](https://github.com/elastic/eui/blob/main/packages/eslint-plugin/changelogs/CHANGELOG_2026.md)

**Bug fixes**

- Fixed ESLint failing to load `@elastic/eslint-plugin-eui` by moving
its runtime dependencies (`cssstyle`, `micromatch`,
`@typescript-eslint/utils` and `@typescript-eslint/typescript-estree`)
from `devDependencies` to `dependencies`
([elastic#9804](elastic/eui#9804))

**Dependency updates**

- Updated `@typescript-eslint/*` packages from `8.31.1` to `8.64.0`
([elastic#9804](elastic/eui#9804))

---------

Co-authored-by: kibanamachine <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

@elastic/eslint-plugin-eui: missing runtime dependencies cause ESLint to fail on load

3 participants