From 668d493dbb456415c3aa12bcbde7917d475393c5 Mon Sep 17 00:00:00 2001 From: Nisharg Shah Date: Fri, 24 Jan 2025 18:43:21 +0530 Subject: [PATCH] [Fix] configs: added missing name attribute for eslint config inspector --- CHANGELOG.md | 3 +++ src/index.js | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9d60bc3110..1cb9b56276 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ This change log adheres to standards from [Keep a CHANGELOG](https://keepachange ### Fixed - [`no-unused-modules`]: provide more meaningful error message when no .eslintrc is present ([#3116], thanks [@michaelfaith]) +- configs: added missing name attribute for eslint config inspector ([#3151], thanks [@NishargShah]) ### Changed - [Docs] [`extensions`], [`order`]: improve documentation ([#3106], thanks [@Xunnamius]) @@ -1169,6 +1170,7 @@ for info on changes for earlier releases. [`memo-parser`]: ./memo-parser/README.md +[#3151]: https://github.com/import-js/eslint-plugin-import/pull/3151 [#3138]: https://github.com/import-js/eslint-plugin-import/pull/3138 [#3125]: https://github.com/import-js/eslint-plugin-import/pull/3125 [#3122]: https://github.com/import-js/eslint-plugin-import/pull/3122 @@ -1965,6 +1967,7 @@ for info on changes for earlier releases. [@Nfinished]: https://github.com/Nfinished [@nickofthyme]: https://github.com/nickofthyme [@nicolashenry]: https://github.com/nicolashenry +[@NishargShah]: https://github.com/NishargShah [@noelebrun]: https://github.com/noelebrun [@ntdb]: https://github.com/ntdb [@nwalters512]: https://github.com/nwalters512 diff --git a/src/index.js b/src/index.js index 6252620605..6cd7bffe2f 100644 --- a/src/index.js +++ b/src/index.js @@ -96,8 +96,8 @@ export const flatConfigs = { warnings: createFlatConfig(require('../config/flat/warnings'), 'warnings'), // useful stuff for folks using various environments - react: require('../config/flat/react'), - 'react-native': configs['react-native'], - electron: configs.electron, - typescript: configs.typescript, + react: createFlatConfig(require('../config/flat/react'), 'react'), + 'react-native': createFlatConfig(configs['react-native'], 'react-native'), + electron: createFlatConfig(configs.electron, 'electron'), + typescript: createFlatConfig(configs.typescript, 'typescript'), }; pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy