A programming language that compiles into JavaScript, offering more concise and readable syntax while maintaining full JavaScript compatibility.
77
{
"context": "This criteria evaluates how well the engineer uses CoffeeScript's module system support, specifically the compile() method with ES6 import/export syntax. The focus is on proper usage of the CoffeeScript.compile() API and understanding how ES6 modules trigger automatic bare mode compilation.",
"type": "weighted_checklist",
"checklist": [
{
"name": "CoffeeScript.compile usage",
"description": "Uses CoffeeScript.compile() method to compile CoffeeScript source code to JavaScript",
"max_score": 25
},
{
"name": "Import preservation",
"description": "Correctly verifies that ES6 import statements (both named and default imports) are preserved in the compiled JavaScript output",
"max_score": 20
},
{
"name": "Export preservation",
"description": "Correctly verifies that ES6 export statements (both named and default exports) are preserved in the compiled JavaScript output",
"max_score": 20
},
{
"name": "Bare mode detection",
"description": "Correctly detects that compiled output with ES6 modules does not contain a top-level function wrapper (bare mode is automatically activated)",
"max_score": 20
},
{
"name": "Compilation options",
"description": "Understands and uses appropriate compilation options if needed, demonstrating awareness of CoffeeScript.compile() API configuration",
"max_score": 15
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-coffeescriptevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10