Skip to content

chore: fix lint:js-in-markdown script - #38260

Merged
codebytere merged 1 commit into
electron:mainfrom
dsanders11:electron-standard-markdown
May 15, 2023
Merged

codebytere merged 1 commit into
electron:mainfrom
dsanders11:electron-standard-markdown

Conversation

@dsanders11

Copy link
Copy Markdown
Member

Description of Change

Closes #38024. Also fixes a couple of rendering bugs on the website docs due to ```JavaScript not being recognized.

Checklist

  • PR description included and stakeholders cc'd

Release Notes

Notes: none

@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label May 11, 2023
@dsanders11
dsanders11 marked this pull request as draft May 11, 2023 16:40
@dsanders11
dsanders11 force-pushed the electron-standard-markdown branch from 5cc6cc9 to 92c5f2c Compare May 11, 2023 16:46
@dsanders11
dsanders11 force-pushed the electron-standard-markdown branch from 92c5f2c to acf68ff Compare May 11, 2023 17:27
@dsanders11
dsanders11 marked this pull request as ready for review May 11, 2023 17:42
@dsanders11 dsanders11 added semver/none target/23-x-y PR should also be added to the "23-x-y" branch. target/24-x-y PR should also be added to the "24-x-y" branch. target/25-x-y PR should also be added to the "25-x-y" branch. labels May 11, 2023
@electron-cation electron-cation Bot removed the new-pr 🌱 PR opened recently label May 12, 2023
@dsanders11 dsanders11 removed the target/23-x-y PR should also be added to the "23-x-y" branch. label May 13, 2023
@codebytere
codebytere merged commit eeb1e7d into electron:main May 15, 2023
@release-clerk

release-clerk Bot commented May 15, 2023

Copy link
Copy Markdown

No Release Notes

@trop

trop Bot commented May 15, 2023

Copy link
Copy Markdown
Contributor

I was unable to backport this PR to "24-x-y" cleanly;
you will need to perform this backport manually.

@trop trop Bot removed the target/24-x-y PR should also be added to the "24-x-y" branch. label May 15, 2023
@trop

trop Bot commented May 15, 2023

Copy link
Copy Markdown
Contributor

I was unable to backport this PR to "25-x-y" cleanly;
you will need to perform this backport manually.

@trop trop Bot added needs-manual-bp/24-x-y needs-manual-bp/25-x-y and removed target/25-x-y PR should also be added to the "25-x-y" branch. labels May 15, 2023
@dsanders11
dsanders11 deleted the electron-standard-markdown branch May 15, 2023 10:26
dsanders11 added a commit to dsanders11/electron that referenced this pull request May 15, 2023
@trop

trop Bot commented May 15, 2023

Copy link
Copy Markdown
Contributor

@dsanders11 has manually backported this PR to "25-x-y", please check out #38300

