@ericcornelissen/eslint-plugin-top weekly downloads statistics
By ericcornelissen · npm · ESLint plugins
Disallow side effects at the top level of files
@ericcornelissen/eslint-plugin-top has 39,028 recorded weekly downloads on npm, ranking #826 of 2,819 tracked listings.
About @ericcornelissen/eslint-plugin-top
eslint-plugin-top
Disallow side effects at the top level of files.
Quick links: npm | Source code | License | Changelog | Security
Installation
Install eslint-plugin-top, along with ESLint if it isn't already installed:
npm install @ericcornelissen/eslint-plugin-top eslint --save-dev
Usage
New Config (since ESLint v9)
Import from @ericcornelissen/eslint-plugin-top and use one of the preset
configurations, e.g.:
import top from '@ericcornelissen/eslint-plugin-top';
export default [
top.configs.recommended,
// or
top.configs.strict
// ...
];
Or configure the rules you want to use in the rules section, e.g.:
import top from '@ericcornelissen/eslint-plugin-top';
export default [
{
plugins: {top},
rules: {
'top/no-top-level-side-effects': 'error',
'top/no-top-level-state': 'error',
'top/no-top-level-variables': 'error'
}
}
];
Note that the rule prefix (top in the example) must match the name of the key
used in the plugins object.
Legacy Config (before ESLint v9)
First, add @ericcornelissen/top to the plugins section of your .eslintrc
configuration file. You must omit the eslint-plugin- infix:
plugins:
- '@ericcornelissen/top'
Then, configure the rules you want to use in the rules section:
rules:
'@ericcornelissen/top/no-top-level-side-effects': error
'@ericcornelissen/top/no-top-level-state': error
'@ericcornelissen/top/no-top-level-variables': error
Supported Rules
Preset Configurations
recommended: disallow top level variables while allowing mutable values and disallows top level side effects except for creating things likeSymbols.strict: disallow all top level variables and side effects except for importing other files.
Please open an issue if you found a mistake or if you have a suggestion for how to improve the documentation.
Description from the npm listing.
- eslint
- eslintplugin
- eslint-plugin
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 (1)Similar npm ESLint plugins plugins
All 20 @ericcornelissen/eslint-plugin-top 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/@ericcornelissen/eslint-plugin-top. First seen Nov 4, 2026; last successful collection Nov 4, 2026. See the methodology.