@bitfactory/stylelint-config

中文文档
9.0.0发布于 2026/09/02MITES Module零依赖近 30 天下载 2122

Stylelint sharable config for Bitfactory NL (part of NOBEARS) projects

原始使用文档
文档目录7 节
  1. Upgrading to 9.0.0
  2. Quick Start
  3. Contributing
  4. Installation
  5. Configuration
  6. CLI Usage
  7. Editor Integration

@bitfactory/stylelint-config

Release MIT license Stylelint NodeJS Node.js Package NPM package version

Shareable Stylelint config for Stylelint v17.6+. All rules and configurations are pre-configured. Rules can be overridden as needed.

[!IMPORTANT] v6.3.0+ supports both ES modules (ESM) and CommonJS.

Use .mjs config files for ESM or traditional .js/.cjs files for CommonJS.

Upgrading to 9.0.0

[!WARNING] 9.0.0 is a breaking release. It requires Node.js ^22.22.2 || ^24.15.0, dropping Node 20 and the 22.11 to 22.22.1 band, and the ./postcss entrypoint now requires postcss-html v2. See the 9.0.0 migration guide before upgrading.

Quick Start

For a quick start guide with basic installation and configuration, see QUICKSTART.md.

Contributing

For information about contributing to this project, including publishing guidelines, local development setup, and debugging tips, see CONTRIBUTING.md.

Installation

For detailed installation instructions including peer dependencies and syntax-specific setup (PostCSS, SCSS, SASS, Tailwind, Vue), see Installation Guide.

Configuration

For configuration examples (PostCSS, SCSS, SASS, Tailwind, Vue) and advanced configuration options (custom plugins, rule overrides, disabling rules), see Configuration Guide.

CLI Usage

For CLI usage instructions and command examples, see CLI Usage Guide.

Editor Integration

For editor integration instructions (Visual Studio Code, PhpStorm), see Editor Integration Guide.

版本与发布记录

@bitfactory/stylelint-config 共发布 62 个版本,首次发布于 2020/05/22;过去 12 个月发布了 16 个版本。

版本发布日期距今
9.0.0latest2026/09/022 个月前
8.0.72026/08/202 个月前
8.0.62026/08/192 个月前
8.0.52026/08/192 个月前
8.0.42026/08/063 个月前
8.0.32026/08/053 个月前

关于 @bitfactory/stylelint-config 的常见问题

@bitfactory/stylelint-config 是什么?

Stylelint sharable config for Bitfactory NL (part of NOBEARS) projects

如何安装 @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 和提交记录判断。