# @anolilab/textlint-config 中文文档

规范地址：https://npmcn.com/package/%40anolilab/textlint-config/

版本：14\.0\.0
npm 元数据更新时间：2026-10-21T20:01:09.770Z
中文译文更新时间：2026-11-06T07:22:52.992Z
软件包许可：MIT

本文由上游 README 翻译，可能存在偏差，请结合原文核对 API、命令与配置。版权与许可归原作者所有。

原始 npm 页面：https://www.npmjs.com/package/%40anolilab/textlint-config
原文对照：https://npmcn.com/package/%40anolilab/textlint-config/?lang=original
项目主页：https://anolilab.com/nodejs/packages/textlint-config
源码仓库：https://github.com/anolilab/javascript-style-guide

## 关键信息（来自 npm 元数据）

- 包体积（解压后）：60.3 kB，4 个文件
- 模块格式：ES Module
- TypeScript 类型：未声明
- Node.js 要求：\>=22\.12\.0 \<=25\.\*
- 运行依赖：21 个
- peer 依赖：textlint 15\.8\.0
- 首次发布：2021-02-15T12:22:22.702Z
- 最新版本发布：2026-10-21T20:01:09.275Z
- 近 30 天下载量：4196（2026-10-06 至 2026-11-04，npm 官方下载统计）
- 已发布版本数：88（近 12 个月 20 个）

## 中文简介

Anolilab 文本折叠的编码标准.

## 安装

```sh
npm install @anolilab/textlint-config
```

也可以使用：`pnpm add @anolilab/textlint-config`、`yarn add @anolilab/textlint-config`、`bun add @anolilab/textlint-config`

## README

