Skip to content

Commit 8df734c

Browse files
committed
AC-13683::Investigate latest patch version of grunt-eslint
1 parent 1177082 commit 8df734c

12 files changed

+655
-560
lines changed

eslint/rules/jquery-no-andSelf.js

-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ export default {
2323
* @returns {Object}
2424
*/
2525
create: function (context) {
26-
'use strict';
27-
2826
return {
2927
/**
3028
* Checks if andSelf is used in the node and reports it.

eslint/rules/jquery-no-bind-unbind.js

-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ export default {
2323
* @returns {Object}
2424
*/
2525
create: function (context) {
26-
'use strict';
27-
2826
return {
2927
/**
3028
* Checks if bind and unbind are used in the node and reports it.

eslint/rules/jquery-no-delegate-undelegate.js

-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ export default {
2323
* @returns {Object}
2424
*/
2525
create: function (context) {
26-
'use strict';
27-
2826
return {
2927
/**
3028
* Checks if delegate and undelegate are used in the node and reports it.

eslint/rules/jquery-no-deprecated-expr.js

-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ export default {
2020
* @returns {Object}
2121
*/
2222
create: function (context) {
23-
'use strict';
24-
2523
return {
2624
/**
2725
* Checks for jQuery.expr[':']

eslint/rules/jquery-no-event-shorthand.js

-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ export default {
2020
* @returns {Object}
2121
*/
2222
create: function (context) {
23-
'use strict';
24-
2523
return {
2624
/**
2725
* Checks if shorthand event methods are used.

eslint/rules/jquery-no-input-event-shorthand.js

-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ export default {
2020
* @returns {Object}
2121
*/
2222
create: function (context) {
23-
'use strict';
24-
2523
return {
2624
/**
2725
* Checks if shortcuts are used to trigger events and reports it.

eslint/rules/jquery-no-misc-deprecated-functions.js

-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ export default {
2020
* @returns {Object}
2121
*/
2222
create: function (context) {
23-
'use strict';
24-
2523
return {
2624
/**
2725
* Checks if deprecated methods are used and reports it.

eslint/rules/jquery-no-size.js

-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ export default {
2323
* @returns {Object}
2424
*/
2525
create: function (context) {
26-
'use strict';
27-
2826
return {
2927
/**
3028
* Checks if size method is used and reports it.

eslint/rules/jquery-no-trim.js

-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ export default {
2323
* @returns {Object}
2424
*/
2525
create: function (context) {
26-
'use strict';
27-
2826
return {
2927
/**
3028
* Checks if trim method is used and reports it.

eslint/rules/utils.js

-5
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
* @returns object
55
*/
66
function define(node) {
7-
'use strict';
87
var defineStmt, args;
98

109
defineStmt = node.body.find(function (stmt) {
@@ -36,7 +35,6 @@ function define(node) {
3635
* @returns {null|*}
3736
*/
3837
function getJqueryName(defineObject) {
39-
'use strict';
4038

4139
var jQueryPathIndex;
4240

@@ -57,7 +55,6 @@ function getJqueryName(defineObject) {
5755
* Get Root Program node
5856
*/
5957
function getProgramNode(node) {
60-
'use strict';
6158
if (!node.parent) {
6259
return node;
6360
}
@@ -71,7 +68,6 @@ function getProgramNode(node) {
7168
* @returns {Object|Null}
7269
*/
7370
function getExpressionId(node) {
74-
'use strict';
7571

7672
while (node) {
7773
switch (node.type) {
@@ -102,7 +98,6 @@ function getExpressionId(node) {
10298
*/
10399

104100
function isjQuery(node) {
105-
'use strict';
106101
var parentNode, defineNode, jQueryId, id;
107102

108103
parentNode = getProgramNode(node);

0 commit comments

Comments
 (0)