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-7/

{
  "context": "This criteria evaluates how well the engineer uses lilconfig's package.json property extraction capabilities. The focus is on correctly configuring and using lilconfig's packageProp option to extract configurations from nested properties in package.json files.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "lilconfig initialization",
      "description": "Uses lilconfig() function to create a configuration explorer with appropriate name parameter for package.json searching",
      "max_score": 20
    },
    {
      "name": "packageProp configuration",
      "description": "Correctly configures the packageProp option when calling lilconfig() to specify which property path to extract from package.json (supports both string and array formats)",
      "max_score": 30
    },
    {
      "name": "search() method usage",
      "description": "Uses the search() method on the explorer object to search upward through the directory tree for package.json files containing the specified property",
      "max_score": 20
    },
    {
      "name": "load() method usage",
      "description": "Uses the load() method on the explorer object to load a specific package.json file and extract the configuration property from it",
      "max_score": 20
    },
    {
      "name": "Result handling",
      "description": "Correctly handles the result object structure returned by lilconfig (accessing config and filepath properties, handling null results)",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-lilconfig

tile.json