A zero-dependency alternative to cosmiconfig for loading configuration files
89
{
"context": "This criteria evaluates how well the engineer uses lilconfig's caching system, specifically the clearSearchCache(), clearLoadCache(), and clearCaches() methods, along with understanding the two-tier cache architecture for search and load operations.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses lilconfig creation",
"description": "Uses lilconfig() or lilconfigSync() to create an explorer instance with appropriate configuration name",
"max_score": 10
},
{
"name": "Implements clearSearchCache",
"description": "Correctly exposes and uses the clearSearchCache() method from the lilconfig explorer to clear only the search cache",
"max_score": 20
},
{
"name": "Implements clearLoadCache",
"description": "Correctly exposes and uses the clearLoadCache() method from the lilconfig explorer to clear only the load cache",
"max_score": 20
},
{
"name": "Implements clearCaches",
"description": "Correctly exposes and uses the clearCaches() method from the lilconfig explorer to clear both search and load caches",
"max_score": 20
},
{
"name": "Uses search method",
"description": "Correctly uses the search() method from lilconfig explorer to search for configuration files",
"max_score": 10
},
{
"name": "Uses load method",
"description": "Correctly uses the load() method from lilconfig explorer to load specific configuration files",
"max_score": 10
},
{
"name": "Cache independence",
"description": "Demonstrates understanding that clearSearchCache() and clearLoadCache() operate independently by verifying that clearing one cache does not affect the other",
"max_score": 5
},
{
"name": "Cache identity behavior",
"description": "Correctly verifies that lilconfig returns identical object references (identity equality) for cached results when search() or load() is called multiple times without clearing caches",
"max_score": 5
}
]
}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