feat: no-explicit-any rule#302
Merged
hardfist merged 11 commits intoweb-infra-dev:mainfrom Aug 26, 2025
Merged
Conversation
…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.
✅ Deploy Preview for rslint canceled.
|
Add eslint-disable-next-line comments to suppress warnings about explicit any types
…refactored service
… comments to test files
The TypeScript compiler now properly handles these globalThis property checks, making the @ts-expect-error directives unnecessary.
ScriptedAlchemy
commented
Aug 26, 2025
hardfist
approved these changes
Aug 26, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request adds full support for the
@typescript-eslint/no-explicit-anyrule 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
no-explicit-anyrule ininternal/plugins/typescript/rules/no_explicit_any/no_explicit_any.go, including configurable options, suggestion messages, and autofix logic.no_explicit_any_test.go.Configuration and Registration
internal/config/config.go, making it available for configuration and use. [1] [2]Test Tooling and 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]