Skip to content
PluginStats

eslint-plugin-better-tailwindcss weekly downloads statistics

By schoero · npm · ESLint plugins

auto-wraps tailwind classes after a certain print width or class count into multiple lines to improve readability.

View on npm Fresh · Oct 17, 2026

eslint-plugin-better-tailwindcss has 682,640 recorded weekly downloads on npm, a decrease of 34.8% over the past 30 days.

It ranks #211 of 2,256 tracked npm listings by weekly downloads.

Over 90 days, weekly downloads changed by -12.3%.

PluginStats has 121 daily observations since Jun 19, 2026; the latest is from Oct 17, 2026.

Weekly downloads
682,640
Official API · Oct 17, 2026
7-day growth
-51.2%
-717.4K weekly downloads
30-day growth
-34.8%
-363.9K weekly downloads
90-day growth
-12.3%
-95.4K weekly downloads
Rank
#211
Among tracked npm listings

About eslint-plugin-better-tailwindcss

eslint-plugin-better-tailwindcss

ESLint/Oxlint plugin with formatting and linting rules to help you write cleaner, more maintainable Tailwind CSS.

The formatting rules focus on improving readability by automatically breaking up long Tailwind class strings into multiple lines and sorting/grouping them in a logical order. The linting rules enforce best practices and catch potential issues, ensuring that you're writing valid Tailwind CSS.

This plugin supports a wide range of projects, including React, Solid.js, Qwik, Svelte, Vue, Astro, Angular, HTML or plain JavaScript or TypeScript.

Buy me a coffee | GitHub Sponsors Help support this project. If you or your company benefit from this project, please consider becoming a sponsor or making a one-time donation. Your contribution will help me to maintain and develop the project.

Installation

Quick start

Depending on the flavor you are using, you need to install and configure the corresponding parser:

• React: .jsx · .tsx • SolidJS: .jsx · .tsx • Qwik: .jsx · .tsx • Svelte: .svelte • Vue: .vue • Astro: .astro • Angular: .html, .ts • HTML: .html • CSS: .css • JavaScript: .js • TypeScript: .ts

Rules

The rules are categorized into two types: stylistic and correctness.

Configs

The plugin offers three recommended configurations to help you get started quickly: • stylistic: Enforces stylistic rules for tailwind classes. • correctness: Enforces correctness rules for tailwind classes. • recommended: Enforces both stylistic and correctness rules. By default: • stylistic rules are reported as warnings • correctness rules are reported as errors You can change the severity by adding a suffix to the config name: • Use -error to report all rules as errors • Use -warn to report all rules as warnings For example, recommended-warn will report every rule as a warning and stylistic-error will report the formatting rules as errors. If you still use the old .eslintrc configuration format, you can prefix the config names with legacy-.

For example, legacy-recommended or legacy-correctness-warn.

The table below lists all available rules, the Tailwind CSS versions they support, and whether they are enabled by default in each recommended configuration:

Stylistic rules

| Name | Description | tw3 | tw4 | recommended | autofix |

| enforce-consistent-line-wrapping | Enforce consistent line wrapping for tailwind classes. | ✔ | ✔ | ✔ | ✔ | | enforce-consistent-class-order | Enforce a consistent order for tailwind classes. | ✔ | ✔ | ✔ | ✔ | | enforce-consistent-variant-order | Enforce a consistent variant order for tailwind classes. | | ✔ | | ✔ | | enforce-consistent-variable-syntax | Enforce consistent variable syntax. | ✔ | ✔ | | ✔ | | enforce-consistent-important-position | Enforce consistent position of the important modifier. | ✔ | ✔ | | ✔ | | enforce-shorthand-classes | Enforce shorthand class names. | ✔ | ✔ | | ✔ | | enforce-logical-properties | Enforce logical property class names. | ✔ | ✔ | | ✔ | | enforce-canonical-classes | Enforce canonical class names. | | ✔ | ✔ | ✔ | | no-duplicate-classes | Remove duplicate classes. | ✔ | ✔ | ✔ | ✔ | | no-deprecated-classes | Remove deprecated classes. | | ✔ | ✔ | ✔ | | no-unnecessary-whitespace | Disallow unnecessary whitespace in tailwind classes. | ✔ | ✔ | ✔ | ✔ |

Correctness rules

| Name | Description | tw3 | tw4 | recommended | autofix |

| no-concatenated-classes | Disallow concatenated classes in Tailwind CSS class strings. | ✔ | ✔ | ✔ | | | no-unknown-classes | Report classes not registered with Tailwind CSS. | ✔ | ✔ | ✔ | | | no-conflicting-classes | Report classes that produce conflicting styles. | | ✔ | ✔ | | | no-restricted-classes | Disallow restricted classes. | ✔ | ✔ | | ✔ |

