Skip to content

Commit

Permalink
fix(remix-eslint-config): use require.resolve when importing `@babe…
Browse files Browse the repository at this point in the history
…l/preset-react` (#3716)

* fix(remix-eslint-config): use `require.resolve` when importing `@babel/preset-react`

* Create blue-starfishes-study.md

Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
  • Loading branch information
kiancross and kentcdodds committed Jul 13, 2022
1 parent 3c6c798 commit 465b7fa
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changeset/blue-starfishes-study.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"remix": patch
"@remix-run/eslint-config": patch
---

fix(remix-eslint-config): use `require.resolve` when importing `@babel/preset-react`
1 change: 1 addition & 0 deletions contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -391,3 +391,4 @@
- zainfathoni
- zhe
- garand
- kiancross
2 changes: 1 addition & 1 deletion packages/remix-eslint-config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const config = {
requireConfigFile: false,
ecmaVersion: "latest",
babelOptions: {
presets: ["@babel/preset-react"],
presets: [require.resolve("@babel/preset-react")],
},
},
env: {
Expand Down

0 comments on commit 465b7fa

Please sign in to comment.