CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-babel--plugin-syntax-class-properties

Babel syntax plugin that enables parsing of class properties, private properties, and private methods

94

1.04x
Overview
Eval results
Files

rubric.jsonevals/scenario-1/

{
  "context": "Evaluates whether Babel is configured to parse private class fields and methods using @babel/plugin-syntax-class-properties without performing any transformations. Checks that the syntax plugin is registered in @babel/core usage and that it covers both private fields and methods while keeping the process syntax-only.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Syntax plugin",
      "description": "Babel options include @babel/plugin-syntax-class-properties (e.g., in the plugins array passed to @babel/core) so class field syntax is enabled during parsing.",
      "max_score": 40
    },
    {
      "name": "Private fields",
      "description": "Configuration ensures @babel/plugin-syntax-class-properties activates parsing for instance and static private fields (classPrivateProperties) so snippets with #count or #registry fields parse successfully.",
      "max_score": 25
    },
    {
      "name": "Private methods",
      "description": "Configuration ensures the plugin enables classPrivateMethods parsing so private methods like #inc() and static #touch() are accepted without syntax errors.",
      "max_score": 20
    },
    {
      "name": "Syntax only",
      "description": "Use of @babel/plugin-syntax-class-properties is limited to parsing; no transform plugins are applied and outputs remain unaltered aside from AST production (no class-features transforms).",
      "max_score": 15
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-babel--plugin-syntax-class-properties

tile.json