diff --git a/.eslintrc.yml b/.eslintrc.yml index 5fc4af97e2d73f5e21753b2a4fa11dc06ad73338..7ede62ec979e4490d0aef86e286e189921bb14bd 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -1,6 +1,7 @@ extends: - '@gitlab' - plugin:promise/recommended + - plugin:no-jquery/slim globals: __webpack_public_path__: true gl: false @@ -44,10 +45,9 @@ rules: vue/no-use-v-if-with-v-for: off vue/no-v-html: off vue/use-v-on-exact: off - no-jquery/no-ajax: error - no-jquery/no-ajax-events: error - no-jquery/no-load: error - no-jquery/no-load-shorthand: error + no-jquery/no-animate: off + no-jquery/no-animate-toggle: off + no-jquery/no-fade: off no-jquery/no-serialize: error promise/always-return: off promise/no-callback-in-promise: off diff --git a/app/assets/javascripts/main.js b/app/assets/javascripts/main.js index 465c9a362ba4c41d5c352f25c5f18cb9876f98fc..674415c9d01dec244f0b866190491ae877f17134 100644 --- a/app/assets/javascripts/main.js +++ b/app/assets/javascripts/main.js @@ -222,6 +222,7 @@ document.addEventListener('DOMContentLoaded', () => { } }); + // eslint-disable-next-line no-jquery/no-ajax-events $(document).ajaxError((e, xhrObj) => { const ref = xhrObj.status; diff --git a/package.json b/package.json index da69960107da268c36552e0f4f3f3d8e0aab01e3..e60ae6d5a80ec6d65445d4adadfbcb6228134205 100644 --- a/package.json +++ b/package.json @@ -159,7 +159,7 @@ "eslint-import-resolver-webpack": "^0.10.1", "eslint-plugin-jasmine": "^2.10.1", "eslint-plugin-jest": "^22.3.0", - "eslint-plugin-no-jquery": "^2.1.0", + "eslint-plugin-no-jquery": "^2.3.0", "gettext-extractor": "^3.4.3", "gettext-extractor-vue": "^4.0.2", "graphql-tag": "^2.10.0", diff --git a/yarn.lock b/yarn.lock index d20fef4bb6a3c8e5194e3cf8ee109b521b239793..fbc6733fea4ab48d29f30e7b64b38dae22c47f49 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4270,10 +4270,10 @@ eslint-plugin-jest@^22.3.0: resolved "https://registry.yarnpkg.com/eslint-plugin-jest/-/eslint-plugin-jest-22.3.0.tgz#a10f10dedfc92def774ec9bb5bfbd2fb8e1c96d2" integrity sha512-P1mYVRNlOEoO5T9yTqOfucjOYf1ktmJ26NjwjH8sxpCFQa6IhBGr5TpKl3hcAAT29hOsRJVuMWmTsHoUVo9FoA== -eslint-plugin-no-jquery@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-no-jquery/-/eslint-plugin-no-jquery-2.1.0.tgz#d03b74224c5cfbc7fc0bdd12ce4eb400d09e0c0b" - integrity sha512-5sr5tOJRfuRviyAvFTe/mr80TXWxTteD/JHRuJtDN8q/bxAh16eSKoKLAevLC7wZCRN2iwnEfhQPQV4rp/gYtg== +eslint-plugin-no-jquery@^2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-no-jquery/-/eslint-plugin-no-jquery-2.3.0.tgz#fccdad84afa61baa4c0527dd6249cdcbfa0f74a8" + integrity sha512-XQQZM5yKO72Y8QAojNhH8oYLnLZU34FovNHVoJlPLBuBPJk0kkiPNOS/K6wRFbVgn47iZHsT6E+7mSLwbcQEsg== eslint-plugin-promise@^4.1.1: version "4.1.1"