{"id":19536,"library":"eslint-config-jquery","title":"jQuery ESLint Config","description":"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.","status":"active","version":"3.0.2","language":"javascript","source_language":"en","source_url":"https://github.com/jquery/eslint-config-jquery","tags":["javascript","style guide","eslint","config","lint","jquery","eslintconfig"],"install":[{"cmd":"npm install eslint-config-jquery","lang":"bash","label":"npm"},{"cmd":"yarn add eslint-config-jquery","lang":"bash","label":"yarn"},{"cmd":"pnpm add eslint-config-jquery","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"In .eslintrc, use 'jquery' as the value, not the full package name.","wrong":"{\n  \"extends\": \"eslint-config-jquery\"\n}","symbol":"jquery config","correct":"{\n  \"extends\": \"jquery\"\n}"},{"note":"This package is CJS only; ESM import is not supported.","wrong":"import jqueryConfig from 'eslint-config-jquery';","symbol":"default import","correct":"const jqueryConfig = require('eslint-config-jquery');"}],"quickstart":{"code":"// .eslintrc.json\n{\n  \"extends\": \"jquery\"\n}\n\n// Or in .eslintrc.js\nmodule.exports = {\n  extends: 'jquery'\n};","lang":"javascript","description":"Shows how to configure ESLint to use the jQuery config in .eslintrc* files."},"warnings":[{"fix":"Review changelog before upgrading; use `--fix` to auto-correct where possible.","message":"Major version bumps may introduce new rules that cause lint failures.","severity":"breaking","affected_versions":">=3.0.0"},{"fix":"Use `env: { browser: true }` or explicitly define globals in ESLint config.","message":"The config uses global variables assumed by jQuery plugins, which may conflict with modern module bundlers.","severity":"gotcha","affected_versions":"*"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run `npm install --save-dev eslint-config-jquery` and ensure it's in your project root.","cause":"Package not installed or not found in node_modules.","error":"Error: Failed to load config \"jquery\" to extend from."},{"fix":"Update to latest version with `npm update eslint-config-jquery`.","cause":"Outdated version; check for newer or maintained alternative.","error":"Warning: The \"eslint-config-jquery\" package has been deprecated."}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}