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

{
  "context": "This criteria evaluates how well the engineer uses the snazzy package to implement a command-line interface for formatting linter output. The focus is on proper usage of snazzy's CLI capabilities including stdin detection, stream processing, and exit code management.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "CompactToStylishStream instantiation",
      "description": "Creates an instance of the CompactToStylishStream class from the snazzy package (e.g., `const snazzy = new CompactToStylishStream()` or `const CompactToStylishStream = require('snazzy')`)",
      "max_score": 20
    },
    {
      "name": "Stdin detection",
      "description": "Implements automatic stdin detection using `process.stdin.isTTY` or checks for explicit stdin flags (`--stdin` or `-`) using argument parsing (e.g., minimist)",
      "max_score": 15
    },
    {
      "name": "Stream piping",
      "description": "Properly pipes process.stdin through the snazzy transform stream to process.stdout (e.g., `process.stdin.pipe(snazzy).pipe(process.stdout)`)",
      "max_score": 25
    },
    {
      "name": "Exit code propagation",
      "description": "Sets process exit code based on snazzy's exitCode property, typically using `process.on('exit')` handler to check `snazzy.exitCode` and set `process.exitCode` appropriately",
      "max_score": 25
    },
    {
      "name": "Usage message display",
      "description": "Displays helpful error or usage message when the tool is run without piped input (when stdin is a TTY and no explicit stdin flag is provided)",
      "max_score": 15
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-snazzy

tile.json