ESLint plugin providing comprehensive linting rules for ES2015+ import/export syntax with static analysis and module system enforcement.
80
{
"context": "Evaluates whether the solution leans on eslint-plugin-import-x's resolution internals, specifically its cache-aware path checking utilities and ESM-friendly CommonJS bridge. Checks focus on correct use of the plugin's helpers rather than general filesystem or import logic.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Case helper",
"description": "Uses the package's case-aware resolver helper `fileExistsWithCaseSync` to validate paths instead of reimplementing path checks.",
"max_score": 30
},
{
"name": "Cache reuse",
"description": "Reuses the plugin-provided cache (`fileExistsCache` or the `ModuleCache` it wraps) so repeated path checks avoid redundant filesystem reads.",
"max_score": 20
},
{
"name": "Cache lifetime",
"description": "Propagates `cacheSettings.lifetime` (including numeric values and the `'∞'/'Infinity'` options) into the helper calls so cache expiration honors plugin semantics.",
"max_score": 15
},
{
"name": "ESM require bridge",
"description": "Loads CommonJS metadata via the exported `cjsRequire` helper (from `eslint-plugin-import-x` or `eslint-plugin-import-x/require`) rather than using `fs` reads or dynamic `import`.",
"max_score": 25
},
{
"name": "Error propagation",
"description": "Allows errors thrown by `cjsRequire` or `fileExistsWithCaseSync` to surface (or be explicitly rethrown) without wrapping them in custom error types, matching the spec's expectation.",
"max_score": 10
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-eslint-plugin-import-xdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10