diff --git a/eslint-plugin-prettier.js b/eslint-plugin-prettier.js index 0ef19af..d64f734 100644 --- a/eslint-plugin-prettier.js +++ b/eslint-plugin-prettier.js @@ -140,6 +140,19 @@ const eslintPluginPrettier = { 'prefer-arrow-callback': 'off', }, }, + 'flat/recommended': { + name: 'prettier/recommended', + plugins: { + get prettier() { + return eslintPluginPrettier + } + }, + rules: { + 'prettier/prettier': 'error', + 'arrow-body-style': 'off', + 'prefer-arrow-callback': 'off', + }, + } }, rules: { prettier: {