Skip to content

feat: no-explicit-any rule#302

Merged
hardfist merged 11 commits intoweb-infra-dev:mainfrom
ScriptedAlchemy:codex/port-no-explicit-any-rule-to-go
Aug 26, 2025
Merged

feat: no-explicit-any rule#302
hardfist merged 11 commits intoweb-infra-dev:mainfrom
ScriptedAlchemy:codex/port-no-explicit-any-rule-to-go

Conversation

@ScriptedAlchemy
Copy link
Copy Markdown
Contributor

This pull request adds full support for the @typescript-eslint/no-explicit-any rule to the codebase, including its implementation, configuration, and tests. The rule is now available for use and is included in the manifest and test suite.

TypeScript Rule Support

  • Implemented the no-explicit-any rule in internal/plugins/typescript/rules/no_explicit_any/no_explicit_any.go, including configurable options, suggestion messages, and autofix logic.
  • Added comprehensive tests for the new rule in no_explicit_any_test.go.

Configuration and Registration

  • Registered the new rule in the global rule registry and imported it in internal/config/config.go, making it available for configuration and use. [1] [2]

Test Tooling and Manifest

  • Added the rule to the test manifest (rule-manifest.json) and enabled its test file in the test runner configuration, ensuring it is tested with the rest of the suite. [1] [2]

ScriptedAlchemy and others added 2 commits August 25, 2025 15:43
…handling

Add support for detecting and reporting explicit 'any' types in TypeScript code, including special handling for rest parameters with array types. The rule now checks for 'any' usage in various contexts like variables, functions, classes, and interfaces.

Includes test cases covering different scenarios where 'any' might be used, ensuring comprehensive detection of explicit 'any' types throughout the codebase.
@netlify
Copy link
Copy Markdown

netlify bot commented Aug 26, 2025

Deploy Preview for rslint canceled.

Name Link
🔨 Latest commit afc08e6
🔍 Latest deploy log https://app.netlify.com/projects/rslint/deploys/68ae194fa6ed7200083663fa

@ScriptedAlchemy ScriptedAlchemy marked this pull request as ready for review August 26, 2025 20:06
Copilot AI review requested due to automatic review settings August 26, 2025 20:06
Copy link
Copy Markdown
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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@hardfist hardfist merged commit 66aac2b into web-infra-dev:main Aug 26, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants