Skip to content
PluginStats

eslint-plugin-filenames weekly downloads statistics

By selaux (2 listings) · npm · ESLint plugins

Eslint rule for consistent filenames.

View on npm Fresh · Dec 6, 2026

eslint-plugin-filenames has 607,538 recorded weekly downloads on npm, an increase of 6.5% over the past 30 days, ranking #347 of 3,247 tracked listings.

Weekly downloads
607,538
Official API · Dec 5, 2026
7-day growth
+15.2%
+80.2K weekly downloads
30-day growth
+6.5%
+36.8K weekly downloads
90-day growth
+12.7%
+68.3K weekly downloads
Rank
#347
▲ 30 in 7 days

About eslint-plugin-filenames

eslint-plugin-filenames

NPM Version Build Status Coverage Status Dependencies

Adds eslint rules to ensure consistent filenames for your javascript files.

Please note: This plugin will only lint the filenames of the .js, .jsx files you are linting with eslint. It will ignore other files that are not linted with eslint.

Enabling the plugin

This plugin requires a version of eslint>=1.0.0 to be installed as a peer dependency.

Modify your .eslintrc file to load the plugin and enable the rules you want to use.

{
  "plugins": [
    "filenames"
  ],
  "rules": {
    "filenames/match-regex": 2,
    "filenames/match-exported": 2,
    "filenames/no-index": 2
  }
}

Rules

Consistent Filenames via regex (match-regex)

A rule to enforce a certain file naming convention using a regular expression.

The convention can be configured using a regular expression (the default is camelCase.js). Additionally exporting files can be ignored with a second configuration parameter.

"filenames/match-regex": [2, "^[a-z_]+$", true]

With these configuration options, camelCase.js will be reported as an error while snake_case.js will pass. Additionally the files that have a named default export (according to the logic in the match-exported rule) will be ignored. They could be linted with the match-exported rule. Please note that exported function calls are not respected in this case.

Matching Exported Values (match-exported)

Match the file name against the default exported value in the module. Files that dont have a default export will be ignored. The exports of index.js are matched against their parent directory.

// Considered problem only if the file isn't named foo.js or foo/index.js
export default function foo() {}

// Considered problem only if the file isn't named Foo.js or Foo/index.js
module.exports = class Foo() {}

// Considered problem only if the file isn't named someVariable.js or someVariable/index.js
module.exports = someVariable;

// Never considered a problem
export default { foo: "bar" };

If your filename policy doesn't quite match with your variable naming policy, you can add one or multiple transforms:

"filenames/match-exported": [ 2, "kebab" ]

Now, in your code:

// Considered problem only if file isn't named variable-name.js or variable-name/index.js
export default function variableName;

Available transforms: 'snake', 'kebab', 'camel', and 'pascal' (camel-cased with first letter in upper case).

For multiple transforms simply specify an array like this (null in this case stands for no transform):

"filenames/match-exported": [2, [ null, "kebab", "snake" ] ]

If you prefer to use suffixes for your files (e.g. Foo.react.js for a React component file), you can use a second configuration parameter. It allows you to remove parts of a filename matching a regex pattern before transforming and matching against the export.

"filenames/match-exported": [ 2, null, "\\.react$" ]

Now, in your code:

// Considered problem only if file isn't named variableName.react.js, variableName.js or variableName/index.js
export default function variableName;

If you also want to match exported function calls you can use the third option (a boolean flag).

"filenames/match-exported": [ 2, null, null, true ]

Now, in your code:

// Considered problem only if file isn't named functionName.js or functionName/index.js
export default functionName();
Don't allow index.js files (no-index)

Having a bunch of index.js files can have negative influence on developer experience, e.g. when opening files by name. When enabling this rule. index.js files will always be considered a problem.

Changelog

1.3.2
  • Fix issue with match-regex and getExportedName
1.3.1
  • Put breaking change from 1.3.0 behind a flag
1.3.0
  • Support call expressions as named exports
1.2.0
  • Introduce strip option for match-exported
  • Introduce support for multiple transform options
  • Introduce pascal transform
1.1.0
  • Introduce transform option for match-exported
1.0.0
  • Split rule into match-regex, match-exported and no-index
0.2.0
  • Add match-exported flags
0.1.2
  • Fix example in README
0.1.1
  • Fix: Text via stdin always passes
  • Tests: Travis builds also run on node 0.12 and iojs now
0.1.0
  • Initial Release

Description from the npm listing.

  • eslint
  • eslintplugin
  • eslint-plugin
  • file
  • filename
  • path

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-filenames weekly downloads on npm, last 90 days: 607,538 weekly downloads as of Dec 5, 2026, +12.7% over 90 days.eslint-plugin-filenamesWeekly downloads on npm · Last 90 days607,538downloads / week+12.7% over 90 days0200K400K600K800K1M1.2MSep 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-filenames weekly downloads on npm, last 90 days: 607,538 weekly downloads as of Dec 5, 2026, +12.7% over 90 days.

7/30/90-day growth

eslint-plugin-filenames weekly downloads growth on npm: +15.2% over 7 days, +6.5% over 30 days, +12.7% over 90 days.eslint-plugin-filenamesWeekly downloads growth on npm607,538downloads / week now7-day growth+80,244 weekly downloads+15.2%30-day growth+36,836 weekly downloads+6.5%90-day growth+68,327 weekly downloads+12.7%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
eslint-plugin-filenames weekly downloads growth on npm: +15.2% over 7 days, +6.5% over 30 days, +12.7% over 90 days.

Ranking history

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

Listing placement

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

Listing placement

ESLint plugins290 listings · 15 pages · page 4, #20 (overall #80)
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 (592)
Recent weekly downloads observations for eslint-plugin-filenames
Date (UTC)Weekly downloadsChange vs. previous
607,538+2.5K
605,030+30.3K
574,749+24.6K
550,176+12.3K
537,840+10.8K
527,071+2.1K
524,984-2.3K
527,294-18.6K
545,896-29K
574,846-47.7K
622,531-151.4K
773,950-64.3K
838,281-113K
951,278—

Similar npm ESLint plugins plugins

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