š Pluggable and configurable JavaScript Linter, code transformer and formatter, drop-in ESLint superpower replacement šŖ with built-in support for js, jsx, typescript, flow, markdown, yaml and json. Write declarative codemods in a simplest possible way š
> inside React components is transformed into > automatically and uncontrolled, however, this behaviour causes troubles with other tools, such as prettier.
I understand that this is semi-correct behaviour and is generally handled by various transforms, but e.g. prettier+typescript that is embedded in my pipeline crashes on this transformation with this error:
SyntaxError: Unexpected token. Did you mean `{'>'}` or `>`?
I can see that this transform gets disabled in case when pair of braces is used, so I guess this is some explicit internal behavior.
I recommend to move it to separate transformation (maybe enabled-by-default) so it can be optionally disabled to preserve compatibility with other linting tools in pipeline.
I'm currently replacing all >s in my code with {">"}, but I hope it can be fixed in a future.
>
inside React components is transformed into>
automatically and uncontrolled, however, this behaviour causes troubles with other tools, such as prettier.E.g. (Putout 35.37.1 is used in this example)
produces
I understand that this is semi-correct behaviour and is generally handled by various transforms, but e.g. prettier+typescript that is embedded in my pipeline crashes on this transformation with this error:
I can see that this transform gets disabled in case when pair of braces is used, so I guess this is some explicit internal behavior.
I recommend to move it to separate transformation (maybe enabled-by-default) so it can be optionally disabled to preserve compatibility with other linting tools in pipeline.
I'm currently replacing all
>
s in my code with{">"}
, but I hope it can be fixed in a future.