Sample
@eslint/js 9.20.0: configs.all, configs.recommended
Verified sample for npm @eslint/js 9.20.0: configs.all, configs.recommended. The contract ran on node 22 · linux alpine/x64 · docker and passed.
sha256:7165e5425fba4ed87abd0aa287cf0c843cfd1a13326fc00a7c4e644026fb3ae2
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
- 1
- Signing keys that built it
- 1
Declared environment
linux 24 · ubuntu · glibc 2.39 x64 npm
Verification-run environments
| Environment | Contract | Stages | Run |
|---|---|---|---|
| node 22 · linux alpine/x64 · docker ed25519:c1973797be207ac4 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · node-typescript@1node:22-alpine@sha256:c610fcdfb1d5… |
2026-08-28 |
Case
HOW- Goal
- verify pkg:npm/@eslint/js@9.20.0
- Packages
- Symbols
-
- configs.all
- configs.recommended
- Created
- 2026-08-28T10:06:57Z
Contract
- configs.recommended provides an ESLint flat configuration object containing recommended rules
- configs.all provides an ESLint flat configuration object containing all core JavaScript rules
Files
- PROMPT.md
- csx.json
- package-lock.json
- package.json
- spec.json
- src/index.mjs
- test/contract.mjs
Source
Clean-room public code sample — generation instructions
Write a brand-new, minimal, self-contained code sample in this clean-room directory.
Do not copy, paraphrase, or reference any existing project source. Work only from this spec.
A csx.json manifest scaffold already exists. Do not recreate it from memory. Preserve its case.goal, packages and symbols; fill its empty case.contract with exact assertions and correct its environment, commands and verifierAdapter for the files you generate.
Goal: verify pkg:npm/@eslint/js@9.20.0
Kind: HOW
Use EXACTLY these public packages and versions:
- pkg:npm/%40eslint/js@9.20.0
Demonstrate these symbols/APIs:
- configs.all
- configs.recommended
Rules:
- One focused purpose; the smallest project that proves the goal.
- Include a contract test (test/contract.*) that runs OFFLINE and exits 0 exactly when the goal behavior works.
- Pin every dependency with a lockfile so resolution is reproducible.
- No secrets, credentials, or tokens. No real URLs (only example.com or localhost). No absolute paths.
- No personal names, emails, company names, or project identifiers of any kind.
- No binaries and no generated output (node_modules, dist, target, venv, .git, .env).
- Keep it under 200 files and 256KB packed.
{"case":{"caseId":"case:sha256:7e4a51fa1d9501fa3a8e454fc4972d50f75332a93fbe2928960170f65115de0d","contract":["configs.recommended provides an ESLint flat configuration object containing recommended rules","configs.all provides an ESLint flat configuration object containing all core JavaScript rules"],"goal":"verify pkg:npm/@eslint/js@9.20.0","kind":"HOW","packages":["pkg:npm/%40eslint/js@9.20.0"],"schemaVersion":1,"symbols":["configs.all","configs.recommended"]},"contractCommand":["node","test/contract.mjs"],"environment":{"arch":"x64","distro":"ubuntu","ecosystem":"npm","libc":"glibc","libcVersion":"2.39","os":"linux","osVersionBucket":"24","packageManager":"npm","schemaVersion":1},"license":"MIT-0","packages":["pkg:npm/%40eslint/js@9.20.0"],"schemaVersion":1,"subject":"pkg:npm/%40eslint/js@9.20.0","symbols":["configs.all","configs.recommended"],"verifierAdapter":"node-typescript@1"}
{
"name": "sample-eslint-js",
"version": "1.0.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "sample-eslint-js",
"version": "1.0.0",
"dependencies": {
"@eslint/js": "9.20.0"
}
},
"node_modules/@eslint/js": {
"version": "9.20.0",
"resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.20.0.tgz",
"integrity": "sha512-iZA07H9io9Wn836aVTytRaNqh00Sad+EamwOVJT12GTLw1VGMFV/4JaME+JjLtr9fiGaoWgYnS54wrfWsSs4oQ==",
"license": "MIT",
"engines": {
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
}
}
}
}
{
"name": "sample-eslint-js",
"version": "1.0.0",
"type": "module",
"private": true,
"dependencies": {
"@eslint/js": "9.20.0"
}
}
{
"schemaVersion": 1,
"goal": "verify pkg:npm/@eslint/js@9.20.0",
"kind": "HOW",
"packages": [
"pkg:npm/%40eslint/js@9.20.0"
],
"symbols": [
"configs.all",
"configs.recommended"
]
}
import js from '@eslint/js';
export function getRecommendedConfig() {
return js.configs.recommended;
}
export function getAllConfig() {
return js.configs.all;
}
export function getRecommendedRules() {
return js.configs.recommended.rules;
}
export function getAllRules() {
return js.configs.all.rules;
}
export function getPackageMeta() {
return js.meta;
}
import assert from 'node:assert/strict';
import js from '@eslint/js';
import { getRecommendedConfig, getAllConfig, getRecommendedRules, getAllRules, getPackageMeta } from '../src/index.mjs';
// 1. Verify js.configs.recommended structure and properties
const recommended = getRecommendedConfig();
assert.ok(recommended, 'configs.recommended should exist');
assert.strictEqual(typeof recommended, 'object', 'configs.recommended should be an object');
assert.ok(recommended.rules, 'configs.recommended should contain rules property');
assert.strictEqual(typeof recommended.rules, 'object', 'configs.recommended.rules should be an object');
const recRules = getRecommendedRules();
assert.strictEqual(recRules, recommended.rules, 'getRecommendedRules returns recommended.rules');
assert.ok(Object.keys(recRules).length > 0, 'recommended rules should not be empty');
assert.strictEqual(recRules['constructor-super'], 'error', 'constructor-super should be configured');
assert.strictEqual(recRules['no-undef'], 'error', 'no-undef should be configured');
assert.strictEqual(recRules['no-unused-vars'], 'error', 'no-unused-vars should be configured');
// 2. Verify js.configs.all structure and properties
const all = getAllConfig();
assert.ok(all, 'configs.all should exist');
assert.strictEqual(typeof all, 'object', 'configs.all should be an object');
assert.ok(all.rules, 'configs.all should contain rules property');
assert.strictEqual(typeof all.rules, 'object', 'configs.all.rules should be an object');
const allRules = getAllRules();
assert.strictEqual(allRules, all.rules, 'getAllRules returns all.rules');
assert.ok(Object.keys(allRules).length > Object.keys(recRules).length, 'all rules should have more rules than recommended');
assert.strictEqual(allRules['accessor-pairs'], 'error', 'accessor-pairs should be configured in all rules');
assert.strictEqual(allRules['no-undef'], 'error', 'no-undef should be configured in all rules');
// 3. Verify exact export shape of @eslint/js
assert.strictEqual(js.configs.recommended, recommended, 'js.configs.recommended matches exported config');
assert.strictEqual(js.configs.all, all, 'js.configs.all matches exported config');
const meta = getPackageMeta();
assert.strictEqual(typeof meta, 'object', 'meta should be an object');
assert.strictEqual(meta.name, '@eslint/js', 'meta.name should be @eslint/js');
assert.strictEqual(meta.version, '9.20.0', 'meta.version should be 9.20.0');
console.log('Contract assertions passed successfully.');
Origin Seeder
anonymous