From 6c43a85599f203635ba8bd91bcf888dd31854827 Mon Sep 17 00:00:00 2001 From: Pelle Wessman Date: Thu, 13 Jun 2024 15:50:28 +0200 Subject: [PATCH] Add name to flat configs See https://eslint.org/docs/latest/use/configure/configuration-files#configuration-naming-conventions and eg https://github.com/eslint-community/eslint-plugin-eslint-plugin/pull/459 Improves presentation in the config inspector: https://github.com/eslint/config-inspector --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index 2402fc0..59d37df 100644 --- a/index.js +++ b/index.js @@ -99,11 +99,13 @@ const mod = { mod.configs.flat = { all: { + name: 'mocha/all', plugins: { mocha: mod }, languageOptions: { globals: globals.mocha }, rules: allRules }, recommended: { + name: 'mocha/recommended', plugins: { mocha: mod }, languageOptions: { globals: globals.mocha }, rules: recommendedRules