Package Exports
- eslint-plugin-i18n-lingui
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (eslint-plugin-i18n-lingui) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
eslint-plugin-i18n-lingui
ESLint Plugin to enforce i18n best practices.
Installation
Local Development
clone the repo in the parent directory of your project
Add the plugin to your project's
node_modules:$ yarn add ../eslint-plugin-i18n-lingui --save-devIn your project's
.eslintrc.js, addmodule.exports = { ... plugins: [ "i18n-lingui" ], rules: { "i18n-lingui/no-eval-in-placeholder": 1, // warning "i18n-lingui/prefer-unicode-ellipsis": 2, // error } }
List of supported rules
| Has Fixer | Rule | Description |
|---|---|---|
| no-eval-in-placeholder | No evaluation of placeholder values in wrapped strings | |
| ✔️ | i18n-lingui/prefer-unicode-ellipsis | Detects three periods in Trans or t tag wrapped strings |