This repository has been archived by the owner on Aug 31, 2023. It is now read-only.
🐛 noconstructorreturn doesn't make sense in ES6 #4471
Labels
S-To triage
Status: user report of a possible bug that needs to be triaged
Environment information
What happened?
The default rome lint rule https://docs.rome.tools/lint/rules/noconstructorreturn/
does not make sense in ES6, which is marking creation of OOP-style singletons as incorrect. Blindly copy-pasting rules from eslint, imo, is not a good idea.
Consider the following code:
Sadly, #4005 turned into a noop.
Expected result
https://docs.rome.tools/lint/rules/noconstructorreturn/
should not be the default.
Code of Conduct
The text was updated successfully, but these errors were encountered: