https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41324

--- Comment #11 from Jonathan Druart <[email protected]> ---
Why do we tidy script tags?


1. Consistency
The entire codebase is already tidy, except script tags.

2. Detect error early
Running Prettier on JS code helps catch syntax errors and potential issues
earlier


3. Clear separation of concerns
Isolate TT and JS variables make code more robust and maintainable. This
separation also paves the way for migrating JS logic to dedicated .js files

4. Predictable refactoring
Cleaning up script tags in bulk prevents unexpected large diffs later. Without
this the tidy script might suddenly reformat a script tag when the last TT tag
is removed, confusing the author of the change

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to