2 Commits
Author SHA1 Message Date
Alexandru DimaandCopilot ce1e1cefcf eslint: allow bracket notation for process.env (#335596)
* eslint: allow bracket notation for dictionary receivers

Add exact receiver-path exceptions without requiring type-aware linting. Configure environment and scoped dictionary receivers, preserve checks for ordinary members, and cover the behavior with rule and configuration tests.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* eslint: narrow bracket exception to process.env

Replace configurable receiver matching and file-scoped overrides with a single built-in process.env check. Keep aliases and all other receivers under the existing rule.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-09-11 17:48:45 +00:00
Dmitriy VasyuraandCopilot da68c9a29b eslint: test no bracket notation rule (#334753)
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>
2026-09-06 08:54:00 +00:00