A zero-dependency alternative to cosmiconfig for loading configuration files
89
{
"context": "This evaluation assesses how effectively the engineer uses lilconfig's search functionality to traverse directory trees and find configuration files. The focus is on proper initialization, search execution, and handling of search results.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses lilconfig",
"description": "Imports and uses the lilconfig package (either lilconfig or lilconfigSync) rather than implementing directory traversal from scratch",
"max_score": 15
},
{
"name": "Creates explorer",
"description": "Properly calls lilconfig() or lilconfigSync() with the tool name to create an explorer instance",
"max_score": 20
},
{
"name": "Configures search places",
"description": "Configures the searchPlaces option to specify the exact configuration file names to search for in priority order",
"max_score": 20
},
{
"name": "Implements search method",
"description": "Uses the explorer's search() or searchSync() method to traverse the directory tree from the specified starting directory",
"max_score": 25
},
{
"name": "Handles search results",
"description": "Correctly processes the search result, extracting filepath and config properties when found, or handling null when not found",
"max_score": 15
},
{
"name": "Supports both APIs",
"description": "Implements both synchronous (using lilconfigSync) and asynchronous (using lilconfig) search capabilities as required by the spec",
"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