Skip to content

Commit

Permalink
[New] jsx-runtime: set parserOptions.jsxPragma for `@typescript-e…
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Aug 25, 2021
1 parent 130afb1 commit bb64df6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -11,6 +11,7 @@ This change log adheres to standards from [Keep a CHANGELOG](http://keepachangel
* [`jsx-no-target-blank`]: add `forms` option ([#1617][] @jaaberg)
* [`jsx-pascal-case`]: add `allowLeadingUnderscore` option ([#3039][] @pangaeatech)
* [`no-children-prop`]: Add `allowFunctions` option ([#1903][] @alexzherdev)
* [`jsx-runtime`]: set `parserOptions.jsxPragma` for `@typescript-eslint/parser` ([e382d3d3][] @ljharb)

### Fixed
* component detection: use `estraverse` to improve component detection ([#2992][] @Wesitos)
Expand All @@ -32,6 +33,7 @@ This change log adheres to standards from [Keep a CHANGELOG](http://keepachangel
* [Tests] add weekly scheduled smoke tests ([#2963][] @AriPerkkio)
* [Docs] improve instructions for `jsx-runtime` config ([#3052][] @ljharb)

[e382d3d3]: https://github.com/yannickcr/eslint-plugin-react/commit/e382d3d3283fcdaf0ae34662554bfee157a2fc3b
[#3052]: https://github.com/yannickcr/eslint-plugin-react/issues/3052
[#3051]: https://github.com/yannickcr/eslint-plugin-react/pull/3051
[#3049]: https://github.com/yannickcr/eslint-plugin-react/pull/3049
Expand Down
3 changes: 2 additions & 1 deletion index.js
Expand Up @@ -168,7 +168,8 @@ module.exports = {
parserOptions: {
ecmaFeatures: {
jsx: true
}
},
jsxPragma: null // for @typescript/eslint-parser
},
rules: {
'react/react-in-jsx-scope': 0,
Expand Down

0 comments on commit bb64df6

Please sign in to comment.