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

{
  "context": "This criteria evaluates how well the engineer uses lilconfig's caching capabilities to implement configuration search benchmarking and cache control functionality. The focus is on proper usage of the cache option, cache clearing methods, and understanding of the two-tier cache architecture.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Import lilconfig function",
      "description": "Correctly imports the lilconfig function from the 'lilconfig' package (e.g., import { lilconfig } from 'lilconfig' or const { lilconfig } = require('lilconfig'))",
      "max_score": 10
    },
    {
      "name": "Cache option usage",
      "description": "Uses the cache option when creating explorer instances, passing { cache: true } or { cache: false } as appropriate in the options object to lilconfig(moduleName, options)",
      "max_score": 25
    },
    {
      "name": "Multiple explorer instances",
      "description": "Creates separate explorer instances for different cache configurations by calling lilconfig() multiple times with different options, rather than reusing a single explorer",
      "max_score": 15
    },
    {
      "name": "Search method usage",
      "description": "Calls the search() method on explorer instances, properly awaiting the promise and handling the result which contains filepath and config properties",
      "max_score": 15
    },
    {
      "name": "Cache clearing methods",
      "description": "Uses cache clearing methods from the explorer instance, specifically calling clearCaches() or clearSearchCache() to reset the cache state",
      "max_score": 20
    },
    {
      "name": "Timing measurements",
      "description": "Implements performance timing by capturing timestamps before and after search() calls to measure the performance impact of caching",
      "max_score": 10
    },
    {
      "name": "Result structure handling",
      "description": "Correctly accesses properties from the search result object, including filepath and config, understanding that the result can be null if no config is found",
      "max_score": 5
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-lilconfig

tile.json