Skip to content

Commit

Permalink
chore: add plugin name to flat recommended config (#703)
Browse files Browse the repository at this point in the history
  • Loading branch information
BPScott authored Jan 18, 2025
1 parent 35a5cd0 commit 9c6141f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/healthy-seas-add.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"eslint-plugin-prettier": patch
---

Add name field to recommended flat config
3 changes: 2 additions & 1 deletion recommended.js
Original file line number Diff line number Diff line change
@@ -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,
Expand Down

0 comments on commit 9c6141f

Please sign in to comment.