Skip to content

[blazor] eslint#65896

Open
pavelsavara wants to merge 2 commits intodotnet:mainfrom
pavelsavara:eslint_blazor
Open

[blazor] eslint#65896
pavelsavara wants to merge 2 commits intodotnet:mainfrom
pavelsavara:eslint_blazor

Conversation

@pavelsavara
Copy link
Member

just eslint

(I hate 2 many of the current eslint rules but consistency is king)

@pavelsavara pavelsavara added this to the .NET 11 Planning milestone Mar 21, 2026
@pavelsavara pavelsavara self-assigned this Mar 21, 2026
@pavelsavara pavelsavara requested a review from a team as a code owner March 21, 2026 14:52
@pavelsavara pavelsavara added the area-blazor Includes: Blazor, Razor Components label Mar 21, 2026
Copilot AI review requested due to automatic review settings March 21, 2026 14:52
Copy link
Contributor

Copilot AI left a comment

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 applies ESLint-driven formatting and minor style fixes across the Blazor Web.JS and JSInterop TypeScript sources to improve consistency with each subproject’s lint rules.

Changes:

  • Apply ESLint formatting adjustments (indentation, trailing commas, const usage, parameter defaults) across multiple TS files.
  • Align string literal quoting with subproject ESLint configs (e.g., Web.JS single quotes; JSInterop default/double quotes).
  • Add missing license header to ReconnectStateChangedEvent.ts.

Reviewed changes

Copilot reviewed 8 out of 12 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/JSInterop/Microsoft.JSInterop.JS/src/src/Microsoft.JSInterop.ts ESLint formatting changes; adjusts destructuring/indentation/quotes and comment styles.
src/Components/Web.JS/src/Services/NavigationEnhancement.ts ESLint-driven refactors (prefer-const, default param type simplification) and formatting/trailing commas.
src/Components/Web.JS/src/Rendering/StreamingRendering.ts Indentation normalization for redirect logic block.
src/Components/Web.JS/src/Rendering/Renderer.ts Indentation normalization in scheduleScrollReset.
src/Components/Web.JS/src/Rendering/Events/EventTypes.ts Multiline array formatting with trailing comma to satisfy array/newline rules.
src/Components/Web.JS/src/Rendering/DomMerging/EditScript.ts Whitespace cleanup and enum comment alignment.
src/Components/Web.JS/src/Platform/Platform.ts Remove extra semicolon after interface declaration.
src/Components/Web.JS/src/Platform/Mono/MonoPlatform.ts Add ESLint suppression for @ts-ignore and normalize import quoting.
src/Components/Web.JS/src/Platform/Mono/MonoNavigatorUserAgentData.ts Indentation normalization for TS declare interface blocks.
src/Components/Web.JS/src/Platform/Circuits/ReconnectStateChangedEvent.ts Add license header and normalize string literal quotes.
src/Components/Web.JS/src/JSInitializers/JSInitializers.WebAssembly.ts Brace/else formatting and quote normalization.
src/Components/Web.JS/src/JSInitializers/JSInitializers.ts Type literal indentation and parameter formatting adjustments.

…op.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-blazor Includes: Blazor, Razor Components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants