eslint-plugin-i18next
Advanced tools
Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "eslint-plugin-i18next", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "ESLint plugin for i18n", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -44,2 +44,16 @@ # eslint-plugin-i18next | ||
The `--fix` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#fixing-problems) can automatically fix some of the problems reported by this rule. | ||
Literay strings that are not constant string (all characters are `UPPERCASE`) are typically mistakes. For example: | ||
```js | ||
const foo = 'foo'; | ||
``` | ||
They are frowned upon in favor of internationalization: | ||
```js | ||
const foo = i18next.t('foo'); // wrapped by i18n translation function | ||
``` | ||
### Rule Details | ||
@@ -46,0 +60,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14072
149