jkleinsc pushed a commit that referenced this pull request May 15, 2023
chore: fix lint:js-in-markdown script (#38260)
@trop trop Bot added the merged/25-x-y PR was merged to the "25-x-y" branch. label May 15, 2023
@trop

trop Bot commented May 16, 2023

Copy link
Copy Markdown
Contributor

@dsanders11 has manually backported this PR to "24-x-y", please check out #38334

@trop trop Bot added merged/24-x-y PR was merged to the "24-x-y" branch and removed in-flight/24-x-y labels May 24, 2023
jkleinsc pushed a commit that referenced this pull request Oct 19, 2026
* docs: fix code block line highlighting after lint reformats

Several highlighted code blocks in the IPC and preload tutorials had their
line-highlight ranges drift when the docs code blocks were auto-formatted
(the `import/order` blank line added in #42113, and the if/else collapse in
#38260), so the highlights now land one line off from the code they were
meant to call out. Update the ranges to point back at the originally
highlighted code without changing the code blocks themselves.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01A9enZ3jn8BveASiB5p9G1E

* docs: fix code block line highlighting that drifted from content edits

The Playwright examples in automated-testing.md lost a line when their two
`require` statements were merged, leaving the highlights one line late, and
the code signing examples replaced a two-line certificate option with a
`windowsSign` object while keeping the old two-line ranges. Point the
highlights back at the intended code and cover the whole `windowsSign`
object.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01A9enZ3jn8BveASiB5p9G1E

---------

Co-authored-by: Claude <[email protected]>
jkleinsc pushed a commit that referenced this pull request Oct 19, 2026
* docs: fix code block line highlighting after lint reformats

Several highlighted code blocks in the IPC and preload tutorials had their
line-highlight ranges drift when the docs code blocks were auto-formatted
(the `import/order` blank line added in #42113, and the if/else collapse in
#38260), so the highlights now land one line off from the code they were
meant to call out. Update the ranges to point back at the originally
highlighted code without changing the code blocks themselves.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01A9enZ3jn8BveASiB5p9G1E

Co-authored-by: Claude <[email protected]>

* docs: fix code block line highlighting that drifted from content edits

The Playwright examples in automated-testing.md lost a line when their two
`require` statements were merged, leaving the highlights one line late, and
the code signing examples replaced a two-line certificate option with a
`windowsSign` object while keeping the old two-line ranges. Point the
highlights back at the intended code and cover the whole `windowsSign`
object.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01A9enZ3jn8BveASiB5p9G1E

Co-authored-by: Claude <[email protected]>

---------

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Claude <[email protected]>
dsanders11 pushed a commit that referenced this pull request Oct 19, 2026
* docs: fix code block line highlighting after lint reformats

Several highlighted code blocks in the IPC and preload tutorials had their
line-highlight ranges drift when the docs code blocks were auto-formatted
(the `import/order` blank line added in #42113, and the if/else collapse in
#38260), so the highlights now land one line off from the code they were
meant to call out. Update the ranges to point back at the originally
highlighted code without changing the code blocks themselves.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01A9enZ3jn8BveASiB5p9G1E

Co-authored-by: Claude <[email protected]>

* docs: fix code block line highlighting that drifted from content edits

The Playwright examples in automated-testing.md lost a line when their two
`require` statements were merged, leaving the highlights one line late, and
the code signing examples replaced a two-line certificate option with a
`windowsSign` object while keeping the old two-line ranges. Point the
highlights back at the intended code and cover the whole `windowsSign`
object.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01A9enZ3jn8BveASiB5p9G1E

Co-authored-by: Claude <[email protected]>

---------

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Claude <[email protected]>
dsanders11 pushed a commit that referenced this pull request Oct 19, 2026
* docs: fix code block line highlighting after lint reformats

Several highlighted code blocks in the IPC and preload tutorials had their
line-highlight ranges drift when the docs code blocks were auto-formatted
(the `import/order` blank line added in #42113, and the if/else collapse in
#38260), so the highlights now land one line off from the code they were
meant to call out. Update the ranges to point back at the originally
highlighted code without changing the code blocks themselves.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01A9enZ3jn8BveASiB5p9G1E

Co-authored-by: Claude <[email protected]>

* docs: fix code block line highlighting that drifted from content edits

The Playwright examples in automated-testing.md lost a line when their two
`require` statements were merged, leaving the highlights one line late, and
the code signing examples replaced a two-line certificate option with a
`windowsSign` object while keeping the old two-line ranges. Point the
highlights back at the intended code and cover the whole `windowsSign`
object.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01A9enZ3jn8BveASiB5p9G1E

Co-authored-by: Claude <[email protected]>

---------

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Claude <[email protected]>
dsanders11 pushed a commit that referenced this pull request Oct 20, 2026
* docs: fix code block line highlighting after lint reformats

Several highlighted code blocks in the IPC and preload tutorials had their
line-highlight ranges drift when the docs code blocks were auto-formatted
(the `import/order` blank line added in #42113, and the if/else collapse in
#38260), so the highlights now land one line off from the code they were
meant to call out. Update the ranges to point back at the originally
highlighted code without changing the code blocks themselves.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01A9enZ3jn8BveASiB5p9G1E

Co-authored-by: Claude <[email protected]>

* docs: fix code block line highlighting that drifted from content edits

The Playwright examples in automated-testing.md lost a line when their two
`require` statements were merged, leaving the highlights one line late, and
the code signing examples replaced a two-line certificate option with a
`windowsSign` object while keeping the old two-line ranges. Point the
highlights back at the intended code and cover the whole `windowsSign`
object.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01A9enZ3jn8BveASiB5p9G1E

Co-authored-by: Claude <[email protected]>

---------

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merged/24-x-y PR was merged to the "24-x-y" branch merged/25-x-y PR was merged to the "25-x-y" branch. semver/none

Projects

None yet

Development

Successfully merging this pull request may close these issues.

lint:js-in-markdown Silently Failing

2 participants