Skip to content

build: update @electron/lint-roller to 4.0.0 and check docs code blocks with oxfmt (45-x-y) - #54157

Merged
MarshallOfSound merged 3 commits into
45-x-yfrom
claude/lint-roller-4-45-x-y
Sep 21, 2026
Merged

MarshallOfSound merged 3 commits into
45-x-yfrom
claude/lint-roller-4-45-x-y

Conversation

@MarshallOfSound

Copy link
Copy Markdown
Member

Backport of #53431
Backport of #54139
Backport of #54140

See those PRs for details. The oxlint 1.80 bump comes along because lint-roller 4 needs oxlint >= 1.65, and the docs reformat was re-run on this branch's docs rather than cherry-picked.

Notes: none


Generated by Claude Code

dependabot Bot and others added 3 commits September 21, 2026 07:43
* build(deps-dev): bump oxlint from 1.57.0 to 1.80.0

Bumps [oxlint](https://github.com/oxc-project/oxc/tree/HEAD/npm/oxlint) from 1.57.0 to 1.80.0.
- [Release notes](https://github.com/oxc-project/oxc/releases)
- [Changelog](https://github.com/oxc-project/oxc/blob/main/npm/oxlint/CHANGELOG.md)
- [Commits](https://github.com/oxc-project/oxc/commits/oxlint_v1.80.0/npm/oxlint)

---
updated-dependencies:
- dependency-name: oxlint
  dependency-version: 1.80.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* chore: satisfy lint rule

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: David Sanders <[email protected]>
(cherry picked from commit 633785d)
lint-roller 4 drops `lint-roller-markdown-standard` (and with it the
transitive eslint/standard dependency tree, roughly 1,900 lines of
yarn.lock) in favour of `lint-roller-markdown-oxlint`, which lints the JS
code blocks in docs/ with the repo's own oxlint and .oxlintrc.json. It
also makes `lint-roller-markdown-ts-check` work with TypeScript 6 and 7.

- `lint:js-in-markdown` now runs `lint-roller-markdown-oxlint`.
- `lint:docs-fiddles` ran the `standard` binary, which was only ever
  installed as a dependency of lint-roller 3, so it now runs oxlint over
  docs/fiddles instead. The dozen findings that surfaced (unused trailing
  callback parameters, one `require('path')`, one stale eslint-disable
  comment) are fixed in the fiddles, and the one tutorial that inlines an
  affected fiddle is kept in sync.
- The `<!-- eslint-... -->` HTML comments in docs were directives for
  lint-roller-markdown-standard and are removed, and the docs style guide
  no longer points at standard-markdown.

Co-authored-by: Claude <[email protected]>
(cherry picked from commit 5eefaea)
* build: check the formatting of docs code blocks with oxfmt

lint-roller 4 splits the old `lint-roller-markdown-standard` into an
oxlint half and an oxfmt half. This wires up the second one:
`lint:fmt-in-markdown` runs `lint-roller-markdown-oxfmt` over docs/ as
part of `lint:docs`, using docs/.oxfmtrc.json, which matches the repo's
.oxfmtrc.json except that docs snippets keep their semicolon-free style.
`--fix` writes the formatted blocks back, and a block can opt out with
`@noformat` in its info string.

* docs: format code blocks with oxfmt

Result of `lint-roller-markdown-oxfmt --fix` with docs/.oxfmtrc.json, plus
the @ts-expect-error line anchors (and one Docusaurus highlight marker)
that moved with the reformat. The Babel output sample in the ESM guide and
the two excerpts of repo source in creating-api.md are marked @noformat,
and the contentTracing example passes an async callback instead of
wrapping an IIFE so that it does not need a leading semicolon.

---------

Co-authored-by: Claude <[email protected]>
(cherry picked from commit ad3a896)
@socket-security

socket-security Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​electron/​lint-roller@​3.2.0 ⏵ 4.0.093 +910092 +690 +9100
Updatedoxlint@​1.57.0 ⏵ 1.80.099 +11009196100

View full report

@socket-security

socket-security Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

All alerts resolved. Learn more about Socket for GitHub.

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

Ignoring alerts on:

View full report

@MarshallOfSound

Copy link
Copy Markdown
Member Author

@SocketSecurity ignore npm/@electron/[email protected]

Copy link
Copy Markdown
Member Author

macos-arm64 / build / build failed for reasons unrelated to this change (which only touches lint tooling, docs and yarn.lock): the darwin artifact upload hit Failed to CreateArtifact: Unable to make request: ETIMEDOUT, and the MAS build step then died on a remote-exec worker with 'os/log.h' file not found while compiling sandbox/mac/sandbox_logging.cc. I'll re-run the failed job once the rest of the workflow run finishes.


Generated by Claude Code

@MarshallOfSound
MarshallOfSound merged commit 7396209 into 45-x-y Sep 21, 2026
136 of 138 checks passed
@release-clerk

release-clerk Bot commented Sep 21, 2026

Copy link
Copy Markdown

No Release Notes

@MarshallOfSound
MarshallOfSound deleted the claude/lint-roller-4-45-x-y branch September 21, 2026 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

3 participants