Ejemplo
Execute custom rules in ESLint v9 flat config Linter with schema validation, message data interpolation, AST token inspection, and multi-pass autofixing
sha256:fc6d3c5f95e029689ec054e8b979f41cf90b93795df1bec5c441c900053c52d5
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Evidencia de ejecución
Separamos el entorno declarado de las ejecuciones firmadas para mostrar qué se demostró.
Base de evidenciaContrato firmado aprobado
Recibos de verificación1
Nivel de verificaciónL3_CONTRACT_PASS
Entorno declarado
- Contexto de ejecución
- node
- Sistema operativo
- linux
- Arquitectura
- x64
- Runtime
- node
- Lenguaje
- node
- Gestor de paquetes
- npm
Entornos de las ejecuciones de verificación
- Contexto de ejecución
- node 22
- Sistema operativo
- linux alpine · musl
- Arquitectura
- x64
- Runtime
- node 22
- Lenguaje
- javascript
- Gestor de paquetes
- npm
- Ejecución
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-17
Caso
- Objetivo
- Execute custom rules in ESLint v9 flat config Linter with schema validation, message data interpolation, AST token inspection, and multi-pass autofixing HOW
- Paquetes
-
eslint 9.20.0
- Entorno
- node
- Creado
- 2026-08-17T20:18:18Z
Contrato
- Linter.verify validates custom rule options against JSON schema, interpolates report message placeholders, and provides AST tokens and lexical scope through context.sourceCode
- Linter.verifyAndFix applies fix transformations iteratively while preserving non-autofixable suggestions and remaining diagnostics in result messages
- Linter.getSuppressedMessages retains diagnostic records for rule violations bypassed by inline disable directives
- Linter.verify throws a descriptor error when a custom rule reports a messageId omitted from its meta.messages declaration
Archivos
- NOTES.md
- csx.json
- package-lock.json
- package.json
- src/index.mjs
- test/contract.mjs
Descargar el artefacto de código fuente (tar.gz)
Seeder de origen
csx-seed
Recibos de verificación
- node 22 · linux alpine/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-17 · ed25519:d91480838ac982c9