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%

task.mdevals/scenario-5/

Unused Export Linting Setup

Configure a linting setup that flags modules in the project which either expose no exports or expose exports that are never consumed elsewhere, while allowing intentional ignores for utility areas.

Capabilities

Detect unused or missing exports in source

  • Linting the project reports an error for a source module under src/ that has no exports or whose exports are never imported anywhere else in the project. @test

Respect ignore boundaries

  • Modules inside src/__mocks__/ and any file ending with .stories.tsx are ignored by the unused-export checks even if they have no consumers. @test

Allow legitimately used exports

  • When a module's exports are actually imported from another module (including through a re-export aggregator), the unused-export lint check passes without errors. @test

Implementation

@generates

  • Provide an ESLint flat config that enables project-wide unused export detection for JavaScript and TypeScript files within src/**/*.{js,ts,tsx}.
  • Ensure the configuration errors on both missing exports and unused exports, and ignores the specified mock and story files.

Dependencies { .dependencies }

eslint-plugin-import-x { .dependency }

Provides import/export linting with project-wide unused export detection.

Version

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