Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ci): add eslint rule prefer-template #12889

Merged
merged 1 commit into from
Feb 28, 2024

Conversation

Swiftb0y
Copy link
Member

@Swiftb0y Swiftb0y commented Feb 28, 2024

Due to the fact that our CO's are stringly typed, a lot of accesses to CO's from javascript need to assemble the CO's key or group from other components. In Mixxx 2.4, the QJSEngine- based controler engine allows us to use ES6 string-template-literals (eg `[EffectRack1_EffectUnit${n}_Effect${m}]` which make these assembled strings a lot easier to read than compared to the same string assembled using string-concatination
("[EffectRack1_EffectUnit" + n + "_Effect" + m + "]").

Due to the fact that our CO's are stringly typed, a lot of
accesses to CO's from javascript need to assemble the CO's
key or group from other components. In Mixxx 2.4, the QJSEngine-
based controler engine allows us to use ES6
string-template-literals (eg `[EffectRack1_EffectUnit${n}_Effect${m}]`
which make these assembled strings
a lot easier to read than compared to the same string assembled
using string-concatination
("[EffectRack1_EffectUnit" + n + "_Effect" + m + "]").
@Swiftb0y Swiftb0y changed the base branch from main to 2.4 February 28, 2024 06:33
Copy link
Member

@daschuer daschuer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable

@daschuer daschuer merged commit cf1c4dc into mixxxdj:2.4 Feb 28, 2024
11 of 13 checks passed
@Swiftb0y Swiftb0y deleted the feat/eslint-prefer-template branch February 28, 2024 07:25
@Swiftb0y
Copy link
Member Author

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants