[Tech Debt]: Add react/jsx-curly-brace-presence eslint rule #1953
Labels
infrastructure
Anything non feature/* related that improves general working of the Dashboard
kind/tech-debt
A technical debt item for the development team. E.g. Refactors / Tests / etc
Type
General Tech Debt (eg. Improve the way something exists today)
Source
No response
Description
Currently, in our code, we can see different ways of passing a string to component props or children.
For example, we can see:
vs
or
For component children, we can see:
vs
Which are really inconsistent. We should look into using https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-curly-brace-presence.md to make it consistent. My suggestion is we should get rid of all the curly braces and quotes when it's unnecessary.
Why?
Make the code style more consistent.
Anything else?
No response
The text was updated successfully, but these errors were encountered: