@ariestools/tsconfig-react

中文文档
10.2.2发布于 2026/10/31LGPL-3.0-onlyES Module零依赖近 30 天下载 2545

TypeScript config extending @ariestools/tsconfig-dom with React JSX

原始使用文档
文档目录4 节
  1. Install
  2. Usage
  3. License
  4. Credits

logo

@ariestools/tsconfig-react

npm license

TypeScript config extending @ariestools/tsconfig-dom with React JSX

Install

Requires Node.js ≥ 22. pnpm is fully supported; npm / yarn / bun are experimental.

pnpm add -D @ariestools/tsconfig-react @ariestools/tsconfig-dom @ariestools/tsconfig

Peers: @ariestools/tsconfig and @ariestools/tsconfig-dom.

Usage

{
  "extends": "@ariestools/tsconfig-react",
  "compilerOptions": {
    "outDir": "./dist"
  },
  "include": ["src"]
}

Extends @ariestools/tsconfig-dom and sets "jsx": "react-jsx".

License

LGPL-3.0-only. See LICENSE (LGPLv3) and COPYING (GPLv3, incorporated by LGPL-3).

Credits

Made with 🔥 and ❄️ by Aries Tools

版本与发布记录

@ariestools/tsconfig-react 共发布 61 个版本,首次发布于 2026/07/08;过去 12 个月发布了 61 个版本。

版本发布日期距今
10.2.2latest2026/10/317 天前
10.2.12026/10/2612 天前
10.2.02026/10/1226 天前
10.1.52026/10/1028 天前
10.1.42026/10/1029 天前
10.1.32026/10/0929 天前

关于 @ariestools/tsconfig-react 的常见问题

@ariestools/tsconfig-react 是什么?

TypeScript config extending @ariestools/tsconfig-dom with React JSX

如何安装 @ariestools/tsconfig-react?

在项目目录运行 npm install @ariestools/tsconfig-react,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:@ariestools/tsconfig(~10.2.2)、@ariestools/tsconfig-dom(~10.2.2)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@ariestools/tsconfig-react 支持 TypeScript 吗?

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

@ariestools/tsconfig-react 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@ariestools/tsconfig-react 需要什么版本的 Node.js?

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

@ariestools/tsconfig-react 可以商用吗?

@ariestools/tsconfig-react 使用 LGPL-3.0-only 许可。弱 Copyleft:作为库被调用时通常不要求开源你自己的代码,但修改库本身需以 LGPL 开源;前端打包合并后的适用边界存在不同理解。以上为概括,不构成法律意见,请以许可原文为准。

@ariestools/tsconfig-react 的下载量有多少?

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

@ariestools/tsconfig-react 还在维护吗?

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