Skip to content

Commit 668d493

Browse files
NishargShahljharb
authored andcommitted
[Fix] configs: added missing name attribute for eslint config inspector
1 parent fd1ae63 commit 668d493

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

CHANGELOG.md

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

1515
### Fixed
1616
- [`no-unused-modules`]: provide more meaningful error message when no .eslintrc is present ([#3116], thanks [@michaelfaith])
17+
- configs: added missing name attribute for eslint config inspector ([#3151], thanks [@NishargShah])
1718

1819
### Changed
1920
- [Docs] [`extensions`], [`order`]: improve documentation ([#3106], thanks [@Xunnamius])
@@ -1169,6 +1170,7 @@ for info on changes for earlier releases.
11691170

11701171
[`memo-parser`]: ./memo-parser/README.md
11711172

1173+
[#3151]: https://github.com/import-js/eslint-plugin-import/pull/3151
11721174
[#3138]: https://github.com/import-js/eslint-plugin-import/pull/3138
11731175
[#3125]: https://github.com/import-js/eslint-plugin-import/pull/3125
11741176
[#3122]: https://github.com/import-js/eslint-plugin-import/pull/3122
@@ -1965,6 +1967,7 @@ for info on changes for earlier releases.
19651967
[@Nfinished]: https://github.com/Nfinished
19661968
[@nickofthyme]: https://github.com/nickofthyme
19671969
[@nicolashenry]: https://github.com/nicolashenry
1970+
[@NishargShah]: https://github.com/NishargShah
19681971
[@noelebrun]: https://github.com/noelebrun
19691972
[@ntdb]: https://github.com/ntdb
19701973
[@nwalters512]: https://github.com/nwalters512

src/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ export const flatConfigs = {
9696
warnings: createFlatConfig(require('../config/flat/warnings'), 'warnings'),
9797

9898
// useful stuff for folks using various environments
99-
react: require('../config/flat/react'),
100-
'react-native': configs['react-native'],
101-
electron: configs.electron,
102-
typescript: configs.typescript,
99+
react: createFlatConfig(require('../config/flat/react'), 'react'),
100+
'react-native': createFlatConfig(configs['react-native'], 'react-native'),
101+
electron: createFlatConfig(configs.electron, 'electron'),
102+
typescript: createFlatConfig(configs.typescript, 'typescript'),
103103
};

0 commit comments

Comments
 (0)