Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@susiandjames/eslint-plugin-id-denylist-regexp
Advanced tools
Drop-in replacement for ESLint's rule id-denylist with support for RegExp
Drop-in replacement for ESLint's rule id-denylist with support for regular expressions.
You'll first need to install ESLint:
npm install eslint --save-dev
Next, install eslint-plugin-id-denylist-regexp
:
npm install @susiandjames/eslint-plugin-id-denylist-regexp --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install eslint-plugin-id-denylist-regexp
globally.
Extend your eslint.config.js
by the rule susiandjames/id-denylist
as follows:
import susiandjames from "@susiandjames/eslint-plugin-id-denylist-regexp";
export default [
{
plugins: {
susiandjames,
},
rules: {
"susiandjames/id-denylist": [
"warn",
"/[0-9]+$/", // Disallow identifiers ending with numbers, e.g., `tmp0`
"/(black|white)list/i", // Disallow identifiers containing the words "blacklist" and "whitelist" independent of their case sensitivity
],
},
},
];
Note: Since ESLint's options need to serializable you have to indicate regular expressions by s
FAQs
Drop-in replacement for ESLint's rule id-denylist with support for RegExp
We found that @susiandjames/eslint-plugin-id-denylist-regexp demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.