From 9c6141f2436de0bf379bef91b30fe1b0bc737cf2 Mon Sep 17 00:00:00 2001 From: Ben Scott <227292+BPScott@users.noreply.github.com> Date: Sat, 18 Jan 2025 15:42:08 -0800 Subject: [PATCH] chore: add plugin name to flat recommended config (#703) --- .changeset/healthy-seas-add.md | 5 +++++ recommended.js | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changeset/healthy-seas-add.md diff --git a/.changeset/healthy-seas-add.md b/.changeset/healthy-seas-add.md new file mode 100644 index 00000000..a7e1ff6e --- /dev/null +++ b/.changeset/healthy-seas-add.md @@ -0,0 +1,5 @@ +--- +"eslint-plugin-prettier": patch +--- + +Add name field to recommended flat config diff --git a/recommended.js b/recommended.js index e20a9596..7d7d95b1 100644 --- a/recommended.js +++ b/recommended.js @@ -1,9 +1,10 @@ const eslintConfigPrettier = require('eslint-config-prettier'); const eslintPluginPrettier = require('./eslint-plugin-prettier'); -// Merge the contents of eslint-config-prettier into every +// Merge the contents of eslint-config-prettier into config module.exports = { ...eslintConfigPrettier, + name: 'eslint-plugin-prettier/recommended', plugins: { ...eslintConfigPrettier.plugins, prettier: eslintPluginPrettier,