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

eslint-plugin-ban

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-ban - npm Package Compare versions

Comparing version 1.3.0 to 1.4.0

0

.eslintrc.json

@@ -0,0 +0,0 @@ {

@@ -0,0 +0,0 @@ # Ban methods (ban)

@@ -0,0 +0,0 @@ /**

8

lib/rules/ban.js

@@ -160,7 +160,5 @@ /**

if (node.callee.type !== MEMBER_EXPRESSION_TOKEN) {
return;
}
if (node.callee.object && node.callee.object.type === IDENTIFIER_TOKEN){
if (node.callee.object &&
(node.callee.type === MEMBER_EXPRESSION_TOKEN || node.callee.object.type === IDENTIFIER_TOKEN)
){
const foundRule = findRuleByMethod(node.callee.property.name, node.callee.object.name);

@@ -167,0 +165,0 @@

{
"name": "eslint-plugin-ban",
"version": "1.3.0",
"version": "1.4.0",
"description": "Allows you to bannish some methods or functions.",

@@ -30,6 +30,6 @@ "repository": {

"devDependencies": {
"eslint": "^5.14.1",
"eslint": "^6.8.0",
"growl": "^1.10.5",
"husky": "^1.3.1",
"mocha": "^6.2.0"
"husky": "^3.1.0",
"mocha": "^6.2.2"
},

@@ -36,0 +36,0 @@ "husky": {

@@ -0,0 +0,0 @@ # eslint-plugin-ban [![Build Status](https://travis-ci.org/remithomas/eslint-plugin-ban.svg?branch=master)](https://travis-ci.org/remithomas/eslint-plugin-ban) [![npm version](https://img.shields.io/npm/v/eslint-plugin-ban.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-ban)

@@ -113,2 +113,9 @@ /**

options: [{'name': ['animals', 'push'], 'message': 'Prefer use es6 spread'}]
},
{
code: 'this.target.removeEventListener()',
errors: [{
message: 'Use xx instead'
}],
options: [{'name': ['*', 'removeEventListener'], 'message': 'Use xx instead'}]
}

@@ -115,0 +122,0 @@ ]

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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