Skip to content

Latest commit

 

History

History
44 lines (35 loc) · 932 Bytes

no-ajax.md

File metadata and controls

44 lines (35 loc) · 932 Bytes

no-ajax

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.

Rule details

❌ 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;

Resources