An ESLint plugin providing lint rules for internationalization, especially for strings wrapped in `t()` calls. The current stable version is 1.7.1. It helps enforce consistent use of translation function `t()` and can detect missing translations or incorrect usage. Compared to other i18n lint plugins, it focuses specifically on the `t()` pattern used in many JavaScript projects. Release cadence is irregular as it's a smaller community project.
npm install eslint-plugin-tNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic setup of eslint-plugin-t with two rules and demonstrates linting behavior on t() usage.
Update import to use 'eslint-plugin-t' and configure rules under plugins and rules
Replace 't/no-literal-string' with 't/valid-t-usage'
Add declare function t(key: string): string; in your project's types
Update rule configs to use 'error' or 'warn' strings
Run npm install --save-dev eslint-plugin-t
Add 't' to the plugins array in your ESLint config
Access rules via imported plugin object: plugin.rules['t-no-literal-string']