awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
import-js avatar

import-js/eslint-plugin-import

0
View on GitHub↗
5,875 stars·1,538 forks·JavaScript·mit·20 views

Eslint Plugin Import

eslint-plugin-import is an ESLint plugin that validates import statements by parsing source code into an abstract syntax tree and applying configurable rules. It verifies that named imports match the actual exports of target modules and checks that import paths reference existing files on disk, catching typos and broken references before runtime.

The plugin enforces consistent import style through rules for ordering, duplicate detection, and unused import removal. It extends beyond the default Node resolver by supporting custom module systems like Webpack, TypeScript, and Meteor through a plugin-architecture resolver that delegates resolution to external plugins.

The tool processes imports through a pipeline of user-configurable rules that can be enabled, disabled, or customized, and matches named imports against module exports by analyzing export declarations. It resolves import paths by checking actual file existence on disk using configurable resolvers.

Features

  • ESLint Import Plugins - Ships an ESLint plugin that enforces import style rules, validates import names and paths, and resolves imports with custom module systems.
  • Import Style Enforcers - Enforces consistent import ordering, grouping, and removal of unused or duplicate imports across JavaScript or TypeScript codebases.
  • Import Style Linters - Enforces configurable rules for import ordering, duplicate detection, and unused import removal to maintain consistent style.
  • Export Name Validators - Verifies that named imports match the actual exports of target modules, catching typos and mismatches before runtime.
  • Named Import Export Matchers - Matches named imports against target module exports by analyzing export declarations to catch typos and mismatches.
  • File Existence Checkers - Checks that every import path references an actual file on disk, preventing broken module references before runtime.
  • Import Statement Validators - Parses JavaScript source into ASTs to validate that import names match module exports and paths reference existing files.
  • File Path Existence Validators - Checks that every import statement references a file that exists on disk, preventing broken module references.
  • Import Name and Path Validators - Verifies that named imports match exported names and checks that import paths reference existing files on disk.
  • Import Lint Rule Pipelines - Processes import statements through a configurable pipeline of lint rules that users can enable, disable, or customize.
  • Import Lint Rule Engines - Applies configurable lint rules to import statements by parsing and analyzing the abstract syntax tree.
  • Non-Node - Resolves import paths using Webpack, TypeScript, and Meteor module systems instead of the default Node resolver.
  • Custom Module System Resolvers - Resolves import paths using Webpack, TypeScript, and Meteor module systems instead of the default Node resolver.
  • Module Resolution Delegators - Delegates module resolution to external plugins like Webpack, TypeScript, and Meteor for custom import path handling.

Star history

Star history chart for import-js/eslint-plugin-importStar history chart for import-js/eslint-plugin-import

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Frequently asked questions

What does import-js/eslint-plugin-import do?

eslint-plugin-import is an ESLint plugin that validates import statements by parsing source code into an abstract syntax tree and applying configurable rules. It verifies that named imports match the actual exports of target modules and checks that import paths reference existing files on disk, catching typos and broken references before runtime.

What are the main features of import-js/eslint-plugin-import?

The main features of import-js/eslint-plugin-import are: ESLint Import Plugins, Import Style Enforcers, Import Style Linters, Export Name Validators, Named Import Export Matchers, File Existence Checkers, Import Statement Validators, File Path Existence Validators.

Which projects share features with import-js/eslint-plugin-import?

Projects with overlapping indexed features include: benmosher/eslint-plugin-import — eslint-plugin-import is an ESLint static analysis plugin that provides a suite of rules and resolvers to validate… sindresorhus/eslint-plugin-unicorn — eslint-plugin-unicorn is an ESLint plugin that provides a large set of opinionated lint rules for JavaScript and… chai2010/go-ast-book — go-ast-book is a collection of educational and technical resources focused on abstract syntax tree analysis, compiler… dsherret/ts-morph — ts-morph is a TypeScript AST manipulation library and a high-level wrapper for the TypeScript compiler API. It…

Projects sharing features with Eslint Plugin Import

These projects share indexed features with Eslint Plugin Import. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • benmosher/eslint-plugin-importbenmosher avatar

    benmosher/eslint-plugin-import

    5,922View on GitHub↗

    eslint-plugin-import is an ESLint static analysis plugin that provides a suite of rules and resolvers to validate import statements and enforce architectural constraints on how files import and export code. It functions as a module validator and resolver to ensure that import declarations point to valid files and that referenced symbols exist. The project identifies recursive import chains to prevent circular dependencies and utilizes a configurable resolution system to map aliases and non-standard file paths. It can also distinguish between internal project files and external library depende

    JavaScript
    View on GitHub↗5,922
  • sindresorhus/eslint-plugin-unicornsindresorhus avatar

    sindresorhus/eslint-plugin-unicorn

    4,931View on GitHub↗

    eslint-plugin-unicorn is an ESLint plugin that provides a large set of opinionated lint rules for JavaScript and TypeScript projects. Its primary purpose is to enforce code quality, prevent common errors and anti-patterns, and promote a consistent coding style across a codebase. The plugin distinguishes itself by offering an opinionated preset configuration that imposes a specific coding style rather than leaving all choices to the user. Its rules are specifically designed to catch logical mistakes and code smells that go beyond standard ESLint rules. As an added capability, the plugin also e

    JavaScripteslinteslint-configeslint-plugin
    View on GitHub↗4,931
  • chai2010/go-ast-bookchai2010 avatar

    chai2010/go-ast-book

    5,510View on GitHub↗

    go-ast-book is a collection of educational and technical resources focused on abstract syntax tree analysis, compiler development, and static code verification. It provides guides and manuals for parsing, traversing, and analyzing Go source code to extract semantic meaning. The project serves as a reference for building compiler frontends, covering the translation of high-level code into intermediate representations and single static assignment forms. It also provides instructions for using these techniques to develop language tooling and perform static code analysis. The resources cover a b

    Go
    View on GitHub↗5,510
  • dsherret/ts-morphdsherret avatar

    dsherret/ts-morph

    6,110View on GitHub↗

    ts-morph is a TypeScript AST manipulation library and a high-level wrapper for the TypeScript compiler API. It provides a programmatic interface for analyzing, modifying, and generating TypeScript source code, serving as a tool for automated code refactoring and source code generation. The library simplifies the process of navigating and inspecting project structures by offering an object-oriented abstraction over the underlying compiler API. It allows for the programmatic transformation of existing codebases to automate structural updates and bulk code migrations. Its capabilities cover sta

    TypeScript
    View on GitHub↗6,110