eslint-plugin-indexof
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -26,3 +26,3 @@ /** | ||
if(exceptOn.indexOf(node.callee.object.name) < 0) { | ||
context.report(node, "Unexpected indexOf"); | ||
context.report(node, "Array.indexOf() is not supported in IE < 9. If this is not an array, it may be safely ignored."); | ||
} | ||
@@ -29,0 +29,0 @@ } |
{ | ||
"name": "eslint-plugin-indexof", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Disallow using the method indexOf", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -43,3 +43,3 @@ # eslint-plugin-indexof | ||
"rules": { | ||
"indexof/rule-name": [2, {exceptOn: ['_']} | ||
"indexof/rule-name": [2, {exceptOn: ['_']}] | ||
} | ||
@@ -46,0 +46,0 @@ } |
@@ -21,3 +21,3 @@ /** | ||
var ruleTester = new RuleTester(); | ||
var errors = [{ message: "Unexpected indexOf" }]; | ||
var errors = [{ message: "Array.indexOf() is not supported in IE < 9. If this is not an array, it may be safely ignored." }]; | ||
@@ -24,0 +24,0 @@ ruleTester.run("no-indexof", rule, { |
5323