# @bitfactory/stylelint-config 中文文档

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

版本：9\.0\.0
npm 元数据更新时间：2026-09-07T19:00:49.092Z
中文译文更新时间：2026-11-08T05:07:15.450Z
软件包许可：MIT

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

原始 npm 页面：https://www.npmjs.com/package/%40bitfactory/stylelint-config
原文对照：https://npmcn.com/package/%40bitfactory/stylelint-config/?lang=original
项目主页：https://github.com/Bitfactory-NL/shared-npm-stylelint-config-bitfactory#readme
源码仓库：https://github.com/Bitfactory-NL/shared-npm-stylelint-config-bitfactory

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

- 包体积（解压后）：33.6 kB，17 个文件
- 模块格式：ES Module
- TypeScript 类型：未声明
- Node.js 要求：^22\.22\.2 \|\| ^24\.15\.0
- 运行依赖：0 个
- peer 依赖：postcss ^8\.5\.6，stylelint ^17\.6\.0，postcss-html ^2\.0\.0，postcss-scss ^4\.0\.9，stylelint-scss ^7\.0\.0，stylelint-order ^7\.0\.1 \|\| ^8\.0\.0，stylelint-config-standard ^40\.0\.0，@stylistic/stylelint-config ^4\.0\.0 \|\| ^5\.0\.0，@stylistic/stylelint-plugin ^5\.0\.0，stylelint-config-standard-scss ^17\.0\.0
- 首次发布：2020-05-21T17:37:04.216Z
- 最新版本发布：2026-09-02T07:03:49.298Z
- 近 30 天下载量：2122（2026-10-08 至 2026-11-06，npm 官方下载统计）
- 已发布版本数：62（近 12 个月 16 个）

## 中文简介

Stytlint 为 Bitfactory NL (NOBEARS) 项目配置

## 安装

```sh
npm install @bitfactory/stylelint-config
```

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

## README

# @ bitfactory/ stylelint- config

[![Release](https://img.shields.io/badge/Release-9.x.x-F0ec73)](https://github.com/bitfactory-nl/shared-npm-stylelint-config-bitfactory) [![MIT license](https://img.shields.io/badge/License-MIT-blue.svg)](https://lbesson.mit-license.org/) [![Stylelint](https://img.shields.io/badge/Stylelint-%5E17.6.0-4B3263?logo=stylelint&logoColor=white)](https://stylelint.io/) [![NodeJS](https://img.shields.io/badge/Node.js-%5E22.22%7C%5E24.15-6da55f?logo=node.js)](https://nodejs.org/) [![Node.js Package](https://github.com/bitfactory-nl/shared-npm-stylelint-config-bitfactory/actions/workflows/npm-publish.yml/badge.svg)](https://github.com/bitfactory-nl/shared-npm-stylelint-config-bitfactory/actions/workflows/npm-publish.yml) [![NPM package version](https://badgen.net/npm/v/@bitfactory/stylelint-config)](https://npmjs.com/package/@bitfactory/stylelint-config)

用于Stylelint v17.6+的可共享Stylelint配置. 所有规则和配置都是预先配置的. 规则可以根据需要被推翻.

> \[大 **v6.3.0+既支持ES模块(ESM)又支持CommonJS.**
> 
> 使用 `.mjs` 用于无害环境管理或传统的配置文件 `.js`编号 :`.cjs` 用于普通JS的文件.

-   [@ bitfactory/ stylelint- config](https://npmcn.com/package/%40bitfactory/stylelint-config/#readme-bitfactorystylelint-config)
    -   [升级到 9.0.0](https://npmcn.com/package/%40bitfactory/stylelint-config/#readme-upgrading-to-900)
    -   [快速启动](https://npmcn.com/package/%40bitfactory/stylelint-config/#readme-quick-start)
    -   [捐款](https://npmcn.com/package/%40bitfactory/stylelint-config/#readme-contributing)
    -   [安装](https://npmcn.com/package/%40bitfactory/stylelint-config/#readme-installation)
    -   [配置](https://npmcn.com/package/%40bitfactory/stylelint-config/#readme-configuration)
    -   [CLI 使用量](https://npmcn.com/package/%40bitfactory/stylelint-config/#readme-cli-usage)
    -   [编辑器集成](https://npmcn.com/package/%40bitfactory/stylelint-config/#readme-editor-integration)

## 升级到 9.0.0

> \[尖叫声\] 9.0.0是一个突破性释放。 它需要节点.js `^22.22.2 || ^24.15.0`,将20号节点和22.11号降为 22.22.1 乐队 `./postcss` 现在需要进入点 `postcss-html` v2. 见 [9.0.0 移徙指南](https://npmcn.com/package/%40bitfactory/stylelint-config/docs/migration-9.0.0.md) 升级前.

## 快速启动

关于带有基本安装和配置的快速启动指南,见 [QUICKSTART.md (中文(简体) )](https://npmcn.com/package/%40bitfactory/stylelint-config/QUICKSTART.md)。 。 。 .

## 捐款

有关该项目贡献的信息,包括出版指南、本地开发设置和调试提示,参见: [捐款额](https://npmcn.com/package/%40bitfactory/stylelint-config/CONTRIBUTING.md)。 。 。 .

## 安装

详细的安装指令,包括端点依赖和语法特定设置(PostCSS,SCSS,SASS,Tailwind,Vue),参见 [安装指南](https://npmcn.com/package/%40bitfactory/stylelint-config/docs/01-installation.md)。 。 。 .

## 配置

配置示例(PostCSS、SCSS、SASS、Tailwind、Vue)和高级配置选项(定制插件、规则覆盖、禁用规则),参见 [配置指南](https://npmcn.com/package/%40bitfactory/stylelint-config/docs/02-configuration.md)。 。 。 .

## CLI 使用量

关于 CLI 使用指令和命令示例,参见 [CLI 使用指南](https://npmcn.com/package/%40bitfactory/stylelint-config/docs/03-cli-usage.md)。 。 。 .

## 编辑器集成

关于编辑器集成指令(Visual Studio Code, PhpStorm),参见 [编辑器集成指南](https://npmcn.com/package/%40bitfactory/stylelint-config/docs/04-editor-integration.md)。 。 。 .

## 常见问题

### @bitfactory/stylelint-config 是什么？

Stytlint 为 Bitfactory NL \(NOBEARS\) 项目配置

### 如何安装 @bitfactory/stylelint-config？

在项目目录运行 npm install @bitfactory/stylelint-config，或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖：postcss（^8\.5\.6）、stylelint（^17\.6\.0）、stylelint-order（^7\.0\.1 \|\| ^8\.0\.0）、stylelint-config-standard（^40\.0\.0）、@stylistic/stylelint-config（^4\.0\.0 \|\| ^5\.0\.0）、@stylistic/stylelint-plugin（^5\.0\.0）。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖，Yarn 需要手动安装。

### @bitfactory/stylelint-config 支持 TypeScript 吗？

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

### @bitfactory/stylelint-config 支持 ESM 还是 CommonJS？

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

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

package\.json 的 engines 字段要求 Node\.js ^22\.22\.2 \|\| ^24\.15\.0。版本不符时 npm 默认只给出警告，开启 engine-strict 后会拒绝安装。

### @bitfactory/stylelint-config 可以商用吗？

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

### @bitfactory/stylelint-config 的下载量有多少？

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

### @bitfactory/stylelint-config 还在维护吗？

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

