From 468e7018ba7b892890c106547dc2d33f07ca0d6f Mon Sep 17 00:00:00 2001 From: Scotty Eckenthal Date: Thu, 21 Dec 2017 15:42:18 -0500 Subject: [PATCH 1/3] Fix wrong plugin name leftover from name-change --- docs/docs/plugins.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/plugins.md b/docs/docs/plugins.md index d5ed554e48071..b1b420d0cec82 100644 --- a/docs/docs/plugins.md +++ b/docs/docs/plugins.md @@ -77,7 +77,7 @@ root. ## Official plugins * [gatsby-plugin-catch-links](/packages/gatsby-plugin-catch-links/) -* [gatsby-plugin-client-only-paths](/packages/gatsby-plugin-client-only-paths/) +* [gatsby-plugin-create-client-paths](/packages/gatsby-plugin-create-client-paths/) * [gatsby-plugin-coffeescript](/packages/gatsby-plugin-coffeescript/) * [gatsby-plugin-feed](/packages/gatsby-plugin-feed/) * [gatsby-plugin-glamor](/packages/gatsby-plugin-glamor/) From 16d45e11aa348a907bb425f9afccaa8319836bf8 Mon Sep 17 00:00:00 2001 From: Kyle Mathews Date: Thu, 21 Dec 2017 12:51:33 -0800 Subject: [PATCH 2/3] Work around stupid eslint rule --- packages/gatsby-remark-embed-snippet/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/gatsby-remark-embed-snippet/src/index.js b/packages/gatsby-remark-embed-snippet/src/index.js index 715f24b4baddb..b4b3184265500 100644 --- a/packages/gatsby-remark-embed-snippet/src/index.js +++ b/packages/gatsby-remark-embed-snippet/src/index.js @@ -55,7 +55,7 @@ module.exports = ( // This method removes lines that contain only highlight directives, // eg 'highlight-next-line' or 'highlight-range' comments. - function filterDirectives(line, index) { + const filterDirectives = (line, index) => { if (line.includes(`highlight-next-line`)) { // Although we're highlighting the next line, // We can use the current index since we also filter this lines. From c5967d2cc1701e8eddb5ca5ca0db8d1e47b96a8d Mon Sep 17 00:00:00 2001 From: Kyle Mathews Date: Thu, 21 Dec 2017 12:53:05 -0800 Subject: [PATCH 3/3] Actually just disable the rule --- .eslintrc | 1 + packages/gatsby-remark-embed-snippet/src/index.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.eslintrc b/.eslintrc index 025abf510e442..81f9691a139cb 100644 --- a/.eslintrc +++ b/.eslintrc @@ -27,6 +27,7 @@ }, "rules": { "no-console": "off", + "no-inner-declarations": "off", "valid-jsdoc": "off", "require-jsdoc": "off", "quotes": ["error", "backtick"], diff --git a/packages/gatsby-remark-embed-snippet/src/index.js b/packages/gatsby-remark-embed-snippet/src/index.js index b4b3184265500..715f24b4baddb 100644 --- a/packages/gatsby-remark-embed-snippet/src/index.js +++ b/packages/gatsby-remark-embed-snippet/src/index.js @@ -55,7 +55,7 @@ module.exports = ( // This method removes lines that contain only highlight directives, // eg 'highlight-next-line' or 'highlight-range' comments. - const filterDirectives = (line, index) => { + function filterDirectives(line, index) { if (line.includes(`highlight-next-line`)) { // Although we're highlighting the next line, // We can use the current index since we also filter this lines.