Skip to content

Commit 0479acd

Browse files
committed
[Fix] configs: restore parserOptions in legacy configs
Fixes #3523
1 parent b2e069e commit 0479acd

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ This change log adheres to standards from [Keep a CHANGELOG](https://keepachange
55

66
## Unreleased
77

8+
### Fixed
9+
* configs: restore `parserOptions` in legacy configs ([#3523][] @ljharb)
10+
11+
[#3520]: https://github.com/jsx-eslint/eslint-plugin-react/issues/3523
12+
813
## [7.32.1] - 2023.01.16
914

1015
### Fixed

configs/recommended.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
const all = require('./all');
44

55
module.exports = Object.assign({}, all, {
6+
languageOptions: all.languageOptions,
67
rules: {
78
'react/display-name': 2,
89
'react/jsx-key': 2,

index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,15 @@ module.exports = {
1616
rules: allRules,
1717
configs: {
1818
recommended: Object.assign({}, configRecommended, {
19+
parserOptions: configRecommended.languageOptions.parserOptions,
1920
plugins,
2021
}),
2122
all: Object.assign({}, configAll, {
23+
parserOptions: configAll.languageOptions.parserOptions,
2224
plugins,
2325
}),
2426
'jsx-runtime': Object.assign({}, configRuntime, {
27+
parserOptions: configRuntime.languageOptions.parserOptions,
2528
plugins,
2629
}),
2730
},

0 commit comments

Comments
 (0)