Skip to content
PluginStats

prettier-plugin-smart weekly downloads statistics

By w3cshare (2 listings) · npm · Prettier plugins

一个智能的Prettier插件,无需配置,自动应用一致的代码格式化规则

View on npm Fresh · Dec 6, 2026

prettier-plugin-smart has 32 recorded weekly downloads on npm, an increase of 129% over the past 30 days, ranking #2878 of 3,247 tracked listings.

Weekly downloads
32
Official API · Dec 5, 2026
7-day growth
+540%
+27 weekly downloads
30-day growth
+129%
+18 weekly downloads
90-day growth
+540%
+27 weekly downloads
Rank
#2878
▲ 229 in 7 days

About prettier-plugin-smart


layout: home title: Prettier 企业级插件 description: 为企业级项目提供增强的 Prettier 代码风格统一方案 outline: deep hero: name: prettier-plugin-smart text: 智能代码格式化插件 tagline: 一致的代码风格,提升团队协作效率 actions: - theme: brand text: 快速开始 link: ./docs/快速开始 - theme: alt text: 配置指南 link: ./docs/配置指南 features:

  • icon: 🎨 title: 统一风格 details: 确保团队代码风格一致性,减少无意义的代码审查讨论
  • icon: 🔄 title: 自动集成 details: 与编辑器、Git 钩子无缝集成,确保提交代码前自动格式化
  • icon: 📐 title: 团队标准 details: 提供企业级代码风格标准,适配不同项目类型

prettier-plugin-smart

安装

# pnpm
pnpm add -D prettier prettier-plugin-smart

# npm
npm install --save-dev prettier prettier-plugin-smart

# yarn
yarn add -D prettier prettier-plugin-smart

使用方法

在项目根目录创建 .prettierrc.js 文件,并添加以下内容:

import prettierPluginSmart from 'prettier-plugin-smart'

export default {
  plugins: [prettierPluginSmart],
  ...prettierPluginSmart.defaultOptions,
}

通用配置

本插件提供了一套适用于所有子项目的通用 Prettier 配置,确保代码风格一致性。这些配置已经过实践验证,适合大多数前端项目使用。

内置的通用配置
{
  // 不使用分号
  semi: false,

  // 使用单引号
  singleQuote: true,

  // 所有可能的地方都添加尾随逗号
  trailingComma: 'all',

  // 每行最大宽度
  printWidth: 100,

  // 缩进宽度为2个空格
  tabWidth: 2,

  // 不使用制表符缩进
  useTabs: false,

  // 在对象字面量的括号之间添加空格
  bracketSpacing: true,

  // 箭头函数参数周围不添加括号
  arrowParens: 'avoid',

  // 使用 LF 作为行尾序列
  endOfLine: 'lf',
}
在子项目中复用通用配置

您可以在各个子项目中直接引用这些配置,确保整个项目组的代码风格一致:

// 子项目的 .prettierrc.js
const { defaultConfig } = require('prettier-plugin-smart')

module.exports = {
  ...defaultConfig,
  // 在这里添加或覆盖特定于项目的配置
  // 例如:
  // semi: true, // 如果希望在特定项目中使用分号
  // importOrder: '^react,^@/components/,^@/hooks/,^@/utils/,^@/,^[./]',
}

Description from the npm listing.

  • formatter
  • javascript
  • json
  • prettier
  • prettier-plugin
  • react
  • typescript
  • vue

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

prettier-plugin-smart weekly downloads on npm, last 90 days: 32 weekly downloads as of Dec 5, 2026, +540% over 90 days.prettier-plugin-smartWeekly downloads on npm · Last 90 days32downloads / week+540% over 90 days05101520253035Sep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
prettier-plugin-smart weekly downloads on npm, last 90 days: 32 weekly downloads as of Dec 5, 2026, +540% over 90 days.

7/30/90-day growth

prettier-plugin-smart weekly downloads growth on npm: +540% over 7 days, +129% over 30 days, +540% over 90 days.prettier-plugin-smartWeekly downloads growth on npm32downloads / week now7-day growth+27 weekly downloads+540%30-day growth+18 weekly downloads+129%90-day growth+27 weekly downloads+540%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
prettier-plugin-smart weekly downloads growth on npm: +540% over 7 days, +129% over 30 days, +540% over 90 days.

Ranking history

prettier-plugin-smart npm ranking history: currently #2878 (by weekly downloads).prettier-plugin-smartnpm ranking · by weekly downloads · Last 90 days#2878current rank#1800#2000#2200#2400#2600#2800#3000#3200Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 40 observations · Updated Dec 5, 2026pluginstats.com
prettier-plugin-smart npm ranking history: currently #2878 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 144, #20 (overall #2,880)
All npm: every listing in weekly downloads order

Listing placement

Prettier plugins267 listings · 14 pages · page 8, #6 (overall #146)
Prettier plugins: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (170)
Recent weekly downloads observations for prettier-plugin-smart
Date (UTC)Weekly downloadsChange vs. previous
320
32-1
33+12
21+16
5+2
30
3-2
50
5-7
120
120
12+1
110
11—

Similar npm Prettier plugins plugins

All 20 prettier-plugin-smart alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/prettier-plugin-smart. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.