Open sanyavertolet opened 1 year ago
In SAVE we use react wrappers for Kotlin/JS. There, all the default HTML tags are fields of ReactHTML object.
ReactHTML
When copy-paste, div tag becomes ReactHTML.div, which is unacceptable :)
div
ReactHTML.div
We need to create some kind of configurable rule that prohibits usage of fully-qualified name (e.g. ReactHTML)
Add a new section for JS in Diktat CodeStyle.
Very important thing. Hate this problem.
Need not to forget to update Diktat CodeStyle also (add a chapter for JS).
In SAVE we use react wrappers for Kotlin/JS. There, all the default HTML tags are fields of
ReactHTML
object.When copy-paste,
div
tag becomesReactHTML.div
, which is unacceptable :)We need to create some kind of configurable rule that prohibits usage of fully-qualified name (e.g.
ReactHTML
)Add a new section for JS in Diktat CodeStyle.