Format JavaScript Standard Style as Stylish (i.e. snazzy) output
94
{
"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-snazzydocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10