Registry / testing / eslint-config-jquery

eslint-config-jquery

JSON →
library3.0.2jsnpmunverified

ESLint shareable config that enforces the jQuery JavaScript code style, compatible with ESLint's semantic versioning policy. The latest stable version is 3.0.2 released Apr 2022. It follows the spirit of the jQuery code style guide without strict adherence, allowing some flexibility. This config extends ESLint's recommended rules and overrides to align with jQuery conventions. It is intended for projects that follow or are close to the jQuery coding style. The package has no runtime dependencies and is used via the ESLint extends mechanism.

npm install eslint-config-jquery
INSTALL
IMPORT
SIG · ESLINT-CONFIG-JQUE
E
eslint-config-jquery
testingjavascriptv3.0.2
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

jquery config
{ "extends": "jquery" }
{ "extends": "eslint-config-jquery" }
In .eslintrc, use 'jquery' as the value, not the full package name.
default import
const jqueryConfig = require('eslint-config-jquery');
import jqueryConfig from 'eslint-config-jquery';
This package is CJS only; ESM import is not supported.

Shows how to configure ESLint to use the jQuery config in .eslintrc* files.

// .eslintrc.json { "extends": "jquery" } // Or in .eslintrc.js module.exports = { extends: 'jquery' };
Debug
Known issues
breakingMajor version bumps may introduce new rules that cause lint failures.
fix
Review changelog before upgrading; use `--fix` to auto-correct where possible.
affects: >=3.0.0
gotchaThe config uses global variables assumed by jQuery plugins, which may conflict with modern module bundlers.
fix
Use `env: { browser: true }` or explicitly define globals in ESLint config.
affects: *
Errors
Common errors & fixes
Error: Failed to load config "jquery" to extend from.
Package not installed or not found in node_modules.
fix
Run `npm install --save-dev eslint-config-jquery` and ensure it's in your project root.
Warning: The "eslint-config-jquery" package has been deprecated.
Outdated version; check for newer or maintained alternative.
fix
Update to latest version with `npm update eslint-config-jquery`.
Upgrade
Version history
3.0.2latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
eslint-config-jquery — npm install eslint-config-jquery · libregistry