sourcery
sourcery copied to clipboard
JavaScript class pattern
Checklist
- [x] This is a new feature, not a refactoring suggestion
- [x] I have checked for this feature in the Sourcery documentation
- [x] I have checked there are no open requests referencing the same feature
Description
The class syntax for pattern matching is not really suitable for JavaScript, as the current syntax requires : to be on the same line.
The pattern can't be used for JavaScript as their classes do not use :, but only class ${name}.