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

0.8.0: Invalid configuration for no-unlocalized-strings (should NOT have additional properties) #85

Closed
ptmkenny opened this issue Nov 23, 2024 · 1 comment

Comments

@ptmkenny
Copy link

I just updated to 0.8.0 from 0.7. In .eslintrc.yml, I removed my original config for lingui/no-unlocalized-strings and I replaced it with the suggested starter configuration in the docs.

However, when I check with eslint, it immediately fails:

Error: .eslintrc.yml:
	Configuration for rule "lingui/no-unlocalized-strings" is invalid:
	Value {"useTsTypes":true,"ignore":["^(?![A-Z].*|\\w+\\s\\w+).+$","^[A-Z0-9_-]+$"],"ignoreNames":[{"regex":{"pattern":"className","flags":"i"}},{"regex":{"pattern":"^[A-Z0-9_-]+$"}},"styleName","src","srcSet","type","id","width","height","displayName","Authorization"],"ignoreFunctions":["dumpDebugInfo","this.dumpDebugInfo","cva","cn","track","Error","console.*","*headers.set","*.addEventListener","*.removeEventListener","*.postMessage","*.getElementById","*.dispatch","*.commit","*.includes","*.indexOf","*.endsWith","*.startsWith","require"],"ignoreMethodsOnType":["Map.get","Map.has","Set.has"]} should NOT have additional properties.

The problem seems to be ignoreMethodsType; when I remove that and Map.get, Map.has, and Set.has, then the eslint check runs fine.

@timofei-iatsenko
Copy link
Collaborator

timofei-iatsenko commented Nov 24, 2024

Thanks for the info. It should be ignoreMethodsOnTypes (with s at the end) i fixed it there #84

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants