Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
eslint-plugin-no-void-return-type
Advanced tools
A rule that prevents void return turns on unexported functions.
This is a rule that disallows void return types on unexported functions. For example:
const myMap = new Map();
// Bad
function foo(): void {}
// Good
function foo() {}
This is useful in combination with the recommended explicit-module-boundary-types rule, because when you convert an exported function to an unexported function, you often forget to remove the superfluous return type annotation.
npm install --save-dev eslint-plugin-no-void-return-type
"plugin:no-void-return-type/recommended"
to the extends
section of your .eslintrc.js
file.It only provides one rule: "no-void-return-type/no-void-return-type"
FAQs
A rule that prevents void return turns on unexported functions.
The npm package eslint-plugin-no-void-return-type receives a total of 2,812 weekly downloads. As such, eslint-plugin-no-void-return-type popularity was classified as popular.
We found that eslint-plugin-no-void-return-type demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.