DEV: Apply prettier

DEV: Apply prettier

diff --git a/assets/javascripts/lib/discourse-markdown/spoiler-alert.js.es6 b/assets/javascripts/lib/discourse-markdown/spoiler-alert.js.es6
index ba365a6..0d07a20 100644
--- a/assets/javascripts/lib/discourse-markdown/spoiler-alert.js.es6
+++ b/assets/javascripts/lib/discourse-markdown/spoiler-alert.js.es6
@@ -1,7 +1,7 @@
-import { registerOption } from 'pretty-text/pretty-text';
+import { registerOption } from "pretty-text/pretty-text";
 
 registerOption((siteSettings, opts) => {
-  opts.features['spoiler-alert'] = !!siteSettings.spoiler_enabled;
+  opts.features["spoiler-alert"] = !!siteSettings.spoiler_enabled;
 });
 
 const CONTAINS_BLOCK_REGEX = /\n|<img|!\[[^\]]*\][(\[]/;
@@ -13,31 +13,36 @@ function insertSpoiler(_, spoiler) {
 
 function replaceSpoilers(text) {
   text = text || "";
-  while (text !== (text = text.replace(/\[spoiler\]((?:(?!\[spoiler\]|\[\/spoiler\])[\S\s])*)\[\/spoiler\]/ig, insertSpoiler)));
+  while (
+    text !==
+    (text = text.replace(
+      /\[spoiler\]((?:(?!\[spoiler\]|\[\/spoiler\])[\S\s])*)\[\/spoiler\]/gi,
+      insertSpoiler
+    ))
+  );
   return text;
 }
 
 function setupMarkdownIt(helper) {
-
   helper.registerOptions((opts, siteSettings) => {
-    opts.features['spoiler-alert'] = !!siteSettings.spoiler_enabled;
+    opts.features["spoiler-alert"] = !!siteSettings.spoiler_enabled;
   });
 
   helper.registerPlugin(md => {
-    md.inline.bbcode.ruler.push('spoiler', {
-      tag: 'spoiler',
-      wrap: 'span.spoiler'
+    md.inline.bbcode.ruler.push("spoiler", {
+      tag: "spoiler",
+      wrap: "span.spoiler"
     });
 
-    md.block.bbcode.ruler.push('spoiler', {
-      tag: 'spoiler',
-      wrap: 'div.spoiler'
+    md.block.bbcode.ruler.push("spoiler", {
+      tag: "spoiler",
+      wrap: "div.spoiler"
     });
   });
 }
 
 export function setup(helper) {
-  helper.whiteList([ 'span.spoiler', 'div.spoiler' ]);
+  helper.whiteList(["span.spoiler", "div.spoiler"]);
 
   if (helper.markdownIt) {
     setupMarkdownIt(helper);

GitHub
sha: fc23d10d