From 87b5a850965e8081bd3827f55626520b6c800691 Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Mon, 4 Nov 2024 17:12:58 +0100 Subject: [PATCH 1/2] chore: add name to recommended config preset --- recommended.js | 1 + 1 file changed, 1 insertion(+) diff --git a/recommended.js b/recommended.js index e20a9596..2e8885eb 100644 --- a/recommended.js +++ b/recommended.js @@ -4,6 +4,7 @@ const eslintPluginPrettier = require('./eslint-plugin-prettier'); // Merge the contents of eslint-config-prettier into every module.exports = { ...eslintConfigPrettier, + name: 'prettier/recommended', plugins: { ...eslintConfigPrettier.plugins, prettier: eslintPluginPrettier, From 1bae78f11d1ce09fc5bb75c94ca1cdf018199ad4 Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Mon, 4 Nov 2024 17:22:55 +0100 Subject: [PATCH 2/2] chore: add names to eslint config sections --- eslint.config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eslint.config.js b/eslint.config.js index 9e1eff12..d99243d9 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -11,6 +11,7 @@ module.exports = [ // eslint-community/eslint-comments does not expose a reusable flat config, // so create one from its legacy config { + name: '@eslint-community/eslint-comments', plugins: { '@eslint-community/eslint-comments': eslintPluginEslintComments, }, @@ -21,6 +22,7 @@ module.exports = [ eslintPluginMdx.flatCodeBlocks, eslintPluginPrettierRecommended, { + name: 'eslint-plugin overrides', rules: { 'eslint-plugin/report-message-format': ['error', '^[^a-z].*\\.$'], }, @@ -29,6 +31,7 @@ module.exports = [ // If a config block only contains an `ignores` key, then the globs are // ignored globally { + name: 'global ignores', ignores: [ 'CHANGELOG.md', '.github/ISSUE_TEMPLATE.md',