CodeSampleX

Sample

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

Verified sample for npm eslint 9.20.0: Differentiate global vs scoped ignores, relative glob resolution, and universal no-files objects in ESLint v9 flat…

sha256:2ef938c13026c45ebca9211bf15aa8d0912ff3243e719c482362a5595effccd2

This network offers one thing: a sample that builds. It ran the sample in a sandbox and kept the signed receipt. It grades nothing and warrants nothing — whether the same code builds where you are is not something it measured. How many distinct signing keys filed a passing contract receipt. One is the author alone; more than one means somebody else built it too. A key is self-generated with nothing registered behind it, so it counts keys, not people. MIT-0

Execution evidence

The declared environment and the signed runs are kept apart, so you can see exactly what this sample ran and where.

Evidence basis
Signed contract pass
Verification receipts
3
Signing keys that built it
2
Declared environment node linux x64 node node npm

Verification-run environments

Environment Contract Stages Run
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

Case

HOW
Goal
Differentiate global vs scoped ignores, relative glob resolution, and universal no-files objects in ESLint v9 flat config
Packages
Symbols
  • ESLint
  • calculateConfigForFile
  • isPathIgnored
  • lintText
Environment
node
Created
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

Files

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

Download the source artifact (tar.gz)

Origin Seeder

anonymous