@freckle/prettier-config

中文文档
1.3.4发布于 2026/10/26MIT零依赖近 30 天下载 3743

Shared Prettier configuration for Freckle repositories

原始使用文档
文档目录3 节
  1. Install
  2. Use
  3. Overriding an option

@freckle/prettier-config

The shared Prettier configuration for Freckle repositories.

Install

pnpm add -D @freckle/prettier-config

prettier is a peer dependency.

Use

Point at it from package.json and delete your .prettierrc:

{
  "prettier": "@freckle/prettier-config"
}

Overriding an option

Overriding should be avoided. If you find you need it, consider changing things here.

A .prettierrc cannot extend a shared config, so an override needs a JS config:

// prettier.config.mjs
import freckle from '@freckle/prettier-config' with {type: 'json'}

export default {...freckle, printWidth: 80}

版本与发布记录

@freckle/prettier-config 共发布 7 个版本,首次发布于 2026/09/25;过去 12 个月发布了 7 个版本。

版本发布日期距今
1.3.4latest2026/10/2621 天前
1.3.32026/10/1828 天前
1.3.22026/10/111 个月前
1.3.12026/10/041 个月前
1.3.02026/10/031 个月前
1.2.02026/09/291 个月前

关于 @freckle/prettier-config 的常见问题

@freckle/prettier-config 是什么?

Shared Prettier configuration for Freckle repositories

如何安装 @freckle/prettier-config?

在项目目录运行 npm install @freckle/prettier-config,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:prettier(>= 3.9.10)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@freckle/prettier-config 支持 TypeScript 吗?

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

@freckle/prettier-config 可以商用吗?

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

@freckle/prettier-config 的下载量有多少?

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

@freckle/prettier-config 还在维护吗?

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