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

ESLint Preset Configurator

Builds ESLint configuration outputs that rely on the package's bundled presets for both legacy .eslintrc and flat config formats, letting teams toggle strictness and environment flavors without re-declaring rule lists.

Capabilities

Legacy config assembly

  • Given options specifying strictness and frameworks, returns a legacy config object whose extends stack starts with the package's recommended preset and layers optional strict/error emphasis and environment presets without duplicating entries. @test
  • When TypeScript is enabled, the legacy config includes the package's TypeScript preset and merges parser options/resolver extensions for TypeScript without discarding existing settings. @test

Flat config assembly

  • Produces a flat config array that registers the plugin once and composes the package's flat recommended preset with requested environment presets while keeping rule overrides separate from shared settings. @test

Preset toggles

  • A warningsOnly flag switches the chosen package preset from strict/errors to the warnings-focused preset while preserving applied environment presets across both legacy and flat outputs. @test

Implementation

@generates

API

export type Mode = 'legacy' | 'flat';

export interface ConfigOptions {
  mode: Mode;
  typescript?: boolean;
  react?: boolean;
  warningsOnly?: boolean;
}

export function buildConfig(options: ConfigOptions): object;

Dependencies { .dependencies }

eslint-plugin-import-x { .dependency }

Provides the package presets for legacy .eslintrc and flat config formats that power the assembled configurations.

@satisfied-by

Version

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