@elaraai/tsserver-plugin-east

中文文档
1.0.107发布于 2026/11/13AGPL-3.0-or-laterCommonJS零依赖构建来源已验证近 30 天下载 3279

TypeScript language service plugin for East — East idiom diagnostics and localized East type-diff error messages as native editor squiggles.

原始使用文档
文档目录4 节
  1. Features
  2. Usage
  3. Claude Code plugin
  4. License

tsserver-plugin-east

East diagnostics as a TypeScript language service plugin

License Node Version

tsserver-plugin-east rides inside the editor's existing TypeScript language service and surfaces @elaraai/east-diagnostics as native squiggles — no second type-checker, no ESLint setup required.

Features

  • East idiom diagnostics - the full east-diagnostics rule set (prefer some()/none, no hand-rolled variants, redundant casts, unexecuted East expressions, prefer JSX tags, …) reported alongside TypeScript's own diagnostics.
  • Readable East type errors - native assignability errors on East types are rewritten via east's structural type diff, so a mismatch deep inside a recursive type reads as one localized line instead of pages of restated generics.
  • In-process - decorates the language service the editor already runs; no extra server or program build.
  • Self-contained - a single CommonJS bundle; only typescript is expected from the host.

Usage

Add the plugin to compilerOptions in tsconfig.json and install it as a dev dependency:

{
  "compilerOptions": {
    "plugins": [{ "name": "@elaraai/tsserver-plugin-east" }]
  }
}
npm install --save-dev @elaraai/tsserver-plugin-east

In VS Code, tsconfig-configured plugins load when the workspace TypeScript version is selected ("TypeScript: Select TypeScript Version…").

Projects scaffolded with npm create @elaraai/e3 / npm create @elaraai/east ship with the plugin preconfigured, alongside @elaraai/eslint-plugin-east for the same rules in CI.

Claude Code plugin

The East ecosystem also ships a Claude Code plugin — East language skills, example search, and preemptive diagnostics for East code — installed separately from the elaraai marketplace:

# Inside Claude Code
/plugin marketplace add elaraai/east-workspace
/plugin install east@elaraai
# From a terminal
claude plugin marketplace add elaraai/east-workspace
claude plugin install east@elaraai

License

Dual-licensed:


Developed by Elara AI Pty Ltd

版本与发布记录

@elaraai/tsserver-plugin-east 共发布 104 个版本,首次发布于 2026/06/10;过去 12 个月发布了 104 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
1.0.107latest2026/11/13今天
1.0.1062026/11/094 天前
1.0.1052026/11/085 天前
1.0.1042026/11/067 天前
1.0.1032026/11/049 天前
1.0.1022026/11/0310 天前

关于 @elaraai/tsserver-plugin-east 的常见问题

@elaraai/tsserver-plugin-east 是什么?

TypeScript language service plugin for East — East idiom diagnostics and localized East type-diff error messages as native editor squiggles.

如何安装 @elaraai/tsserver-plugin-east?

在项目目录运行 npm install @elaraai/tsserver-plugin-east,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:typescript(>=5.0.0 <7)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@elaraai/tsserver-plugin-east 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/elaraai__tsserver-plugin-east 是否存在。

@elaraai/tsserver-plugin-east 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@elaraai/tsserver-plugin-east 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=22.0.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@elaraai/tsserver-plugin-east 可以商用吗?

@elaraai/tsserver-plugin-east 使用 AGPL-3.0-or-later 许可。最严格的 Copyleft:除分发外,通过网络向用户提供基于它的服务也需要开源对应源码。闭源 SaaS 使用前务必评估。以上为概括,不构成法律意见,请以许可原文为准。

@elaraai/tsserver-plugin-east 的下载量有多少?

根据 npm 官方下载统计,@elaraai/tsserver-plugin-east 在 2026/10/13 – 2026/11/11 这 30 天内被下载 3,279 次,日均约 109 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@elaraai/tsserver-plugin-east 还在维护吗?

最新版本 1.0.107 发布于 2026/11/13(今天);至今共发布 104 个版本,其中过去 12 个月发布了 104 个;首次发布于 2026/06/10。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。