awesome-repositories.com
博客
MCP
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
benmosher avatar

benmosher/eslint-plugin-import

0
View on GitHub↗
5,922 星标·1,545 分支·JavaScript·MIT·7 次浏览

Eslint Plugin Import

eslint-plugin-import 是一个 ESLint 静态分析插件,提供了一套规则和解析器来验证 import 语句,并强制执行关于文件如何导入和导出代码的架构约束。它作为一个模块验证器和解析器,确保 import 声明指向有效文件且引用的符号存在。

该项目识别递归导入链以防止循环依赖,并利用可配置的解析系统来映射别名和非标准文件路径。它还可以通过路径和文件夹模式匹配来区分内部项目文件和外部库依赖项。

该插件涵盖了更广泛的代码质量领域,包括强制执行导入样式的排序和分组、限制特定模块系统以及验证导出可用性以防止运行时错误。它还可以根据文件夹位置限制导入源或禁止特定路径类型。

Features

  • ESLint Import Plugins - Provides an ESLint plugin that validates import names, paths, and styles using custom resolvers.
  • Import Style Enforcers - Enforces consistent import ordering, grouping, and style across the codebase.
  • Export Name Validators - Verifies that named imports match the actual exported symbols of the target module to prevent runtime errors.
  • Existence Verifications - Provides static analysis to verify that every import statement points to a file or module physically present on the filesystem.
  • JavaScript Module Validation - Checks that import paths are correct and named exports exist to prevent runtime errors in JavaScript projects.
  • Module Resolvers - Resolves module paths and maps aliases to verify that import declarations are valid.
  • Named Import Export Matchers - Matches named and default imports against actual exports of the target module to ensure availability.
  • Custom Module System Resolvers - Provides a pluggable system of resolvers to map import paths using various module system semantics.
  • Import Statement Validators - Validates that import declarations point to existing files and follow structural requirements.
  • Import Style Transformations - Enforces import ordering and grouping by transforming the abstract syntax tree based on configuration.
  • Path-Based Restrictions - Enforces architectural constraints by limiting which files can be imported based on folder location or prohibiting specific path types.
  • Circular Dependency Detectors - Scans for recursive import loops in module graphs to identify circular dependencies.
  • Module Dependency Graphs - Builds module dependency graphs to detect and prevent circular import loops.
  • Module System Restrictions - Forbids the use of specific module systems like CommonJS or AMD to maintain a consistent architectural pattern.
  • Module System Restrictions - Restricts the use of specific module formats like CommonJS to ensure a consistent architectural pattern.
  • Static Analysis AST Parsing - Parses source code into abstract syntax trees to validate the structure of import and export declarations.
  • Architecture and Style Plugins - Manages ES2015+ import/export syntax and paths.

Star 历史

benmosher/eslint-plugin-import 的 Star 历史图表benmosher/eslint-plugin-import 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

Eslint Plugin Import 的开源替代方案

相似的开源项目,按与 Eslint Plugin Import 的功能重合度排序。
  • import-js/eslint-plugin-importimport-js 的头像

    import-js/eslint-plugin-import

    5,875在 GitHub 上查看↗

    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 plu

    JavaScriptcode-qualityeslinteslint-plugin
    在 GitHub 上查看↗5,875
  • luals/lua-language-serverLuaLS 的头像

    LuaLS/lua-language-server

    4,298在 GitHub 上查看↗

    lua-language-server is a static analysis tool and type checker for the Lua language that implements the Language Server Protocol. It provides a system for detecting type mismatches, unused code, and logic errors in source files. The project features an inference-based type system that deduces variable types and supports optional annotations and meta files to enforce type safety. It allows for the definition of custom types and function signatures, including support for overloads and member visibility controls. The server provides a broad set of IDE capabilities, including real-time code auto

    Luahacktoberfestlanguage-serverlpeg
    在 GitHub 上查看↗4,298
  • react/metroreact 的头像

    react/metro

    5,608在 GitHub 上查看↗

    Metro is a JavaScript bundler designed for React Native environments. It functions as a system for resolving dependencies, transforming source code, and packaging JavaScript and assets into bundles for execution. The project includes a development bundler server that hosts assets via HTTP and provides hot module replacement. It features a module resolver that handles platform-specific file extensions and a source code transformer that converts code into tree structures for optimization and minification. The toolset covers programmatic bundle generation, source map creation, and file system c

    JavaScriptbundlerjavascriptreact-native
    在 GitHub 上查看↗5,608
  • pahen/madgepahen 的头像

    pahen/madge

    10,117在 GitHub 上查看↗

    Madge is a JavaScript module dependency visualizer and architecture mapper. It analyzes source code to create graphs and diagrams of module relationships, supporting CommonJS, AMD, and ES6 standards. The tool functions as a circular dependency detector to identify recursive import loops and a dependency graph generator that exports relationship maps into image and vector formats. It provides utilities for auditing project structure, including the identification of orphaned modules and leaf modules. Its broader capabilities include dead code identification, module impact analysis through depe

    JavaScriptamdcommonjsdependencies
    在 GitHub 上查看↗10,117
查看 Eslint Plugin Import 的所有 30 个替代方案→

常见问题解答

benmosher/eslint-plugin-import 是做什么的?

eslint-plugin-import 是一个 ESLint 静态分析插件,提供了一套规则和解析器来验证 import 语句,并强制执行关于文件如何导入和导出代码的架构约束。它作为一个模块验证器和解析器,确保 import 声明指向有效文件且引用的符号存在。

benmosher/eslint-plugin-import 的主要功能有哪些?

benmosher/eslint-plugin-import 的主要功能包括:ESLint Import Plugins, Import Style Enforcers, Export Name Validators, Existence Verifications, JavaScript Module Validation, Module Resolvers, Named Import Export Matchers, Custom Module System Resolvers。

benmosher/eslint-plugin-import 有哪些开源替代品?

benmosher/eslint-plugin-import 的开源替代品包括: import-js/eslint-plugin-import — eslint-plugin-import is an ESLint plugin that validates import statements by parsing source code into an abstract… react/metro — Metro is a JavaScript bundler designed for React Native environments. It functions as a system for resolving… luals/lua-language-server — lua-language-server is a static analysis tool and type checker for the Lua language that implements the Language… pahen/madge — Madge is a JavaScript module dependency visualizer and architecture mapper. It analyzes source code to create graphs… chai2010/go-ast-book — go-ast-book is a collection of educational and technical resources focused on abstract syntax tree analysis, compiler… sverweij/dependency-cruiser — Dependency-cruiser is a JavaScript and TypeScript dependency analyzer and architectural linter. It serves as a static…