@cloud-ru/eslint-config

中文文档
3.3.0发布于 2026/11/06ES Module近 30 天下载 3578

Config and dependencies for eslint.config.js

原始使用文档
文档目录3 节
  1. Usage
  2. Tips
  3. Usage deprecation annotation

@cloud-ru/eslint-config

Установка: npm i @cloud-ru/eslint-config

Вместе с пакетом приезжают все необходимые зависимости для работы eslint в вашем приложении.

Usage

For monorepositories:

// projectRoot/eslint.config.mjs
import monorepoEslintConfig from '@cloud-ru/eslint-config/monorepo';

// simple usage
export default monorepoEslintConfig;

// extended usage with rules
export default [
  ...monorepoEslintConfig,
  {
    files: ['packages/config-playwright/src/**/*.ts'],
    rules: {
      'react-hooks/rules-of-hooks': 'off',
    },
  },
];

Monorepo + oxfmt:

import monorepoOxfmtEslintConfig from '@cloud-ru/eslint-config/monorepo-oxfmt';

export default monorepoOxfmtEslintConfig;

For other projects:

// projectRoot/eslint.config.mjs
import baseConfig from '@cloud-ru/eslint-config';

export default baseConfig;

Tips

Usage deprecation annotation

  /**
  * @deprecated Any message
  * */
  const deprecatedConstant = 'deprecatedConstant';

  // Eslint: 'deprecatedConstant' is deprecated. Any message ('deprecation/deprecation')
  deprecatedConstant

版本与发布记录

@cloud-ru/eslint-config 共发布 33 个版本,首次发布于 2023/11/21;过去 12 个月发布了 20 个版本。

版本发布日期距今
3.3.0latest2026/11/063 天前
3.2.02026/10/1327 天前
3.1.72026/08/182 个月前
3.1.7-preview-ae96ee4.0preview2026/08/182 个月前
3.1.7-preview-b329dde.02026/08/112 个月前
3.1.62026/07/014 个月前

关于 @cloud-ru/eslint-config 的常见问题

@cloud-ru/eslint-config 是什么?

Config and dependencies for eslint.config.js

如何安装 @cloud-ru/eslint-config?

在项目目录运行 npm install @cloud-ru/eslint-config,或使用 pnpm add / yarn add / bun add。

@cloud-ru/eslint-config 支持 TypeScript 吗?

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

@cloud-ru/eslint-config 支持 ESM 还是 CommonJS?

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

@cloud-ru/eslint-config 可以商用吗?

@cloud-ru/eslint-config 使用 未声明 许可。package.json 没有声明许可证。没有许可证的代码默认保留全部权利,商用前请联系作者或查看仓库中的 LICENSE 文件。以上为概括,不构成法律意见,请以许可原文为准。

@cloud-ru/eslint-config 的下载量有多少?

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

@cloud-ru/eslint-config 还在维护吗?

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