Disallows the $.ajax
/$.get
/$.getJSON
/$.getScript
/$.post
utilies. Prefer Window.fetch
.
📋 This rule is enabled in plugin:no-jquery/slim
.
📋 This rule is enabled in plugin:no-jquery/all
.
❌ Examples of incorrect code:
$.ajax();
$.get();
$.getJSON();
$.getScript();
$.post();
✔️ Examples of correct code:
ajax();
div.ajax();
div.ajax;
get();
div.get();
div.get;
getJSON();
div.getJSON();
div.getJSON;
getScript();
div.getScript();
div.getScript;
post();
div.post();
div.post;