-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[v2] fix eslint warnings #5121
[v2] fix eslint warnings #5121
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,10 +5,8 @@ const _ = require(`lodash`) | |
const { bindActionCreators } = require(`redux`) | ||
const { stripIndent } = require(`common-tags`) | ||
const report = require(`gatsby-cli/lib/reporter`) | ||
const glob = require(`glob`) | ||
const path = require(`path`) | ||
const fs = require(`fs`) | ||
const { joinPath } = require(`../utils/path`) | ||
const { hasNodeChanged, getNode } = require(`./index`) | ||
const { trackInlineObjectsInRootNode } = require(`../schema/node-tracking`) | ||
const { store } = require(`./index`) | ||
|
@@ -347,12 +345,6 @@ actions.deleteNodes = (nodes: any[], plugin: Plugin) => { | |
plugin, | ||
payload: nodes, | ||
} | ||
|
||
if (deleteDescendantsActions) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removed this as eslint marked it as unreachable. Should deleting descendants still be included? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah — this might be a bad merge. If you look at There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've reverted this, handling it in #5106 instead. |
||
return [...deleteDescendantsActions, deleteNodesAction] | ||
} else { | ||
return deleteNodesAction | ||
} | ||
} | ||
|
||
const typeOwners = {} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couldn't figure out how to get babel-eslint to like the optional chaining here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, noticed that too — it must not be setup to use or repo babel setup
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is one specific minor version that it works with...I'll find it I have it set in another project but don't remember off the top of my head :P
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that'd be ace, thanks :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
its
8.2.1
and earlier i think, you can pin to that specific version tho, any higher and it's broken. babel/babel-eslint#595There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated, thanks!