CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-lilconfig

A zero-dependency alternative to cosmiconfig for loading configuration files

89

1.21x
Overview
Eval results
Files

rubric.jsonevals/scenario-9/

{
  "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
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-lilconfig

tile.json