Skip to content

eslint: fix bracket notation in language extensions - #334771

Merged
Dmitriy Vasyura (dmitrivMS) merged 11 commits into
mainfrom
agents/fix-bracket-notation-language-extensions
Sep 12, 2026
Merged

eslint: fix bracket notation in language extensions#334771
Dmitriy Vasyura (dmitrivMS) merged 11 commits into
mainfrom
agents/fix-bracket-notation-language-extensions

Conversation

@dmitrivMS

@dmitrivMS Dmitriy Vasyura (dmitrivMS) commented Sep 6, 2026

Copy link
Copy Markdown
Collaborator
  • replace identifier-safe bracket notation with dot notation across the 22 files in the Language feature extensions exclusion group
  • remove the completed group from .eslint-allowed-bracket-notation-files

Enable code-no-bracket-notation-for-identifiers for JavaScript and TypeScript files while grandfathering the 509 files with existing violations in a CODEOWNERS-gated allowlist.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Organize the existing baseline by feature area so cleanup can be tracked and assigned without changing the excluded file set.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add RuleTester coverage for valid accesses, diagnostics, and autofix edge cases. Preserve escaped string-literal property names by checking their raw source before reporting.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Replace identifier-safe bracket notation across language feature extensions and remove the completed group from the temporary allowlist.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Base automatically changed from agents/enable-bracket-notation-rule to main September 6, 2026 15:02
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

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.

Copilot review overview

🟢 Approval recommended

The conversions are behavior-preserving, and the affected files no longer contain identifier-safe bracket notation.

Review tier: Balanced
Findings: None

What changed in this PR

Replaces identifier-safe bracket notation with equivalent dot notation across language-feature extensions and removes the completed ESLint allowlist group.

Changes:

  • Updates property access across 22 extension files.
  • Removes those files from the bracket-notation allowlist.
  • Preserves existing runtime behavior.
File Description
.eslint-allowed-bracket-notation-files Removes the completed 22-file exclusion group.
extensions/​css-language-features/​client/​src/​node/​cssClientMain.ts Updates environment-variable access.
extensions/​css-language-features/​server/​src/​cssServer.ts Updates static service lookup.
extensions/​css-language-features/​server/​src/​node/​cssServerNodeMain.ts Updates environment-variable access.
extensions/​emmet/​src/​abbreviationActions.ts Updates static argument, configuration, and option access.
extensions/​emmet/​src/​defaultCompletionProvider.ts Updates Emmet configuration access.
extensions/​emmet/​src/​splitJoinTag.ts Updates syntax-profile access.
extensions/​emmet/​src/​util.ts Updates Emmet configuration access.
extensions/​html-language-features/​client/​src/​autoInsertion.ts Updates auto-insertion state access.
extensions/​html-language-features/​client/​src/​node/​htmlClientMain.ts Updates environment-variable access.
extensions/​html-language-features/​server/​src/​modes/​languageModes.ts Updates static language-mode access.
extensions/​html-language-features/​server/​src/​node/​htmlServerNodeMain.ts Updates environment-variable access.
extensions/​json-language-features/​client/​src/​node/​jsonClientMain.ts Updates environment and header access.
extensions/​json-language-features/​server/​src/​node/​jsonServerNodeMain.ts Updates environment-variable access.
extensions/​markdown-language-features/​src/​extension.ts Updates environment-variable access.
extensions/​markdown-language-features/​src/​languageFeatures/​copyFiles/​copyFiles.ts Updates named regex-group access.
extensions/​markdown-language-features/​src/​languageFeatures/​copyFiles/​snippets.ts Updates named regex-group access.
extensions/​markdown-language-features/​src/​markdownEngine.ts Updates renderer-rule access.
extensions/​merge-conflict/​src/​mergeDecorator.ts Updates decoration access.
extensions/​typescript-language-features/​src/​logging/​telemetry.ts Updates telemetry property access.
extensions/​typescript-language-features/​src/​tsServer/​serverProcess.electron.ts Updates process-environment construction.
extensions/​typescript-language-features/​src/​typescriptServiceClient.ts Updates telemetry property access.
extensions/​typescript-language-features/​src/​utils/​platform.ts Updates global property access.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Keep process.env accesses out of this cleanup now that the lint rule exempts them.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@dmitrivMS Dmitriy Vasyura (dmitrivMS) added vscode-build VS Code build process issues engineering VS Code - Build / issue tracking / etc. labels Sep 12, 2026
@dmitrivMS Dmitriy Vasyura (dmitrivMS) added this to the 1.139.0 milestone Sep 12, 2026
@dmitrivMS
Dmitriy Vasyura (dmitrivMS) merged commit 3879d0e into main Sep 12, 2026
53 of 54 checks passed
@dmitrivMS
Dmitriy Vasyura (dmitrivMS) deleted the agents/fix-bracket-notation-language-extensions branch September 12, 2026 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

engineering VS Code - Build / issue tracking / etc. vscode-build VS Code build process issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants