CtrlK
CommunityDocumentationLog inGet started
Tessl Logo

tessl/npm-eslint-plugin-import-x

tessl install tessl/npm-eslint-plugin-import-x@3.1.0

ESLint plugin providing comprehensive linting rules for ES2015+ import/export syntax with static analysis and module system enforcement.

Agent Success

Agent success rate when using this tile

80%

Improvement

Agent success rate improvement when using this tile compared to baseline

0.96x

Baseline

Agent success rate without this tile

83%

rubric.jsonevals/scenario-6/

{
  "context": "Evaluates how the solution uses eslint-plugin-import-x to enforce webpack chunk name comments on dynamic imports and return structured lint results for the provided API. Scoring prioritizes correct rule configuration, regex enforcement, and surfacing rule findings in the reported output.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Rule enabled",
      "description": "Configures ESLint with the import-x plugin and activates the `import-x/dynamic-import-chunkname` rule for the code being checked.",
      "max_score": 25
    },
    {
      "name": "Format regex",
      "description": "Sets the rule's `webpackChunknameFormat` option to a kebab-case pattern such as `^[a-z]+(?:-[a-z0-9]+)*$` so valid chunk names like \"feature-settings\" pass and malformed names fail.",
      "max_score": 25
    },
    {
      "name": "Missing comment catch",
      "description": "Relies on the rule's `leadingComment` violation to flag dynamic imports that omit a `webpackChunkName` comment, producing an error message tied to the import target.",
      "max_score": 20
    },
    {
      "name": "Import functions",
      "description": "Keeps the rule checking the actual dynamic import call sites (defaulting to `import()`), configuring the `importFunctions` option when needed so all dynamic imports in scope are validated for chunk names.",
      "max_score": 15
    },
    {
      "name": "Result reporting",
      "description": "Uses ESLint results from the `dynamic-import-chunkname` rule to populate the returned report, preserving line/column data and mentioning the offending specifier or chunk name in messages as the spec requires.",
      "max_score": 15
    }
  ]
}

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
npmpkg:npm/eslint-plugin-import-x@3.1.x
tile.json