From 9b7b811435b7d1a8b1f27d6b22e737870a83b26a Mon Sep 17 00:00:00 2001 From: Luciano Alves Date: Mon, 1 Sep 2025 10:43:02 -0300 Subject: [PATCH 1/2] chore: add config flat --- eslint-plugin-prettier.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/eslint-plugin-prettier.js b/eslint-plugin-prettier.js index 0ef19af9..3241c423 100644 --- a/eslint-plugin-prettier.js +++ b/eslint-plugin-prettier.js @@ -140,6 +140,18 @@ const eslintPluginPrettier = { 'prefer-arrow-callback': 'off', }, }, + 'flat/recommended': { + plugins: { + get prettier() { + return eslintPluginPrettier + } + }, + rules: { + 'prettier/prettier': 'error', + 'arrow-body-style': 'off', + 'prefer-arrow-callback': 'off', + }, + } }, rules: { prettier: { From cff10b04da06722024edabb78ca9ffa58153a08a Mon Sep 17 00:00:00 2001 From: Luciano Alves Date: Mon, 1 Sep 2025 10:48:26 -0300 Subject: [PATCH 2/2] chore: add config label "prettier/recommended" --- eslint-plugin-prettier.js | 1 + 1 file changed, 1 insertion(+) diff --git a/eslint-plugin-prettier.js b/eslint-plugin-prettier.js index 3241c423..d64f734e 100644 --- a/eslint-plugin-prettier.js +++ b/eslint-plugin-prettier.js @@ -141,6 +141,7 @@ const eslintPluginPrettier = { }, }, 'flat/recommended': { + name: 'prettier/recommended', plugins: { get prettier() { return eslintPluginPrettier