Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
eslint-plugin-signavio-i18n
Advanced tools
check rules for signavio-i18n
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-signavio-i18n
:
$ npm install eslint-plugin-signavio-i18n --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install eslint-plugin-signavio-i18n
globally.
Add signavio-i18n
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"signavio-i18n"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"signavio-i18n/rule-name": 2
}
}
translator-comment-matches-pattern
Checks if translator comment matches provided pattern.
This considered to be warning:
//'signavio-i18n/translator-comment-matches-pattern': [1, '.*, PEX-'],
// translators: toast message when user is already added
KEY: i18n('text')
// translators: toast message when user is already added PEX-5594
KEY: i18n('text')
This considered to be valid, note the comma before PEX-5594
:
//'signavio-i18n/translator-comment-matches-pattern': [1, '.*, PEX-'],
// translators: toast message when user is already added, PEX-5594
KEY: i18n('text')
no-missing-translators-comment
All translator comments must start with translators:
This considered to be warning:
// toast message when user is already added
KEY: i18n('text')
This considered to be valid:
// translators: toast message when user is already added
KEY: i18n('text')
missing-parameter
Keys used in the template, must be present in the passed configuration object.
This considered to be warning:
i18n(
'Here come __firstParam__, __secondParam__ and __missingParam__.',
{
firstParam,
secondParam,
}
)
This considered to be valid:
i18n(
'Here come __firstParam__, __secondParam__ and __thirdParam__.',
{
firstParam,
secondParam,
thirdParam,
}
)
FAQs
check rules for signavio-i18n
We found that eslint-plugin-signavio-i18n demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.