Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
eslint-plugin-always
Advanced tools
ESLint plugin that always reports with configurable message
It sounds a bit strange to have a ESLint rule that always reports. The reason why this plugin was created is a special use case:
The root ESLint configuration in the project fits for the build scripts but not for the rest of the project. There is a subfolder that resets the ESLint configuration:
{
"root": true
}
So all files in this folder structure won't check any ESLint rules. The subfolders must contain ESLint configurations which can differ between each subfolder.
For the case that someone adds a subfolder and forgets the ESLint configuration this rule was created. So every file within the subfolder will report an error
No ESLint configuration present.
$ yarn add eslint-plugin-always --dev
Add the plugin to your ESLint configuration:
{
"plugins": [
"always"
]
}
And then add the following rule:
{
"rules": {
"always/always": ["error", {
"message": "Hello World"
}]
}
}
MIT © 2021 Jens Simon
FAQs
ESLint plugin that always reports with configurable message
The npm package eslint-plugin-always receives a total of 494 weekly downloads. As such, eslint-plugin-always popularity was classified as not popular.
We found that eslint-plugin-always demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.