Skip to content

Conversation

@iphydf
Copy link
Member

@iphydf iphydf commented Feb 20, 2025

This change is Reviewable

@iphydf iphydf added this to the master milestone Feb 20, 2025
{
resolve: "gatsby-source-filesystem",
options: {
path: `${__dirname}/content`,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'template literal syntax' is only available in ES6 (use 'esversion: 6').

{
resolve: "gatsby-source-filesystem",
options: {
path: `${__dirname}/content`,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'template literal syntax' is only available in ES6 (use 'esversion: 6').

@github-actions github-actions bot added the refactor Refactoring production code, eg. renaming a variable, not affecting semantics label Feb 20, 2025
@iphydf iphydf force-pushed the redesign branch 2 times, most recently from 9ae8e06 to 32a48a2 Compare February 20, 2025 23:50
const { createFilePath } = require(`gatsby-source-filesystem`);

exports.createPages = async ({ graphql, actions }) => {
const { createPage } = actions;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
Expected ')' to match '{' from line 4 and instead saw '{'.
Expected an identifier and instead saw 'const' (a reserved word).
Missing semicolon.
Unrecoverable syntax error. (7% scanned).

const path = require(`path`);
const { createFilePath } = require(`gatsby-source-filesystem`);

exports.createPages = async ({ graphql, actions }) => {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'object short notation' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
Expected '(' and instead saw '{'.

@@ -0,0 +1,64 @@
const path = require(`path`);
const { createFilePath } = require(`gatsby-source-filesystem`);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
'destructuring binding' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
'template literal syntax' is only available in ES6 (use 'esversion: 6').

@@ -0,0 +1,64 @@
const path = require(`path`);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
'template literal syntax' is only available in ES6 (use 'esversion: 6').

@github-actions
Copy link

github-actions bot commented Feb 20, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor Refactoring production code, eg. renaming a variable, not affecting semantics

Development

Successfully merging this pull request may close these issues.

1 participant