CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-eslint-plugin-import-x

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

80

0.96x
Overview
Eval results
Files

rubric.jsonevals/scenario-3/

{
  "context": "Evaluates how well the solution configures eslint-plugin-import-x rules to enforce ES module import/export correctness across the sample src files, catching invalid named/default imports, unresolved paths, and self-imports. Scores focus entirely on selecting and wiring the plugin's rule set to make the provided fixtures pass or fail appropriately.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Plugin wiring",
      "description": "Registers eslint-plugin-import-x in the ESLint config (flat array export) and scopes it to src/**/*.js so lint runs against both valid and invalid fixtures.",
      "max_score": 20
    },
    {
      "name": "Named checks",
      "description": "Enables the import-x/named rule (or equivalent) so linting src/invalid/bad-named.js errors on requesting a symbol not exported by src/valid/math.js while allowing the valid named imports in src/valid/index.js.",
      "max_score": 25
    },
    {
      "name": "Default checks",
      "description": "Applies the import-x/default rule so a default import of src/valid/math.js in src/invalid/bad-default.js is reported when that module only exposes named exports.",
      "max_score": 20
    },
    {
      "name": "Unresolved paths",
      "description": "Configures import-x/no-unresolved with appropriate extensions/resolver settings so src/invalid/missing-path.js fails lint because its target file cannot be resolved.",
      "max_score": 20
    },
    {
      "name": "Self imports",
      "description": "Turns on import-x/no-self-import (or the rule's alias) so src/invalid/self-cycle.js is flagged for importing itself, preventing self-referential modules.",
      "max_score": 15
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-eslint-plugin-import-x

tile.json