
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.
@gitlab/eslint-plugin-i18n
Advanced tools
Detect and autofix strings which require externalization in Vanilla JS files.
Detect and autofix strings which require externalization in Vanilla JS files.
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install @gitlab/eslint-plugin-i18n
:
$ npm install @gitlab/eslint-plugin-i18n --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install @gitlab/eslint-plugin-i18n
globally.
Add @gitlab/eslint-plugin-i18n
to the plugins section of your .eslintrc
configuration file. You can omit the @gitlab/eslint-plugin-
prefix:
JSON:
{
"plugins": ["@gitlab/i18n"]
}
YAML:
plugins:
- @gitlab/i18n
Then configure the rules you want to use under the rules section.
JSON:
{
"rules": {
"@gitlab/i18n/no-non-i18n-strings": "error"
}
}
YAML:
rules:
"@gitlab/i18n/no-non-i18n-strings": error
@gitlab/eslint-plugin-i18n
can also detect strings requiring externalization for code within the <script></script>
tags of a .vue file.
.vue
to your linting configurationtext.html.vue
to your list of scopesPlease refer to gitlab-ce's CONTRIBUTING.md for details on our guidelines.
FAQs
Detect and autofix strings which require externalization in Vanilla JS files.
The npm package @gitlab/eslint-plugin-i18n receives a total of 1,411 weekly downloads. As such, @gitlab/eslint-plugin-i18n popularity was classified as popular.
We found that @gitlab/eslint-plugin-i18n demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 11 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
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.