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.5.1 to 1.5.2

2

lib/rules/ban.js

@@ -147,3 +147,3 @@ /**

const foundRule = findRuleByFunction(node.callee.name);
if (foundRule) report(node, foundRule);
if (foundRule) report(node.callee, foundRule);
return;

@@ -150,0 +150,0 @@ }

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

@@ -31,9 +31,9 @@ "repository": {

"devDependencies": {
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-prettier": "^3.1.3",
"eslint": "^7.16.0",
"eslint-config-prettier": "^7.1.0",
"eslint-plugin-prettier": "^3.3.0",
"growl": "^1.10.5",
"husky": "^4.2.5",
"mocha": "^7.1.2",
"prettier": "^2.0.5"
"husky": "^4.3.6",
"mocha": "^8.2.1",
"prettier": "^2.2.1"
},

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

@@ -204,2 +204,6 @@ /**

message: 'Prefer use functionName2',
line: 1,
endLine: 1,
column: 1,
endColumn: 13,
},

@@ -224,8 +228,15 @@ ],

{
code: ['it.only("does abc", function(){', 'my.only();', '})'].join('\n'),
code: [
'// test',
'it.only("does abc", function(){',
'my.only();',
'})',
].join('\n'),
errors: [
{
message: "Don't use `it.only`",
line: 1,
endLine: 1,
line: 2,
endLine: 2,
column: 1,
endColumn: 8,
},

@@ -232,0 +243,0 @@ ],

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