
Security News
Risky Biz Podcast: Making Reachability Analysis Work in Real-World Codebases
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
eslint-plugin-no-one-time-vars
Advanced tools
Disallows one-time variables
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-no-one-time-vars
:
npm install eslint-plugin-no-one-time-vars --save-dev
Add no-one-time-vars
to the plugins section of your .eslintrc
configuration
file. You can omit the eslint-plugin-
prefix:
{
"plugins": ["no-one-time-vars"]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"no-one-time-vars/no-one-time-vars": "error"
}
}
To add an option to the rule configuration do the following:
{
"rules": {
"no-one-time-vars/no-one-time-vars": [
"error",
{
"option-name": "option-value"
}
]
}
}
Array of strings
[]
Boolean
true
Boolean
true
Boolean
, Number
false
Boolean
false
Boolean
false
Boolean
true
Boolean
false
FAQs
Disallows one-time variables
The npm package eslint-plugin-no-one-time-vars receives a total of 3 weekly downloads. As such, eslint-plugin-no-one-time-vars popularity was classified as not popular.
We found that eslint-plugin-no-one-time-vars demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.