
Security News
NVD Concedes Inability to Keep Pace with Surging CVE Disclosures in 2025
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
eslint-plugin-lingui
Advanced tools
Set of eslint rules for Lingui projects
You'll first need to install ESLint:
npm install --save-dev eslint
# or
yarn add eslint --dev
Next, install eslint-plugin-lingui
:
npm install --save-dev eslint-plugin-lingui
# or
yarn add eslint-plugin-lingui --dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install eslint-plugin-lingui
globally.
eslint.config.js
)To enable all the recommended rules for our plugin, add the following config:
import pluginLingui from 'eslint-plugin-lingui'
export default [
pluginLingui.configs['flat/recommended'],
// Any other config...
]
We also recommend enabling the no-unlocalized-strings rule. It’s not enabled by default because it needs to be set up specifically for your project. Please check the rule's documentation for example configurations.
Alternatively, you can load the plugin and configure only the rules you want to use:
import pluginLingui from 'eslint-plugin-lingui'
export default [
{
plugins: {
lingui: pluginLingui,
},
rules: {
'lingui/t-call-in-function': 'error',
},
},
// Any other config...
]
.eslintrc
)To enable all of the recommended rules for our plugin, add plugin:lingui/recommended
in extends:
{
"extends": ["plugin:lingui/recommended"]
}
Alternatively, add lingui
to the plugins section, and configure the rules you want to use:
{
"plugins": ["lingui"],
"rules": {
"lingui/t-call-in-function": "error"
}
}
✅ - Recommended
FAQs
ESLint plugin for Lingui
The npm package eslint-plugin-lingui receives a total of 41,190 weekly downloads. As such, eslint-plugin-lingui popularity was classified as popular.
We found that eslint-plugin-lingui demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
Security Fundamentals
Attackers use obfuscation to hide malware in open source packages. Learn how to spot these techniques across npm, PyPI, Maven, and more.
Security News
Join Socket for exclusive networking events, rooftop gatherings, and one-on-one meetings during BSidesSF and RSA 2025 in San Francisco.