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