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

{
  "context": "Evaluates whether the ESLint flat config uses eslint-plugin-import-x to enforce the specified import grouping, alias handling, alphabetical ordering, and side-effect/type placement.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Rule enabled",
      "description": "Config registers eslint-plugin-import-x in the flat config and turns on the import-x/order rule for JS/TS files.",
      "max_score": 20
    },
    {
      "name": "Group order",
      "description": "import-x/order is configured with groups ordering side-effect, builtin, external, internal, parent, sibling, index and uses newlines-between \"always\" so lint passes when groups follow that sequence.",
      "max_score": 25
    },
    {
      "name": "Alias pathGroup",
      "description": "Rule uses pathGroups to place @app/** as an internal group between external and parent/sibling imports (with pathGroupsExcludedImportTypes set to avoid treating it as external/builtin) and auto-fixes when misgrouped.",
      "max_score": 20
    },
    {
      "name": "Alphabetize",
      "description": "Alphabetize option is set on import-x/order with order \"asc\" and caseInsensitive true, sorting module specifiers within each group.",
      "max_score": 20
    },
    {
      "name": "Side-effect & types",
      "description": "warnOnUnassignedImports flags side-effect-only imports placed after other groups, and distinctGroup/type ordering places type-only imports after value imports while keeping alphabetical order.",
      "max_score": 15
    }
  ]
}

Install with Tessl CLI

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

tile.json