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

{
  "context": "This criteria evaluates how well the engineer uses the text-table and strip-ansi packages to implement a table formatting function with proper column alignment and ANSI escape sequence handling.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses text-table",
      "description": "Imports and uses the text-table package to format the array of rows into an aligned table structure",
      "max_score": 30
    },
    {
      "name": "Configures alignment",
      "description": "Passes an alignment configuration to text-table using the align option (e.g., align: ['', 'r', 'l']) to control column alignment as specified in requirements",
      "max_score": 25
    },
    {
      "name": "Uses strip-ansi",
      "description": "Imports and uses the strip-ansi package to handle ANSI color codes when calculating string widths for proper column alignment",
      "max_score": 25
    },
    {
      "name": "Custom length function",
      "description": "Provides a stringLength callback function to text-table that uses strip-ansi to calculate accurate visual string lengths, ensuring colored text aligns correctly",
      "max_score": 20
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-snazzy

tile.json