Skip to content

Disable --noImplcitAny, --noImplicitThis and --strictNullChecks in .js files #14617

Description

@mhegazy
  • Implicit Any errors should be disabled in .js even if --noImplicitAny is set for the whole compilation.
  • noImplicitThis inferences should be enabled, but errors disabled
  • Similarly, inferences for --strictNullChecks for null and undefined types should stay, but errors like Variable is used before being assigned or Object is possibly undefined should be disabled.

This allows for users to mix and match .ts and .js files, and enable strict checks for the .ts files without having errors in the .js file

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions