From 24209a3629e7d206a099f1f95eef906d26d37680 Mon Sep 17 00:00:00 2001 From: Oliver Eyton-Williams Date: Thu, 25 Feb 2021 15:38:45 +0100 Subject: [PATCH] chore: remove unused plugin and lerna package (#41258) --- client/gatsby-config.js | 32 +------------------ .../gatsby-remark-fcc-forum-emoji/index.js | 26 --------------- .../package-lock.json | 5 --- .../package.json | 5 --- lerna.json | 1 - 5 files changed, 1 insertion(+), 68 deletions(-) delete mode 100644 client/plugins/gatsby-remark-fcc-forum-emoji/index.js delete mode 100644 client/plugins/gatsby-remark-fcc-forum-emoji/package-lock.json delete mode 100644 client/plugins/gatsby-remark-fcc-forum-emoji/package.json diff --git a/client/gatsby-config.js b/client/gatsby-config.js index f13db80e38..24e2a41196 100644 --- a/client/gatsby-config.js +++ b/client/gatsby-config.js @@ -56,37 +56,7 @@ module.exports = { } }, { - resolve: 'gatsby-transformer-remark', - options: { - plugins: [ - 'gatsby-remark-fcc-forum-emoji', - { - resolve: 'gatsby-remark-prismjs', - options: { - // Class prefix for
 tags containing syntax highlighting;
-              // defaults to 'language-' (eg 
).
-              // If your site loads Prism into the browser at runtime,
-              // (eg for use with libraries like react-live),
-              // you may use this to prevent Prism from re-processing syntax.
-              // This is an uncommon use-case though;
-              // If you're unsure, it's best to use the default value.
-              classPrefix: 'language-',
-              // This is used to allow setting a language for inline code
-              // (i.e. single backticks) by creating a separator.
-              // This separator is a string and will do no white-space
-              // stripping.
-              // A suggested value for English speakers is the non-ascii
-              // character '›'.
-              inlineCodeMarker: null,
-              // This lets you set up language aliases.  For example,
-              // setting this to '{ sh: "bash" }' will let you use
-              // the language "sh" which will highlight using the
-              // bash highlighter.
-              aliases: {}
-            }
-          }
-        ]
-      }
+      resolve: 'gatsby-transformer-remark'
     },
     {
       resolve: 'gatsby-remark-node-identity',
diff --git a/client/plugins/gatsby-remark-fcc-forum-emoji/index.js b/client/plugins/gatsby-remark-fcc-forum-emoji/index.js
deleted file mode 100644
index aea993e03b..0000000000
--- a/client/plugins/gatsby-remark-fcc-forum-emoji/index.js
+++ /dev/null
@@ -1,26 +0,0 @@
-const visit = require('unist-util-visit');
-
-const emojiRE = /^:[a-z_]+:$/;
-
-function markdownToHTML(node) {
-  const { url, title, alt } = node;
-  const html = `
-  ${alt}
-  `;
-
-  return Object.assign(node, {
-    type: 'html',
-    value: html
-  });
-}
-
-module.exports = function forumEmojiPlugin({ markdownAST }) {
-  visit(markdownAST, 'image', imageNode =>
-    emojiRE.test(imageNode.title) ? markdownToHTML(imageNode) : imageNode
-  );
-};
diff --git a/client/plugins/gatsby-remark-fcc-forum-emoji/package-lock.json b/client/plugins/gatsby-remark-fcc-forum-emoji/package-lock.json
deleted file mode 100644
index 6c96e93d9c..0000000000
--- a/client/plugins/gatsby-remark-fcc-forum-emoji/package-lock.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
-  "name": "gatsby-remark-fcc-forum-emoji",
-  "version": "0.0.1",
-  "lockfileVersion": 1
-}
diff --git a/client/plugins/gatsby-remark-fcc-forum-emoji/package.json b/client/plugins/gatsby-remark-fcc-forum-emoji/package.json
deleted file mode 100644
index fd4239f539..0000000000
--- a/client/plugins/gatsby-remark-fcc-forum-emoji/package.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
-  "name": "gatsby-remark-fcc-forum-emoji",
-  "private": true,
-  "version": "0.0.1"
-}
diff --git a/lerna.json b/lerna.json
index 1af811f841..1fc9a3276f 100644
--- a/lerna.json
+++ b/lerna.json
@@ -8,7 +8,6 @@
     "tools/challenge-parser/parser",
     "tools/scripts/seed",
     "tools/scripts/build",
-    "tools/formatter",
     "tools/challenge-helper-scripts"
   ],
   "version": "independent"