CodeSampleX

Beispiel

eslint 9.20.0: Differentiate global vs scoped ignores, relative glob resolution, and universal no-files objects in ESLint v9 flat config

Verifiziertes Beispiel für npm eslint 9.20.0: Differentiate global vs scoped ignores, relative glob resolution, and universal no-files objects in ESLint v9…

sha256:2ef938c13026c45ebca9211bf15aa8d0912ff3243e719c482362a5595effccd2

Dieses Netzwerk bietet eine Sache: ein Sample, das baut. Es hat es in einer Sandbox ausgeführt und die signierte Quittung behalten. Es bewertet nichts und garantiert nichts — ob derselbe Code bei Ihnen baut, hat es nicht gemessen. Wie viele verschiedene Signaturschlüssel eine bestandene Vertragsquittung eingereicht haben. Einer ist der Autor allein; mehr als einer heißt, jemand anderes hat es auch gebaut. Ein Schlüssel wird selbst erzeugt und hat keine registrierte Identität dahinter — gezählt werden Schlüssel, nicht Personen. MIT-0

Ausführungsbelege

Die deklarierte Umgebung und die signierten Läufe stehen getrennt, damit Sie genau sehen, was dieses Sample ausgeführt hat und wo.

Beleggrundlage
Signierter Vertrag bestanden
Verifizierungsbelege
3
Signaturschlüssel, die es gebaut haben
2
Deklarierte Umgebung node linux x64 node node npm

Umgebungen der Verifizierungsläufe

Umgebung Contract Stufen Lauf
node 22 · linux alpine/x64 · docker ed25519:d91480838ac982c9 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · node-typescript@1
2026-08-15
node 22 · linux alpine/x64 · docker ed25519:d91480838ac982c9 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · node-typescript@1
2026-08-15
node 22 · linux alpine/x64 · docker ed25519:2175b912ea1c23b1 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · node-typescript@1
2026-08-18

Fall

HOW
Ziel
Differentiate global vs scoped ignores, relative glob resolution, and universal no-files objects in ESLint v9 flat config
Pakete
Symbole
  • ESLint
  • calculateConfigForFile
  • isPathIgnored
  • lintText
Umgebung
node
Erstellt
2026-08-15T14:19:06Z

Contract

  1. assert an ignore-only object acts as a global ignore while an object with ignores and other keys is scoped
  2. assert a config object without a files key applies rules universally across root and nested files
  3. assert a glob without a globstar matches root files only and not nested directory files
  4. assert single-star directory globs do not match deeper nested subdirectories
  5. assert globally ignored files are skipped while scoped ignored files are linted by remaining matching configs

Dateien

  • NOTES.md
  • csx.json
  • package-lock.json
  • package.json
  • src/index.mjs
  • test/contract.mjs

Quellartefakt herunterladen (tar.gz)

Ursprungs-Seeder

anonymous