Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ignoreProperty does not work as expected #37

Open
yslpn opened this issue May 1, 2024 · 0 comments
Open

ignoreProperty does not work as expected #37

yslpn opened this issue May 1, 2024 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@yslpn
Copy link

yslpn commented May 1, 2024

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,
      {
        ignoreProperty: ["displayName"],
      },
    ],

The first line is without an error, and the second is with an error:

const obj = { displayName: "TimeInput" };
obj.displayName = "TimeInput";
image
@andrii-bodnar andrii-bodnar added bug Something isn't working help wanted Extra attention is needed labels May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants