Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

un-ts/eslint-plugin-import-x

说明与用途

**项目简介**
un-ts/eslint-plugin-import-x 是对 eslint-plugin-import 的轻量化分支,专注于提升插件的执行性能和降低体积,让代码检查更快、更省资源。

**价值**

  • **更高性能**:在大型项目中显著缩短 lint 检查时间,提升 CI/CD 效率。
  • **轻量体积**:减少依赖体积,降低构建产物大小,对前端/Node 项目尤为友好。
  • **兼容原插件 API**:几乎零学习成本,可直接替换 eslint-plugin-import,享受同样的规则集合和配置方式。

**典型接入方式**

  1. **安装**:npm i -D eslint-plugin-import-x(或 yarn add -D eslint-plugin-import-x)。
  2. **ESLint 配置**:在 .eslintrc 中将插件名改为 import-x,例如:
   {
     "plugins": ["import-x"],
     "extends": ["plugin:import-x/recommended"]
   }
  1. **可选自定义规则**:如需覆盖或禁用特定规则,直接在 rules 中使用 import-x/ 前缀进行配置。
  2. **CI 集成**:在 CI 脚本中调用 eslint .,无需额外改动,性能提升即可体现在更短的执行时间上。

**生产可用性**

  • **活跃维护**:截至 2026‑06‑23 最近一次提交,GitHub 730 ★、64 Fork,社区活跃度高。
  • **成熟度**:已在多个开源项目和企业内部使用,兼容性与原插件基本一致,风险低。
  • **安全与合规**:采用 MIT 许可证,无明显安全漏洞报告,但仍建议在正式上线前进行一次依赖审计。
  • **适配性**:支持 TypeScript、JavaScript、Node 与前端构建体系,易于在现有 ESLint 工作流中平滑迁移。

综上,un-ts/eslint-plugin-import-x 是一个高性能、轻量级且兼容性好的 ESLint 插件,适合需要提升 lint 效率的任何前端或 Node 项目,可直接在生产环境中使用。

实际用途

un-ts/eslint-plugin-import-x helps add AI capability without starting from a blank model stack.

  • prototype AI features
  • build RAG or agent workflows
  • evaluate model tooling

限制与审查说明

High for an OSS candidate: recent activity, adoption, and ecosystem signals are strong enough for a serious pilot.

  • 来源: github
  • 语言: TypeScript
  • 记录日期: 2026-09-05T17:32:19.267Z
原始来源