Security News
Python Overtakes JavaScript as Top Programming Language on GitHub
Python becomes GitHub's top language in 2024, driven by AI and data science projects, while AI-powered security tools are gaining adoption.
eslint-plugin-no-loops
Advanced tools
It's 2024 and you still use loops?
npm install --save-dev eslint-plugin-no-loops
In your .eslintrc
:
{
"plugins": [
"no-loops"
],
"rules": {
"no-loops/no-loops": 2
}
}
Disallow use of loops (for, for-in, while, do-while, for-of).
If 99% of your code doesn't need them, but you have that single case where a loop makes sense, go ahead!
// eslint-disable-next-line no-loops/no-loops
for (let i = 0; i < arr.length; i++) {
// ...
}
What is a rule without its exceptions?
FAQs
Disallow loops
We found that eslint-plugin-no-loops demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 7 open source maintainers 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
Python becomes GitHub's top language in 2024, driven by AI and data science projects, while AI-powered security tools are gaining adoption.
Security News
Dutch National Police and FBI dismantle Redline and Meta infostealer malware-as-a-service operations in Operation Magnus, seizing servers and source code.
Research
Security News
Socket is tracking a new trend where malicious actors are now exploiting the popularity of LLM research to spread malware through seemingly useful open source packages.