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

{
  "context": "This criteria evaluates how well the engineer uses lilconfig's package.json property path extraction capabilities, particularly the proper handling of null vs undefined values in property chains.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses lilconfig",
      "description": "Implementation imports and uses lilconfig (via lilconfig() or lilconfigSync()) instead of manually reading and parsing package.json files",
      "max_score": 25
    },
    {
      "name": "packageProp configuration",
      "description": "Correctly configures the packageProp option when creating the lilconfig explorer to specify the property path to extract from package.json",
      "max_score": 25
    },
    {
      "name": "Load method usage",
      "description": "Uses the load() method from the lilconfig explorer to load the specific package.json file by path",
      "max_score": 20
    },
    {
      "name": "Null vs undefined",
      "description": "Correctly handles lilconfig's behavior where null values in property chains throw errors while undefined values return null - either by catching and re-throwing the error or by letting lilconfig's native error propagate",
      "max_score": 30
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-lilconfig

tile.json