🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →

eslint-plugin-no-jquery

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-no-jquery - npm Package Compare versions

Comparing version

to
3.0.1

{
"name": "eslint-plugin-no-jquery",
"version": "3.0.0",
"version": "3.0.1",
"description": "Disallow jQuery functions with native equivalents.",

@@ -5,0 +5,0 @@ "repository": {

@@ -33,6 +33,10 @@ 'use strict';

name !== 'extend' ||
!utils.isjQueryConstructor( context, node.callee.object.name )
!utils.isjQueryConstructor( context, node.callee.object.name )
) {
return;
}
if ( node.arguments.length === 1 ) {
// $.extend with one argument merges the object onto the jQuery namespace
return;
}
const allowDeep = context.options[ 0 ] && context.options[ 0 ].allowDeep;

@@ -39,0 +43,0 @@ const isDeep = node.arguments[ 0 ] && node.arguments[ 0 ].value === true;