npm install --save-dev eslint-config-jquery
Version 4.0.0 or newer work with ESLint version 9.0.0 or newer and require using the flat config. Use version 3.x for older ESLint versions.
In your eslint.config file
, import it and add it to your flat config array.
import jquery from "eslint-config-jquery";
export default [
// ... any other configurations,
jquery,
// ... any other configurations
];
This config follows the spirit of the jQuery code style, does not violate it and extends it.
Same approach as in ESLint, see https://github.com/eslint/eslint#user-content-semantic-versioning-policy.