eslint-plugin-ban
Advanced tools
Comparing version 1.5.1 to 1.5.2
@@ -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 @@ ], |
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
15013
408