From dcb794fcad7105e347eacb9c7a60e4c668cab205 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=94=AF=E7=84=B6?= Date: Tue, 9 Apr 2024 11:09:49 +0800 Subject: [PATCH] feat: add `name` to flat configs (#459) refs: https://github.com/eslint/eslint/pull/18252 --- lib/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/index.js b/lib/index.js index 3996fdb2..9f5d60f8 100644 --- a/lib/index.js +++ b/lib/index.js @@ -74,6 +74,7 @@ Object.assign( Object.keys(configFilters).reduce((configs, configName) => { return Object.assign(configs, { [`flat/${configName}`]: { + name: `eslint-plugin/flat/${configName}`, plugins: { 'eslint-plugin': plugin }, rules: Object.fromEntries( Object.keys(allRules)