eslint-plugin-no-jquery
Advanced tools
Comparing version
{ | ||
"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; |
92468
0.15%2697
0.15%