eslint-plugin-check-file weekly downloads statistics
By dukeluo · npm · ESLint plugins
ESLint rules for consistent filename and folder. Allows you to enforce a consistent naming pattern for the filename and folder
eslint-plugin-check-file has 2,272,792 recorded weekly downloads on npm, an increase of 41.0% over the past 30 days, ranking #218 of 3,247 tracked listings.
About eslint-plugin-check-file
eslint-plugin-check-file
An ESLint plugin that enforces consistent naming conventions for files and folders in your project. It helps maintain a clean and organized codebase by allowing you to define and enforce specific patterns for filenames and directory structures.
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install
eslint-plugin-check-file:
npm install eslint-plugin-check-file --save-dev
Usage
This plugin supports ESLint's flat configuration. Here's a complete example:
import checkFile from 'eslint-plugin-check-file';
export default [
{
// optional: add this processor to files which not processed by other processors but still require linting
files: ['**/*.yaml', '**/*.webp'],
processor: 'check-file/eslint-processor-check-file',
},
{
files: ['src/**/*.*'],
plugins: {
'check-file': checkFile,
},
rules: {
'check-file/no-index': 'error',
'check-file/filename-blocklist': [
'error',
{
'**/*.model.ts': '*.models.ts',
'**/*.util.ts': '*.utils.ts',
},
],
'check-file/folder-match-with-fex': [
'error',
{
'*.test.{js,jsx,ts,tsx}': '**/__tests__/',
'*.styled.{jsx,tsx}': '**/components/',
},
],
'check-file/filename-naming-convention': [
'error',
{
'**/*.{jsx,tsx}': 'PASCAL_CASE',
'**/*.{js,ts}': 'CAMEL_CASE',
},
],
'check-file/folder-naming-convention': [
'error',
{
'src/components/*/': 'PASCAL_CASE',
'src/!(components)/**/!(__tests__)/': 'CAMEL_CASE',
},
],
},
},
];
Examples
Check out the following demo projects showing how to configure this plugin:
Supported Rules
- check-file/no-index: A file cannot be named "index"
- check-file/filename-blocklist: Blocklist filenames by pattern
- check-file/folder-match-with-fex: Enforce a consistent naming pattern for folder names for specified files
- check-file/filename-naming-convention: Enforce a consistent naming pattern for filenames for specified files
- check-file/folder-naming-convention: Enforce a consistent naming pattern for folder names for specified folders
Version Compatibility
Version 3.x and above only support ESLint's flat configuration. For legacy configuration support, please use version 2.x.
Support
If you find this plugin helpful, consider supporting the project:
Description from the npm listing.
- eslint
- eslintplugin
- eslint-plugin
- folder
- path
- file
- filename
- glob-matching
- naming-conventions
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
7/30/90-day growth
Ranking history
Listing placement
Listing placement
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)Similar npm ESLint plugins plugins
All 20 eslint-plugin-check-file alternativesData 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-check-file. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.