1 个仓库
Analysis of paths and patterns to distinguish between local project files and external dependencies.
Distinct from Leaf Module Identification: Identifies the source (local vs external) rather than identifying terminal leaf nodes in a graph.
Explore 1 awesome GitHub repository matching software engineering & architecture · Module Origin Identification. Refine with filters or upvote what's useful.
eslint-plugin-import 是一个 ESLint 静态分析插件,提供了一套规则和解析器来验证 import 语句,并强制执行关于文件如何导入和导出代码的架构约束。它作为一个模块验证器和解析器,确保 import 声明指向有效文件且引用的符号存在。 该项目识别递归导入链以防止循环依赖,并利用可配置的解析系统来映射别名和非标准文件路径。它还可以通过路径和文件夹模式匹配来区分内部项目文件和外部库依赖项。 该插件涵盖了更广泛的代码质量领域,包括强制执行导入样式的排序和分组、限制特定模块系统以及验证导出可用性以防止运行时错误。它还可以根据文件夹位置限制导入源或禁止特定路径类型。
Determines if a module is a local project file or an external dependency using path pattern matching.