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

eslint-plugin-call-func-with-return

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-call-func-with-return - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

2

package.json
{
"name": "eslint-plugin-call-func-with-return",
"version": "0.0.2",
"version": "0.0.3",
"description": "call specified functions with return statement",

@@ -5,0 +5,0 @@ "keywords": [

@@ -5,2 +5,17 @@ # eslint-plugin-call-func-with-return

``` js
function jsonRet(data = {}, retCode, retMessage) {
return {
data,
retCode,
retMessage,
}
}
function main() {
jsonRet({ author: 'elvinn' }); // 错误
return jsonRet({ author: 'elvin' }); // 正确
}
```
## 安装

@@ -7,0 +22,0 @@

@@ -7,2 +7,17 @@ # eslint-plugin-call-func-with-return

``` js
function jsonRet(data = {}, retCode, retMessage) {
return {
data,
retCode,
retMessage,
}
}
function main() {
jsonRet({ author: 'elvinn' }); // error
return jsonRet({ author: 'elvin' }); // ok
}
```
## Installation

@@ -9,0 +24,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