Skip to content

Commit

Permalink
remove strict mode
Browse files Browse the repository at this point in the history
  • Loading branch information
cht8687 committed Jul 2, 2016
1 parent c900edc commit 1ce25f1
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions lib/rules/no-lodash-underscore.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@
* @fileoverview Discourages the use of Underscore/Lodash where native methods will do
* @author Patrick McElhaney
*/
"use strict";

//------------------------------------------------------------------------------
// Rule Definition
//------------------------------------------------------------------------------
var errorMessages = {
const errorMessages = {
concat: 'Consider using the native Array.concat()',
fill: 'Consider using the native Array.fill()',
find: 'Consider using the native Array.find()',
Expand Down Expand Up @@ -37,10 +36,10 @@ var errorMessages = {

module.exports = {

create: function(context) {
create (context) {
function checkForUnneededLibraryFunctions (node) {
var functionName = getUnderscoreFunctionName(node);
var errorMessage = errorMessages[functionName];
const functionName = getUnderscoreFunctionName(node);
const errorMessage = errorMessages[functionName];

if (errorMessage) {
context.report({
Expand Down

0 comments on commit 1ce25f1

Please sign in to comment.