Utilities

This plugin is pre-configured to lint tailwind classes for the most popular utilities:

• tailwind merge: twMerge · twJoin • class variance authority: cva • tailwind variants: tv • shadcn: cn • classcat: cc • class list builder: clb • clsx: clsx • cnbuilder: cnb • classnames template literals: ctl • obj str: objstr • react-twc: twc · twx

Advanced configuration

If an utility is not supported by default, or you want to customize the configuration, you can define which attributes, callees, variables, and tags should get linted. See the Advanced configuration guide to learn how to override or extend the default settings.

Monorepo setup

In monorepos, linting is often started from the repository root while each package has its own Tailwind setup. You can configure settings["better-tailwindcss"].cwd per file group so the plugin resolves tailwindcss and config files from the correct project directory.

See Settings for more details.

Editor configuration

VSCode

Auto-fix on save

Most rules are intended to automatically fix the tailwind classes using VSCode extensions.

ESLint

For ESLint, you can install the VSCode ESLint plugin and configure it to automatically fix the classes on save by adding the following options to your .vscode/settings.json:

Oxlint

For Oxlint, you can install the VSCode Oxc plugin and configure it to automatically fix the classes on save by adding the following options to your .vscode/settings.json:

Description from the npm listing.

  • eslint
  • eslint-plugin
  • stylistic
  • formatting
  • tailwind
  • readable
  • readability
  • horizontal
  • scrolling
  • multiline
  • multi
  • newline
  • line
  • break
  • linebreak
  • wrap
  • template
  • literal
  • jsx
  • html

Where eslint-plugin-better-tailwindcss sits in the listing

Each band is one page of 20. Weekly downloads on a log 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.

All npm2,256 listings · 113 pages · page 11, #11 (overall #211)
All npm: every listing in weekly downloads order
PNG SVG
ESLint plugins253 listings · 13 pages · page 3, #5 (overall #45)
ESLint plugins: every listing in weekly downloads order
PNG SVG

Charts

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

Adoption over time

eslint-plugin-better-tailwindcss weekly downloads on npm, last 90 days: 682,640 weekly downloads as of Oct 17, 2026, -12.3% over 90 days.eslint-plugin-better-tailwindcssWeekly downloads on npm · Last 90 days682,640downloads / week-12.3% over 90 days400K600K800K1M1.2M1.4M1.6MJul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 21, 2026 – Oct 17, 2026 · 89 observations · Updated Oc…pluginstats.com
eslint-plugin-better-tailwindcss weekly downloads on npm, last 90 days: 682,640 weekly downloads as of Oct 17, 2026, -12.3% over 90 days.
PNG SVG

7/30/90-day growth

eslint-plugin-better-tailwindcss weekly downloads growth on npm: -51.2% over 7 days, -34.8% over 30 days, -12.3% over 90 days.eslint-plugin-better-tailwindcssWeekly downloads growth on npm682,640downloads / week now7-day growth-717,382 weekly downloads-51.2%30-day growth-363,883 weekly downloads-34.8%90-day growth-95,381 weekly downloads-12.3%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
eslint-plugin-better-tailwindcss weekly downloads growth on npm: -51.2% over 7 days, -34.8% over 30 days, -12.3% over 90 days.
PNG SVG

Ranking history

eslint-plugin-better-tailwindcss npm ranking history: currently #211 (by weekly downloads).eslint-plugin-better-tailwindcssnpm ranking · by weekly downloads · Last 90 days#211current rank#209#210#211#212#213Jul 21Aug 5Aug 20Sep 4Sep 19Oct 4Oct 19rankOct 18, 2026 – Oct 19, 2026 · 2 observations · Updated Oct 17, 2026pluginstats.com
eslint-plugin-better-tailwindcss npm ranking history: currently #211 (by weekly downloads).
PNG SVG

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.

Recent observations

Full history (121)
Recent weekly downloads observations for eslint-plugin-better-tailwindcss
Date (UTC)Weekly downloadsChange vs. previous
682,640-126.7K
809,296+8.4K
800,946-326.5K
1,127,423-298.7K
1,426,1280
1,426,128+12.6K
1,413,574+13.6K
1,400,022+23.5K
1,376,553+39K
1,337,590+59.2K
1,278,371+34.6K
1,243,734-279.1K
1,522,831+6.3K
1,516,569—

Similar npm ESLint plugins plugins

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-better-tailwindcss. First seen Oct 16, 2026; last successful collection Oct 19, 2026. See the methodology.