Skip to content

Commit

Permalink
fix(eslint-config): fix Prettier formatting when ESLint is run in an …
Browse files Browse the repository at this point in the history
…IDE (#828)
  • Loading branch information
marcusrbrown authored Jan 2, 2025
1 parent 9fb09ac commit bc2cd63
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changeset/pretty-geese-divide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@bfra.me/eslint-config": patch
---

Fix Prettier formatting when ESLint is run in an IDE.

2 changes: 1 addition & 1 deletion packages/eslint-config/src/configs/prettier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export async function prettier(options: PrettierOptions = {}): Promise<Config[]>
prettier: pluginPrettier,
},
rules: {
...(isInEditor ? {} : {'prettier/prettier': 'error'}),
'prettier/prettier': isInEditor ? 'warn' : 'error',

...configPrettier.rules,

Expand Down

0 comments on commit bc2cd63

Please sign in to comment.