eslint-plugin-no-jquery weekly downloads statistics
By wikimedia · npm · ESLint plugins
Disallow jQuery functions with native equivalents.
eslint-plugin-no-jquery has 68,555 recorded weekly downloads on npm, a decrease of 41.1% over the past 30 days.
About eslint-plugin-no-jquery
eslint-plugin-no-jquery
Disallow jQuery functions, with suggestions for native equivalents where possible.
Originally a fork of eslint-plugin-jquery.
⬇️ Installation
You'll first need to install ESLint:
npm install eslint --save-dev
Next, install eslint-plugin-no-jquery:
npm install eslint-plugin-no-jquery --save-dev
Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-no-jquery globally.
🛠️ Usage
Add no-jquery to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"extends": "plugin:no-jquery/deprecated",
"plugins": [
"no-jquery"
]
}
📋 Configs
The config plugin:no-jquery/recommended includes the recommended rule no-jquery/variable-pattern which is required for method rules to work correctly.
The config plugin:no-jquery/deprecated includes all known deprecated and removed code, and is updated as new releases of jQuery come out. You can instead use configs targeting specific versions of jQuery if you know the environment in which your code will operate. There is a config for all minor versions from 1.0 to 3.6 (deprecated-1.0, ..., deprecated-3.7). Deprecation configs are cumulative, so they include all the rules for jQuery versions below them.
The config plugin:no-jquery/slim includes all features excluded from the official "slim" build of jQuery, specifically the ajax and effects modules.
The config plugin:no-jquery/all includes all methods and utilities and should be used when you are aiming to remove all jQuery usage from your code.
Alternatively, you can pick out rules individually (see below).
⚙️ Settings
The following global settings can be used under the no-jquery property to configure the linter:
constructorAliases- An array of aliases for the jQuery constructor. Defaults to[ "$", "jQuery" ].variablePattern- Regular expression pattern for matching jQuery variables. Defaults to"^\\$.". This pattern can be enforced with theno-jquery/variable-patternrule.collectionReturningPlugins- An object describing the return types of jQuery plugins. Keys are plugin method names, and values can be one of:'always'a plugin which always returns a jQuery collection.- e.g.
$bar = $foo.stop()
- e.g.
'accessor'a plugin which only returns a jQuery collection when an argument is given.- e.g.
w = $foo.width(),$bar = $foo.width( 200 )
- e.g.
'valueAccessor'a plugin which only returns a jQuery collection when more than one argument is given.- e.g.
w = $foo.css( 'width' ),$bar = $foo.css( 'width', '1em' )
- e.g.
'never'(default) a plugin which never returns a jQuery collection.- e.g.
arr = $foo.toArray()
- e.g.
{
"settings": {
"no-jquery": {
"constructorAliases": [ "$", "jQuery" ],
"variablePattern": "^\\$.|^element$",
"collectionReturningPlugins": {
"datePicker": "always"
}
}
},
"plugins": [
"no-jquery"
]
}
📖 Rules
Rules with options are indicated with ⚙️. Rules which are fixable are indicated with 🔧.
Where rules are included in the configs recommended, slim, all or deprecated-X.X it is indicated below.
Where rules are included in a config with non-default options this is indicated with a †.
Configs which cause the rule to report an error are shown in bold.…
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 (122)Similar npm ESLint plugins plugins
All 20 eslint-plugin-no-jquery 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-no-jquery. First seen Oct 16, 2026; last successful collection Oct 22, 2026. See the methodology.