Babel syntax plugin that enables parsing of class properties, private properties, and private methods
94
{
"context": "Evaluates whether the solution configures @babel/core to parse public and private class fields using @babel/plugin-syntax-class-properties while leaving the emitted code untouched. Checks focus on correct plugin wiring and requesting the right parser outputs to satisfy the spec.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Plugin registration",
"description": "Registers @babel/plugin-syntax-class-properties in the Babel plugins array (imported or referenced by name) when invoking @babel/core parsing or transforms.",
"max_score": 30
},
{
"name": "Private syntax enabled",
"description": "Ensures the plugin is used in a way that enables both classPrivateProperties and classPrivateMethods syntax so code with #fields and #methods parses without errors.",
"max_score": 25
},
{
"name": "Syntax-only usage",
"description": "Omits transform plugins such as @babel/plugin-transform-class-properties or proposal variants and keeps the configuration to syntax-only so generated code matches the input with no helper injections.",
"max_score": 25
},
{
"name": "AST and code output",
"description": "Requests both `ast` and `code` from @babel/core (e.g., via ast: true and code: true) and returns the generated code string identical to the provided source.",
"max_score": 20
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-babel--plugin-syntax-class-properties