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-comments
Advanced tools
Prevents leaving comment blocks in the file. This plugin will ignore all comments starting from string global
or eslint
in order to keep eslint local settings safe.
If the source code is not being processed by a bundler or any other tool, there is a risk of shipping some notes, old code blocks or sensitive information to production environment.
npm install eslint-plugin-no-comments --save-dev
// eslintrc.js
{
"plugins": ["no-comments"],
"rules": {
"no-comments/disallowComments": [
"error",
{
"allow": ["TODO", "FIXME", "NOTE", "DEBUG"],
}
]
}
}
// import {Text} from 'react-native'
const {Text, Image} = require('react-native')
/* var price1 = 5;
* var price2 = 6;
var total = price1 + price2;
*/
const {Text, Image} = require('cool-package') // TO-DO fix vulnerability
/* global MyClass */
// eslint-disable-next-line no-unused-vars
var price1 = 5;
var price2 = 6;
var total = price1 + price2;
FAQs
ESLint plugin to disallow comment blocks
The npm package eslint-plugin-no-comments receives a total of 3,228 weekly downloads. As such, eslint-plugin-no-comments popularity was classified as popular.
We found that eslint-plugin-no-comments 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.