A zero-dependency alternative to cosmiconfig for loading configuration files
89
{
"context": "This criteria evaluates how well the engineer uses lilconfig's package.json property path extraction capabilities, particularly the proper handling of null vs undefined values in property chains.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses lilconfig",
"description": "Implementation imports and uses lilconfig (via lilconfig() or lilconfigSync()) instead of manually reading and parsing package.json files",
"max_score": 25
},
{
"name": "packageProp configuration",
"description": "Correctly configures the packageProp option when creating the lilconfig explorer to specify the property path to extract from package.json",
"max_score": 25
},
{
"name": "Load method usage",
"description": "Uses the load() method from the lilconfig explorer to load the specific package.json file by path",
"max_score": 20
},
{
"name": "Null vs undefined",
"description": "Correctly handles lilconfig's behavior where null values in property chains throw errors while undefined values return null - either by catching and re-throwing the error or by letting lilconfig's native error propagate",
"max_score": 30
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-lilconfigdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10