eslint-plugin-lingui weekly downloads statistics
By lingui (4 listings) · npm · ESLint plugins
ESLint plugin for Lingui
eslint-plugin-lingui has 258,234 recorded weekly downloads on npm, a decrease of 16.0% over the past 30 days, ranking #368 of 2,322 tracked listings.
About eslint-plugin-lingui
<div align="center">An ESLint Plugin For Lingui<sub>js</sub></div>
<div align="center">Set of eslint rules for Lingui projects <img src="https://img.shields.io/badge/beta-yellow"/>
</div>Installation
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.
Flat Config (eslint.config.js)
Recommended Setup
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.
Custom setup
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...
]
Legacy Config (.eslintrc)
Recommended setup
To enable all of the recommended rules for our plugin, add plugin:lingui/recommended in extends:
{
"extends": ["plugin:lingui/recommended"]
}
Custom setup
Alternatively, add lingui to the plugins section, and configure the rules you want to use:
{
"plugins": ["lingui"],
"rules": {
"lingui/t-call-in-function": "error"
}
}
Oxlint
The plugin also works as an Oxlint JS plugin without any changes. Add it to jsPlugins in your .oxlintrc.json and enable the rules you need. Oxlint doesn't read the plugin's configs, so the recommended rules have to be listed explicitly:
{
"jsPlugins": ["eslint-plugin-lingui"],
"rules": {
"lingui/t-call-in-function": "error",
"lingui/no-single-tag-to-translate": "warn",
"lingui/no-single-variables-to-translate": "warn",
"lingui/no-trans-inside-trans": "warn",
"lingui/no-expression-in-message": "warn"
}
}
Compatibility is verified in CI on every change. The only known limitation is the useTsTypes option of no-unlocalized-strings: it needs type information from @typescript-eslint/parser, which Oxlint doesn't provide.
Rules
✅ - Recommended
- ✅ no-expression-in-message
- ✅ no-single-tag-to-translate
- ✅ no-single-variables-to-translate
- ✅ no-trans-inside-trans
- ✅ t-call-in-function
- no-unnamed-tag-placeholders
- no-unlocalized-strings
- text-restrictions
- consistent-plural-format
- no-plural-inside-trans
- require-explicit-id
- require-implicit-id
- require-comment
- require-directive-reset
Description from the npm listing.
- eslint
- eslintplugin
- eslint-plugin
- lingui
- linguijs
- lingui-js
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (122)Similar npm ESLint plugins plugins
All 20 eslint-plugin-lingui alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/eslint-plugin-lingui. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.