[![textlint-config](https://npmcn.com/package/%40anolilab/textlint-config/__assets__/package-og.svg)](https://github.com/anolilab/semantic-release)

### Anolilab 文本折叠的编码标准.

  

[![typescript-image](https://img.shields.io/badge/Typescript-294E80.svg?style=for-the-badge&logo=typescript)](https://www.typescriptlang.org/) [![mit licence](https://img.shields.io/npm/l/@anolilab/textlint-config?style=for-the-badge)](https://github.com/anolilab/javascript-style-guide/blob/main/LICENSE) [![npm downloads](https://img.shields.io/npm/dm/@anolilab/textlint-config?style=for-the-badge)](https://www.npmjs.com/package/@anolilab/textlint-config) [![Chat](https://img.shields.io/discord/902465130518949899.svg?style=for-the-badge)](https://discord.com/invite/4VuvwWGaaB) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=for-the-badge)](https://github.com/anolilab/javascript-style-guide/blob/main/.github/CONTRIBUTING.md)

* * *

Daniel Bannert的开源工作得到了社区的支持 [GitHub 赞助商](https://github.com/sponsors/prisis)

* * *

## 安装

```sh
npm install @anolilab/textlint-config
```

```sh
yarn add @anolilab/textlint-config
```

```sh
pnpm add @anolilab/textlint-config
```

## 使用量

如果你没有 `.textlintrc` 或支持的其他文件名和 `.textlintignore`,我们可以在安装后为您创建文件 `@anolilab/textlint-config`电话 `pnpm textlint-config:install`。 。 。 .

> 注意: 如果脚本检测到已有的 `.textlintrc` 或者说 `.textlintignore` 文件,它不会覆盖它.

如果你已经有一个 `.textlintrc`,然后可以扩展 `.textlintrc`,与 `@anolilab/textlint-config`。 。 。 .

```json5
{
    "@textlint/markdown": {
        "extensions": [".md", ".mdx"]
    },
    "filters": {
        "comments": true
    },
    "rules": {
        "en-capitalization": true,
        "footnote-order": true,
        "no-todo": true,
        "no-dead-link": {
            "ignore": ["bc_data_*"]
        },
        "no-empty-section": true,
        "terminology": true,
        "apostrophe": true,
        "diacritics": true,
        "@textlint-rule/no-invalid-control-character": true,
        "@textlint-rule/no-unmatched-pair": true,
        "abbr-within-parentheses": true,
        "alex": {
            "allow": ["period", "european", "failure", "fore", "attack", "execution", "executed", "remain", "execute"]
        },
        "@textlint-rule/preset-google": true,
        "write-good": {
            "passive": false,
            "eprime": false
        },
        "common-misspellings": true,
        "terminology": {
            "defaultTerms": false,
            "terms": [
                // Abbreviations
                "API",
                ["API['']?s", "APIs"],
                "Ajax",
                "CLI",
                "CSS",
                "CORS",
                ["^E2E", "E2E"],
                "gif",
                ["^HTML", "HTML"],
                ["^URL(s?)", "URL$1"],
                ["^HTTP", "HTTP"],
                ["^HTTPS", "HTTPS"],
                "SSO",
                ["^XHR(s?)", "XHR$1"],
                ["^XHR['']?s", "XHRs"],
                "Xvfb",
                "YAML",

                // Words and phrases
                ["\\(s\\)he", "they"],
                ["he or she", "they"],
                ["he/she", "they"],
                ["crazy", "complex"],
                ["crazier", "more complex"],
                ["craziest", "most complex"],
                ["dumb", "unintended"],
                ["insane", "outrageous"],

                // Prefer American spelling
                ["behaviour", "behavior"],
                ["cancelled", "canceled"],
                ["cancelling", "canceling"],
                ["centre", "center"],
                ["colour", "color"],
                ["customise", "customize"],
                ["customisation", "customization"],
                ["favourite", "favorite"],
                ["labelled", "labeled"],
                ["licence", "license"],
                ["organise", "organize"],

                // Common misspellings
                ["gaurantee", "guarantee"],

                // Words we would like to not use altogether
                ["simply", ""],

                // Single word
                ["change[- ]log(s?)", "changelog$1"],
                ["code[- ]base(es?)", "codebase$1"],
                ["e[- ]mail(s?)", "email$1"],
                ["end[- ]point(s?)", "endpoint$1"],
                ["file[- ]name(s?)", "filename$1"],
                ["can[- ]not", "cannot$1"],

                // Multiple words
                ["back-?end(s?)", "back end$1"],
                ["front-?end(s?)", "front end$1"],
                ["full-?stack(s?)", "full stack$1"],
                ["open-?source(ed?)", "open source$1"],
                ["web-?page(s?)", "web page$1"],

                // Hyphenated
                ["end ?to ?end", "end-to-end"],
                ["retryability", "retry-ability"],
                ["retriability", "retry-ability"],

                ["some", ""],
                ["filetype", "file type"],
                ["stylesheet", "style sheet"],
                ["like this", ""],
                ["probably", ""],
                ["known as", ""],
                ["really", ""],
                ["just", ""],
                ["simple", ""],
                ["obvious", ""],
                ["straightforward", ""],
                ["very", ""],
                ["a little", ""],
                ["note that", ""],
                ["good to note", ""],
                ["good to remember", ""],
                ["basically", ""],
                ["actually", ""],
                ["pretty", ""],
                ["easy", ""],
                ["interesting", ""],
                ["way to", ""],
                ["In order to", "To"],
                ["in order to", "to"],
                ["might", ""],
                ["us", ""],
                ["I'll", ""],
                ["I've", ""],
                ["they'll", ""],
                ["it is", "it's"],
                ["It is", "It's"]
            ]
        }
    }
}
```

## 相关

## 支持的节点.js版本

这一生态系统中的图书馆尽最大努力追踪 [Node.js的释放时间表](https://github.com/nodejs/release#release-schedule)。 。 。 .

这里 [关于为什么我们认为这很重要的文章](https://medium.com/the-node-js-collection/maintainers-should-consider-following-node-js-release-schedule-ab08ed4de71a)。 。 。 .

## 捐款

如果你愿意帮忙看看 [问题清单](https://github.com/anolilab/javascript-style-guide/issues) 看看我们 [捐款](https://npmcn.com/package/%40anolilab/textlint-config/.github/CONTRIBUTING.md) 准则.

> **说明:** 请注意,该项目已连同《协助者行为守则》一起公布。 通过参加这个项目,你同意遵守其条款.

## 贷项

-   [丹尼尔·班纳特](https://github.com/prisis)
    
-   [所有贡献者](https://github.com/anolilab/javascript-style-guide/graphs/contributors)
    

## 在阿诺利拉布制造的

这是一个开源项目,将永远可以自由使用。 如果你觉得很酷. [阿诺利拉布](https://anolilab.com/open-source) 是一个开发与AI工作室。 联系时间: [你好@anolilab.com](mailto:hello@anolilab.com) 如果你需要帮助 这些技术 或者想打个招呼!

## 许可证

Anolilab textlint-config是开源软件,根据该软件许可 [麻省理工学院](https://opensource.org/licenses/MIT)

## 常见问题

### @anolilab/textlint-config 是什么？

Anolilab 文本折叠的编码标准\.

### 如何安装 @anolilab/textlint-config？

在项目目录运行 npm install @anolilab/textlint-config，或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖：textlint（15\.8\.0）。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖，Yarn 需要手动安装。

### @anolilab/textlint-config 支持 TypeScript 吗？

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

### @anolilab/textlint-config 支持 ESM 还是 CommonJS？

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

### @anolilab/textlint-config 需要什么版本的 Node\.js？

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

### @anolilab/textlint-config 可以商用吗？

@anolilab/textlint-config 使用 MIT 许可。宽松许可：允许商业使用、修改和再分发，通常只需在分发时保留原版权与许可声明。以上为概括，不构成法律意见，请以许可原文为准。

### @anolilab/textlint-config 的下载量有多少？

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

### @anolilab/textlint-config 还在维护吗？

最新版本 14\.0\.0 发布于 2026/10/22（17 天前）；至今共发布 88 个版本，其中过去 12 个月发布了 20 个；首次发布于 2021/02/15。发布频率只是参考信号：功能稳定的工具可能很少需要更新，建议结合源码仓库的 issue 和提交记录判断。

