Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Enable `noImplicitAny` in all packages

Abierto
#11,426 0 comentarios 1 reacción 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
38/100
Tipo de issue
Refactorización
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
typescript
Área
build-system

Línea de trabajo

Start by reading the root tsconfig.json to see the noImplicitAny: false line inherited by each package, then pick one of the smallest packages from the table (e.g. ra-data-json-server with 1 error) and reproduce with tsc --noEmit -p packages/ra-data-json-server --noImplicitAny true. Fix the reported TS7006/TS7031 site by making the any explicit rather than narrowing a public signature, enable the flag in that package's tsconfig.json, and confirm the run is clean. Done means the package type-checks with the flag on and its public API types are unchanged.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Since the TypeScript 6 upgrade (#11347), the root tsconfig.json enables strict: true but still sets noImplicitAny: false, which disables strict's most important check for every package extending it.

Removing that line produces the following errors in package sources (specs and stories excluded), measured with tsc --noEmit -p packages/<pkg> --noImplicitAny true:

Package Errors
ra-ui-materialui 214
ra-core 206
ra-data-fakerest 22
ra-data-graphql-simple 22
ra-no-code 22
ra-data-local-storage 20
ra-data-graphql 17
ra-input-rich-text 12
ra-i18n-i18next 8
react-admin 8
create-react-admin 6
ra-data-json-server 1
ra-data-local-forage 1

Mostly TS7006 (implicitly-any parameters), then TS7031 (destructured bindings) and TS7053 (index access). Spec and story files will add more.

Suggested approach: one PR per package (small packages first), enabling noImplicitAny in each package's tsconfig.json as it gets fixed, then removing the line from the root config. Public signatures must keep their current types (any made explicit rather than narrowed) to avoid breaking changes.

Lenguaje dominante
TypeScript
Estrellas
27k
Forks
5.5k
Merge medio
1 d 3 min
PR fusionados (30 d)
32

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de marmelab/react-admin

Todos los issues de marmelab/react-admin

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.