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

[DX] Lint: react/no-unescaped-entities #383

Open
AleksandarDev opened this issue Nov 23, 2022 · 2 comments
Open

[DX] Lint: react/no-unescaped-entities #383

AleksandarDev opened this issue Nov 23, 2022 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers question Further information is requested

Comments

@AleksandarDev
Copy link
Member

I think escaping special chars in component content is good practice.

"react/no-unescaped-entities": 0,

Proposed:

"react/no-unescaped-entities": "error",

Can we vote on this?

@AleksandarDev AleksandarDev added enhancement New feature or request good first issue Good for newcomers question Further information is requested labels Nov 23, 2022
@radovix
Copy link
Member

radovix commented Nov 23, 2022

@AleksandarDev how should we handle cases when text is not hardcoded, but received from backend? Write something like encode everywhere?

@AleksandarDev
Copy link
Member Author

AleksandarDev commented Nov 23, 2022

@radovix I think in that case this shouldnt be a problem, because linting is done only in development/pre-build, not on actual element content in runtime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants