
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
eslint-plugin-react-intl-format
Advanced tools
This plugin has been deprecated. Please use @calm/eslint-plugin-react-intl instead.
npm: https://www.npmjs.com/package/@calm/eslint-plugin-react-intl
github: https://github.com/calm/eslint-plugin-react-intl
This is a plugin to ensure that Intl translations are being made correctly with react-intl. Since they should be stored in an object for translation, this disables plain text between html tags.
There are three options to enable, and we recommend enabling all of them to ensure proper translations in all languages.
The { noTrailingWhitespace: true } option is set by default and is not necessary to declare in the rules section.
This is recommended as some languages don't have spaces between words.
Additionally, the option ignoreLinks is set to true by default. Depending on your
use case, you may want to disable this.
<a> tags by default are not checked (this can be disabled){variable} declarations must be declared in the values attributenumberdefaultMessage and id attributes setdefaultMessage and id attributes cannot be emptyYou'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-react-intl-format:
$ npm install eslint-plugin-react-intl-format --save-dev
Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-react-intl-format globally.
Add react-intl-format to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"react-intl-format"
]
}
Then configure the rules you want to use under the rules section. Currently there's just one rule: 'missing-formatted-message'.
{
"rules": {
"react-intl-format/missing-formatted-message": [2, { "noTrailingWhitespace": true, "ignoreLinks": true }],
"react-intl-format/missing-attribute": [2, { "noTrailingWhitespace": true, "noSpreadOperator": true }],
"react-intl-format/missing-values": 2
}
}
FAQs
Linter for React-Intl integration
We found that eslint-plugin-react-intl-format 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
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.