CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-snazzy

Format JavaScript Standard Style as Stylish (i.e. snazzy) output

94

1.18x
Overview
Eval results
Files

rubric.jsonevals/scenario-8/

{
  "context": "This evaluation assesses how well the engineer uses the snazzy package's programmatic API to format linter output. The focus is on proper instantiation of the CompactToStylishStream class, correct stream pipeline integration, and appropriate handling of the exitCode property.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Import snazzy correctly",
      "description": "Uses require('snazzy') to import the CompactToStylishStream class constructor",
      "max_score": 10
    },
    {
      "name": "Instantiate CompactToStylishStream",
      "description": "Creates a new instance of CompactToStylishStream using 'new CompactToStylishStream()' or equivalent constructor call",
      "max_score": 20
    },
    {
      "name": "Pipe data to stream",
      "description": "Correctly pipes or writes the linter JSON input to the CompactToStylishStream instance (e.g., using .write() method or piping from a readable stream)",
      "max_score": 20
    },
    {
      "name": "Handle stream output",
      "description": "Correctly captures the formatted output from the stream (e.g., using 'data' event listener, piping to writable stream, or reading from stream)",
      "max_score": 20
    },
    {
      "name": "Access exitCode property",
      "description": "Reads the exitCode property from the CompactToStylishStream instance (e.g., snazzy.exitCode) after stream processing completes",
      "max_score": 20
    },
    {
      "name": "Handle stream lifecycle",
      "description": "Properly handles stream end/finish events to ensure exitCode is read after stream processing completes (e.g., using 'finish' or 'end' event listeners)",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-snazzy

tile.json