Skip to content

Commit

Permalink
feat(gatsby-remark-prismjs): fix eslint no-redeclare
Browse files Browse the repository at this point in the history
  • Loading branch information
Rubén Below committed Feb 22, 2020
1 parent 5e9e8b7 commit a6b52bb
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ module.exports = (language = `javascript`) => {
}
}

for (var name in grammar) { // eslint-disable-line no-redeclare, prettier/prettier
/* eslint-disable no-redeclare */
for (var name in grammar) {
/* eslint-enable no-redeclare */
if (grammar.hasOwnProperty(name) && !invisibles[name]) {
if (name === `rest`) {
addInvisibles(grammar[`rest`])
Expand Down

0 comments on commit a6b52bb

Please sign in to comment.