Skip to content

Commit

Permalink
chore(gatsby): Tweak eslint not to emit no-use-before-define on func …
Browse files Browse the repository at this point in the history
…decls (#21584)
  • Loading branch information
pvdz authored Feb 19, 2020
1 parent 8234336 commit 6d0e1ad
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,10 @@ module.exports = {
"error",
"interface",
],

"@typescript-eslint/no-use-before-define": [
"error",
{ functions: false },
],
// Allows us to write unions like `type Foo = "baz" | "bar"`
// otherwise eslint will want to switch the strings to backticks,
// which then crashes the ts compiler
Expand Down

0 comments on commit 6d0e1ad

Please sign in to comment.