From 9a653ebeac1dbc6e255044236aba6c8250d1557e Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Tue, 11 Oct 2022 13:48:16 +0200 Subject: [PATCH] [Web] Add auto-formatting to HTML files. Uses html-eslint for HTML file and eslint-plugin-html for inline JavaScript. Use HTML5 (not XHTML), remove CDATA and trailing slashes for self closing tags. Add format checks to CI. --- misc/dist/html/editor.html | 1417 ++++++++++++++-------------- misc/dist/html/full-size.html | 442 +++++---- misc/dist/html/offline-export.html | 71 +- misc/dist/html/offline.html | 74 +- platform/web/.eslintrc.html.js | 19 + platform/web/package-lock.json | 327 ++++++- platform/web/package.json | 15 +- 7 files changed, 1325 insertions(+), 1040 deletions(-) create mode 100644 platform/web/.eslintrc.html.js diff --git a/misc/dist/html/editor.html b/misc/dist/html/editor.html index c9f3c2cc0d11..93afbf085d6f 100644 --- a/misc/dist/html/editor.html +++ b/misc/dist/html/editor.html @@ -1,752 +1,757 @@ - - - - - - - - - - - - - - - - - - - - - - - - - Godot Engine Web Editor (@GODOT_VERSION@) - - - -