Skip to content

Commit

Permalink
fix: enable prettier since it was removed during migration
Browse files Browse the repository at this point in the history
Signed-off-by: diba1013 <diba1013@web.de>
  • Loading branch information
diba1013 committed Jul 14, 2024
1 parent 8ad87db commit 1d13f2f
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions packages/eslint-config/src/recommended.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import js from "@eslint/js";
import jsonc from "eslint-plugin-jsonc";
import perfectionist from "eslint-plugin-perfectionist";
import prettier from "eslint-plugin-prettier/recommended";
import unicorn from "eslint-plugin-unicorn";
import vue from "eslint-plugin-vue";
import yml from "eslint-plugin-yml";
Expand Down Expand Up @@ -264,7 +265,24 @@ export function defineConfig({
}),
// Allow overwrites
...configs,
// Prettier
...defineCustomizedConfigurations({
configurations: [
// Enable recommended prettier plugin
prettier,
],
overwrite: {
rules: {
/**
* Configure prettier as warn since it will be automatically fixed.
* https://github.com/prettier/eslint-plugin-prettier#options
*/
"prettier/prettier": "warn",
},
},
}),
// Configure global ignores
// https://eslint.org/docs/latest/use/configure/ignore#ignoring-files
{
ignores,
},
Expand Down

0 comments on commit 1d13f2f

Please sign in to comment.