Skip to content

Commit 42b3496

Browse files
committed
Revert linting changes to focus on logic
Signed-off-by: Rishi Raj <rishiraj438gt@gmail.com>
1 parent 83035c1 commit 42b3496

File tree

1 file changed

+5
-16
lines changed

1 file changed

+5
-16
lines changed

gatsby-node.js

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,7 @@ exports.createPages = async ({ actions, graphql, reporter }) => {
4646
};
4747

4848
const blogPostTemplate = path.resolve("src/templates/blog-single.js");
49-
const blogCategoryListTemplate = path.resolve(
50-
"src/templates/blog-category-list.js",
51-
);
49+
const blogCategoryListTemplate = path.resolve("src/templates/blog-category-list.js");
5250
const blogTagListTemplate = path.resolve("src/templates/blog-tag-list.js");
5351

5452
const EventsTemplate = path.resolve("src/templates/events.js");
@@ -61,9 +59,7 @@ exports.createPages = async ({ actions, graphql, reporter }) => {
6159

6260
const ProgramPostTemplate = path.resolve("src/templates/program-single.js");
6361

64-
const MultiProgramPostTemplate = path.resolve(
65-
"src/templates/program-multiple.js",
66-
);
62+
const MultiProgramPostTemplate = path.resolve("src/templates/program-multiple.js");
6763

6864
const CareerPostTemplate = path.resolve("src/templates/career-single.js");
6965

@@ -77,9 +73,7 @@ exports.createPages = async ({ actions, graphql, reporter }) => {
7773

7874
const resourcePostTemplate = path.resolve("src/templates/resource-single.js");
7975
const integrationTemplate = path.resolve("src/templates/integrations.js");
80-
const LitePlaceholderTemplate = path.resolve(
81-
"src/templates/lite-placeholder.js",
82-
);
76+
const LitePlaceholderTemplate = path.resolve("src/templates/lite-placeholder.js");
8377

8478
const memberBioQuery = isFullSiteBuild
8579
? `
@@ -671,7 +665,7 @@ exports.onCreateNode = ({ node, actions, getNode }) => {
671665
case "resources":
672666
if (node.frontmatter.published)
673667
slug = `/${collection}/${slugify(
674-
node.frontmatter.category,
668+
node.frontmatter.category
675669
)}/${slugify(node.frontmatter.title)}`;
676670
break;
677671
case "members":
@@ -831,12 +825,7 @@ exports.onCreateWebpackConfig = ({ actions, stage, getConfig }) => {
831825
});
832826

833827
// Reduce memory pressure by disabling sourcemaps in dev and build
834-
if (
835-
stage === "develop" ||
836-
stage === "develop-html" ||
837-
stage === "build-javascript" ||
838-
stage === "build-html"
839-
) {
828+
if (stage === "develop" || stage === "develop-html" || stage === "build-javascript" || stage === "build-html") {
840829
const config = getConfig();
841830
config.devtool = false;
842831
const miniCssExtractPlugin = config.plugins.find(

0 commit comments

Comments
 (0)