
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
eslint-plugin-t
Advanced tools
This plugin contains lint rules related to internationalization, particularly for strings wrapped in `t()`.
This plugin contains lint rules related to internationalization, particularly for strings wrapped in t()
.
Add eslint-plugin-t
to your devDependencies.
Add t
to the plugins
section of your ESLint configuration.
{
"plugins": ["t"]
}
{
"rules": {
"t/string-literal": "warn"
}
}
Currently there's only one rule.
string-literal
Ensures that only a string literal can be passed as the first argument to t()
.
Example:
// Correct usage (no lint warning)
alert(t('Hello World!'));
// Incorrect usage (raises lint warning)
alert(t('Hello' + name + '!'));
FAQs
This plugin contains lint rules related to internationalization, particularly for strings wrapped in `t()`.
The npm package eslint-plugin-t receives a total of 361 weekly downloads. As such, eslint-plugin-t popularity was classified as not popular.
We found that eslint-plugin-t 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.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.