
Security News
Google’s OSV Fix Just Added 500+ New Advisories — All Thanks to One Small Policy Change
A data handling bug in OSV.dev caused disputed CVEs to disappear from vulnerability feeds until a recent fix restored over 500 advisories.
@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 7,292 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
A data handling bug in OSV.dev caused disputed CVEs to disappear from vulnerability feeds until a recent fix restored over 500 advisories.
Research
/Security News
175 malicious npm packages (26k+ downloads) used unpkg CDN to host redirect scripts for a credential-phishing campaign targeting 135+ organizations worldwide.
Security News
Python 3.14 adds template strings, deferred annotations, and subinterpreters, plus free-threaded mode, an experimental JIT, and Sigstore verification.