#54139: build: update @electron/lint-roller to 4.0.0
Description of Change
Before: the JS code blocks in docs/ were linted by lint-roller-markdown-standard, which pulled the whole eslint/standard tree into yarn.lock, and lint:docs-fiddles ran the standard binary that only existed because lint-roller 3 depended on it.
After: lint-roller 4.0.0 lints those blocks with the repo's own oxlint and .oxlintrc.json via lint-roller-markdown-oxlint, lint:docs-fiddles runs oxlint over docs/fiddles, and yarn.lock loses roughly 1,900 lines.
The fiddle changes are the handful of findings oxlint surfaced (unused trailing callback parameters, one bare require('path'), one stale eslint-disable comment), with the one tutorial that inlines an affected fiddle kept in sync. The <!-- eslint-... --> HTML comments in docs were directives for the old linter and are dropped. The oxfmt half of the split (formatting the code blocks) follows in a separate PR stacked on this one.
Checklist
- I have filled out the PR description
- I have reviewed and verified the changes
- relevant API documentation, tutorials, and examples are updated and follow the documentation style guide
Release Notes
Notes: none
Generated by Claude Code
Backports
Semver Impact
Semantic Versioning helps users understand the impact of updates:
- Major (X.y.z): Breaking changes that may require code modifications
- Minor (x.Y.z): New features that maintain backward compatibility
- Patch (x.y.Z): Bug fixes that don't change the API
- None: Changes that don't affect using facing parts of Electron