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-4/

{
  "context": "Evaluates whether the ESLint flat config uses eslint-plugin-import-x to enforce ES module-only guardrails by blocking legacy module systems, dynamic loaders, and ambiguous files in a browser-focused codebase.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "CommonJS ban",
      "description": "Config enables import-x/no-commonjs at error level so files using require() or module.exports are rejected and only ES module syntax passes.",
      "max_score": 25
    },
    {
      "name": "AMD ban",
      "description": "Config enables import-x/no-amd to flag define/require AMD wrappers and ensures AMD-wrapped files fail while equivalent ES module files pass.",
      "max_score": 20
    },
    {
      "name": "Dynamic loader block",
      "description": "Config uses import-x/no-dynamic-require and import-x/no-webpack-loader-syntax (or equivalent settings) to error on interpolated require() specifiers and loader-prefixed imports, while allowing static module specifiers.",
      "max_score": 25
    },
    {
      "name": "Unambiguous modules",
      "description": "Config enables import-x/unambiguous (or equivalent unambiguous-module setting) so files without import/export syntax are reported as ambiguous and ESM files with imports/exports pass cleanly.",
      "max_score": 20
    },
    {
      "name": "Plugin wiring",
      "description": "eslint-plugin-import-x is registered in the flat config (plugin entry plus rule namespaced as import-x/*) with the module guardrail rules applied to the target files without being disabled or downgraded.",
      "max_score": 10
    }
  ]
}

Version

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