Browse Source

Fix prettier reformatting levels.json text

Thomas Dy 3 years ago
parent
commit
5f10e39d04
2 changed files with 3 additions and 2 deletions
  1. 2 1
      prettier.config.js
  2. 1 1
      src/index.html

+ 2 - 1
prettier.config.js

@@ -1,3 +1,4 @@
 module.exports = {
-  "singleQuote": true
+  "singleQuote": true,
+  "htmlWhitespaceSensitivity": "strict"
 }

+ 1 - 1
src/index.html

@@ -113,7 +113,7 @@
         </template>
       </template>
     </div>
-    <script id="levels" type="text/plain">levels.json</script>
+    <span id="levels" hidden>levels.json</span>
     <script type="module" src="index.js"></script>
   </body>
 </html>