eslint-plugin icon indicating copy to clipboard operation
eslint-plugin copied to clipboard

Set of ESLint rules for Lingui projects

Results 32 eslint-plugin issues
Sort by recently updated
recently updated
newest added

I'm using lingui/no-unlocalized-strings and it's showing warnings about attributes that shouldn't be localized, for example: ``` // getting error disallow literal stringeslint(lingui/no-unlocalized-strings) ``` usually I would solve it with `ignoreAttribute`,...

If i have `ignoreProperty: ["ignoreThis"]` option set for `no-unlocalized-string`, it would be very helpful to also ignore any strings for subkeys under the ignored property. ```ts const obj = {...

help wanted

When using the rule "no-expression-in-message", I would like to have warnings for `` tags just like they warn when using `t` ![image](https://github.com/lingui/eslint-plugin/assets/55588133/71f2c031-8f2e-4963-bd5e-29ec34c50788)

enhancement
good first issue
hacktoberfest

Here's a simple example illustrating what I think should *not* be flagged by the `no-unlocalized-strings` rule ```js const obj = { "key with space": 5 }; const value1 = obj["key...

bug
help wanted

Property should be ignored. This only happens inside an object literal, but does not work when accessing a specific property of an object. My rule: ``` "lingui/no-unlocalized-strings": [ 2, {...

bug
help wanted

There are times when the built-in checks in `no-unlocalized-strings` are wrong. i.e. `` is considered valid due to uppercase check. In our case, a lot of titles are uppercase and...

enhancement
help wanted
hacktoberfest

Let's collect here rules which might be helpful.

question

"lingui/recommended" This is my proposition for recomended set: ```json { "rules": { "lingui/missing-lingui-transformation": 2, "lingui/t-call-in-function": 2, "lingui/no-single-varibles-to-translate": 2, "lingui/i18n-only-identifiers": 1, "lingui/no-single-tag-to-translate": 2, "lingui/no-trans-inside-trans": 2, } } ``` Explanation: Almost all...

enhancement

Using this plugin with flat config is a bit cumbersome atm. It would've been nice to update it to the most recent plugin structure and provide couple flat config examples.

help wanted
good first issue

Hi there I am seeing a bit of unexpected behavior and not sure if it's something in my configuration or a misunderstanding on my part. My expectation would be that...