A zero-dependency alternative to cosmiconfig for loading configuration files
89
Pending
Does it follow best practices?
Impact
89%
1.21xAverage score across 10 eval scenarios
Pending
The risk profile of this skill
{
"context": "This criteria evaluates how well the engineer uses the lilconfig package to load configuration files from specified file paths. The focus is on proper usage of lilconfig's load() method and explorer creation API.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Creates explorer instance",
"description": "Uses lilconfig() to create an explorer instance (e.g., const explorer = lilconfig('appname'))",
"max_score": 20
},
{
"name": "Uses load method",
"description": "Correctly uses the explorer's load() method to load configuration from a specific file path",
"max_score": 30
},
{
"name": "Handles async operations",
"description": "Properly handles the Promise returned by load() method using async/await or .then()",
"max_score": 15
},
{
"name": "Processes result object",
"description": "Correctly accesses the config and filepath properties from the result object returned by load()",
"max_score": 20
},
{
"name": "Handles null results",
"description": "Properly checks for and handles null return value when file is not found",
"max_score": 10
},
{
"name": "Error validation",
"description": "Validates input filepath and throws appropriate errors for invalid inputs (e.g., empty string)",
"max_score": 5
}
]
}docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10