
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
eslint-plugin-react-directives
Advanced tools
some rules for babel-plugin-react-directives.
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-react-directives
:
$ npm install eslint-plugin-react-directives --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install eslint-plugin-react-directives
globally.
There are two ways to configure it via .eslintrc
:
{
"plugins": [
"react-directives"
],
"rules": {
"no-undef": "off",
"react-directives/no-undef": "error"
}
}
or use the recommended rules:
{
"extends": [
"plugin:react-directives/recommended"
],
"rules": {
"no-undef": "off"
}
}
If you have configured some options in babel-plugin-react-directives
, add settings
section to .eslintrc
file.
{
"settings": {
"react-directives": {
"prefix": "x"
}
}
}
This plugin exports a recommended configuration.
To enable this configuration use the extends property in your .eslintrc config file:
{
"extends": [
"plugin:react-directives/recommended"
]
}
The rules enabled in this configuration are:
FAQs
some rules for babel-plugin-react-directives.
The npm package eslint-plugin-react-directives receives a total of 142 weekly downloads. As such, eslint-plugin-react-directives popularity was classified as not popular.
We found that eslint-plugin-react-directives 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.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.