From c7728f77e38f2e996b0e2a38f08190d036535bbf Mon Sep 17 00:00:00 2001 From: Yarden Shoham Date: Fri, 15 Mar 2024 16:09:21 +0000 Subject: [PATCH] Forbid jQuery AJAX Please use the fetch wrapper instead, or even better `htmx`. Signed-off-by: Yarden Shoham --- .eslintrc.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.eslintrc.yaml b/.eslintrc.yaml index e9991c02baed2..f84cb39a41a32 100644 --- a/.eslintrc.yaml +++ b/.eslintrc.yaml @@ -283,7 +283,7 @@ rules: i/unambiguous: [0] init-declarations: [0] jquery/no-ajax-events: [2] - jquery/no-ajax: [0] + jquery/no-ajax: [2] jquery/no-animate: [2] jquery/no-attr: [0] jquery/no-bind: [2] @@ -396,7 +396,7 @@ rules: no-irregular-whitespace: [2] no-iterator: [2] no-jquery/no-ajax-events: [2] - no-jquery/no-ajax: [0] + no-jquery/no-ajax: [2] no-jquery/no-and-self: [2] no-jquery/no-animate-toggle: [2] no-jquery/no-animate: [2]