Skip to content
PluginStats

eslint-plugin-format weekly downloads statistics

By antfu (15 listings) · npm · ESLint plugins

Format various languages with formatters in ESLint

View on npm Fresh · Dec 6, 2026

eslint-plugin-format has 331,945 recorded weekly downloads on npm, an increase of 22.4% over the past 30 days, ranking #450 of 3,247 tracked listings.

Weekly downloads
331,945
Official API · Dec 5, 2026
7-day growth
+14.6%
+42.2K weekly downloads
30-day growth
+22.4%
+60.8K weekly downloads
90-day growth
+97.2%
+163.6K weekly downloads
Rank
#450
▲ 4 in 7 days

About eslint-plugin-format

eslint-plugin-format

npm version npm downloads bundle JSDocs License

Format various languages with formatters in ESLint. Supports Prettier, dprint and oxfmt. Side-effects-free and fully configurable.

Usages

Install
npm i -D eslint-plugin-format
Configure

This plugin does not do language detection or reading configure files, you need to specify the language for each file type you want to format along with other formatting options. We recommend using ESLint's Flat Config format.

// eslint.config.js
import format from 'eslint-plugin-format'

export default [
  // ...other flat configs

  // use Prettier to format CSS
  {
    files: ['**/*.css'],
    languageOptions: {
      parser: format.parserPlain,
    },
    plugins: {
      format,
    },
    rules: {
      'format/prettier': ['error', { parser: 'css', tabWidth: 2 }],
    },
  },

  // use dprint to format TOML
  {
    files: ['**/*.toml'],
    languageOptions: {
      parser: format.parserPlain,
    },
    plugins: {
      format,
    },
    rules: {
      'format/dprint': ['error', { language: 'toml', languageOptions: { indentWidth: 2 } }],
    },
  },

  // use oxfmt to format JavaScript/TypeScript with TailwindCSS classnames sorting
  {
    files: ['**/*.{js,cjs,mjs,jsx,ts,cts,mts,tsx}'],
    languageOptions: {
      parser: format.parserPlain,
    },
    plugins: {
      format,
    },
    rules: {
      'format/oxfmt': ['error', { sortTailwindcss: {} }],
    },
  },

  // use dprint to format HTML and CSS in style tags
  {
    files: ['**/*.html'],
    languageOptions: {
      parser: format.parserPlain,
    },
    plugins: {
      format,
    },
    rules: {
      'format/dprint': ['error', {
        plugins: [
          {
            plugin: 'node_modules/dprint-plugin-malva/plugin.wasm',
            options: {},
          },
          {
            plugin: 'node_modules/dprint-plugin-markup/plugin.wasm',
            options: {
              scriptIndent: true,
              styleIndent: true,
            },
          },
        ],
        useTabs: false,
        indentWidth: 2,
      }],
    },
  },
]

Rules

format/prettier

Use Prettier to format files.

Options
  • parser (required) - the language to format, Supported languages
  • The rest options are passed as Prettier options
format/dprint

Use dprint to format files.

Options

Either:

  • language (required) - the language to format, or can be a filepath or URL to the WASM binary. Supported languages
  • languageOptions - the options for the language
  • The rest options are passed as dprint's general options

Or:

  • plugins (required) - Array of plugins, defined as an object containing plugin (same as language above) and options, which is the same as languageOptions above.
  • The rest of the options are passed as dprint's general options
format/oxfmt

Use oxfmt to format files.

Options
  • File type is inferred from the linted filename extension.
  • The options are passed directly to oxfmt's format() API.

Sponsors

<p align="center"> <a href="https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg"> <img src='https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg' alt='Sponsors' /> </a> </p>

FAQ

What's the difference between this and eslint-plugin-prettier?

While this plugin provides Prettier as one of the formatters, the main difference is that eslint-plugin-prettier is much more opinionated toward the Prettier CLI ecosystem. While this plugin only treats Prettier as the side-effects-free formatter and gives you full control in ESLint.

Credits

Thanks to the existing works for references and inspiration.

License

MIT License © 2023-PRESENT Anthony Fu

<!-- Badges -->

Description from the npm listing.

  • eslint
  • eslint-plugin
  • formatters
  • prettier
  • dprint
  • oxfmt

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

eslint-plugin-format weekly downloads on npm, last 90 days: 331,945 weekly downloads as of Dec 5, 2026, +97.2% over 90 days.eslint-plugin-formatWeekly downloads on npm · Last 90 days331,945downloads / week+97.2% over 90 days050K100K150K200K250K300K350KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
eslint-plugin-format weekly downloads on npm, last 90 days: 331,945 weekly downloads as of Dec 5, 2026, +97.2% over 90 days.

7/30/90-day growth

eslint-plugin-format weekly downloads growth on npm: +14.6% over 7 days, +22.4% over 30 days, +97.2% over 90 days.eslint-plugin-formatWeekly downloads growth on npm331,945downloads / week now7-day growth+42,170 weekly downloads+14.6%30-day growth+60,750 weekly downloads+22.4%90-day growth+163,607 weekly downloads+97.2%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
eslint-plugin-format weekly downloads growth on npm: +14.6% over 7 days, +22.4% over 30 days, +97.2% over 90 days.

Ranking history

eslint-plugin-format npm ranking history: currently #450 (by weekly downloads).eslint-plugin-formatnpm ranking · by weekly downloads · Last 90 days#450current rank#150#200#250#300#350#400#450#500Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 17, 2026 – Dec 6, 2026 · 45 observations · Updated Dec 5, 2026pluginstats.com
eslint-plugin-format npm ranking history: currently #450 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 23, #10 (overall #450)
All npm: every listing in weekly downloads order

Listing placement

ESLint plugins290 listings · 15 pages · page 5, #20 (overall #100)
ESLint 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 (591)
Recent weekly downloads observations for eslint-plugin-format
Date (UTC)Weekly downloadsChange vs. previous
331,945-1.1K
333,009+11.4K
321,562+7.1K
314,440+1.9K
312,572+19.8K
292,773+3.2K
289,604-171
289,775+5.2K
284,552+1.5K
283,031-4.2K
287,207+1.1K
286,082-7.5K
293,612-8.7K
302,329—

Similar npm ESLint plugins plugins

All 20 eslint-plugin-format 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/eslint-plugin-format. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.