![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
eslint-plugin-redos-detector
Advanced tools
An eslint plugin that detects vulnerable regex using "https://github.com/tjenkinson/redos-detector".
An ESLint plugin that detects vulnerable regex using "RedosDetector". It processes all RegExp literals. I.e. /ab+c/
but not new RegExp('ab+c')
.
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-redos-detector
:
npm i --save-dev eslint-plugin-redos-detector
Add redos-detector
to the plugins section of your .eslintrc
configuration file.
{
"plugins": ["redos-detector"]
}
Then configure the rule under the rules section.
{
"rules": {
"redos-detector/no-unsafe-regex": "error"
}
}
Or do the following to provide options.
{
"rules": {
"redos-detector/no-unsafe-regex": [
"error",
{
"ignoreError": true
}
]
}
}
ignoreError
: If true
any error getting results be ignored. It's possible for the detection to fail with some patterns, or if the patten is malformed or uses unsupported features. See this doc for the type of errors. (Default: false
)maxSteps
: See the option in this doc with the same name. (Default: See linked doc)maxBacktracks
: See the option in this doc with the same name. (Default: See linked doc)timeout
: See the option in this doc with the same name. (Default: See linked doc)FAQs
An eslint plugin that detects vulnerable regex using "https://github.com/tjenkinson/redos-detector".
The npm package eslint-plugin-redos-detector receives a total of 516 weekly downloads. As such, eslint-plugin-redos-detector popularity was classified as not popular.
We found that eslint-plugin-redos-detector 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.