Commit b11e9602 authored by Winnie Hellmann's avatar Winnie Hellmann Committed by Kushal Pandya

Add ESLint rules for deprecated jQuery functions

parent 72ed09b6
...@@ -2,6 +2,7 @@ extends: ...@@ -2,6 +2,7 @@ extends:
- '@gitlab' - '@gitlab'
- plugin:promise/recommended - plugin:promise/recommended
- plugin:no-jquery/slim - plugin:no-jquery/slim
- plugin:no-jquery/deprecated-3.4
globals: globals:
__webpack_public_path__: true __webpack_public_path__: true
gl: false gl: false
...@@ -48,8 +49,10 @@ rules: ...@@ -48,8 +49,10 @@ rules:
no-jquery/no-animate: off no-jquery/no-animate: off
# all offenses of no-jquery/no-animate-toggle are false positives ( $toast.show() ) # all offenses of no-jquery/no-animate-toggle are false positives ( $toast.show() )
no-jquery/no-animate-toggle: off no-jquery/no-animate-toggle: off
no-jquery/no-event-shorthand: off
no-jquery/no-fade: off no-jquery/no-fade: off
no-jquery/no-serialize: error no-jquery/no-serialize: error
no-jquery/no-sizzle: off
promise/always-return: off promise/always-return: off
promise/no-callback-in-promise: off promise/no-callback-in-promise: off
overrides: overrides:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment