eslint-plugin-ban
Advanced tools
Comparing version 1.3.0 to 1.4.0
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ # Ban methods (ban) |
@@ -0,0 +0,0 @@ /** |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16278
364