Disallows the $.parseJSON utility. Prefer JSON.parse.
📋 This rule is enabled in plugin:no-jquery/deprecated-3.0.
📋 This rule is enabled in plugin:no-jquery/all.
🔧 The --fix option on the command line can automatically fix some of the problems reported by this rule.
❌ Examples of incorrect code:
$.parseJSON( '{}' );✔️ Examples of correct code:
parseJSON();
$div.parseJSON();
'test'.parseJSON;🔧 Examples of code fixed by this rule:
$.parseJSON( '{}' ); /* → */ JSON.parse( '{}' );