Skip to content

Commit

Permalink
Extend react/jsx-runtime, since we are now using the JSX transform (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mrm007 committed Jul 6, 2023
1 parent 14d8aad commit 971455c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/lemon-moles-pretend.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'eslint-config-seek': minor
---

Extend `react/jsx-runtime`, since we are now using the [JSX transform](https://legacy.reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html)
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ const eslintConfig = {
},
},
plugins: ['react', 'react-hooks'],
extends: ['plugin:react/recommended', './base.js'],
extends: [
'plugin:react/recommended',
'plugin:react/jsx-runtime',
'./base.js',
],
parserOptions: {
babelOptions: {
presets: [require.resolve('@babel/preset-react')],
Expand Down

0 comments on commit 971455c

Please sign in to comment.