Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-indexof

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-indexof - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

2

lib/rules/no-indexof.js

@@ -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, {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc