Skip to content

Commit

Permalink
prettier config improvement with @vercel/style-guide
Browse files Browse the repository at this point in the history
  • Loading branch information
onderonur committed Oct 9, 2024
1 parent 0d62688 commit 71ef76e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
"npm-check-updates": "^17.0.6",
"prettier": "^3.3.3",
"prettier-plugin-organize-imports": "^4.0.0",
"prettier-plugin-packagejson": "^2.5.1",
"prettier-plugin-tailwindcss": "^0.6.6",
"turbo": "^2.0.14"
},
Expand Down
8 changes: 4 additions & 4 deletions prettier.config.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
const styleguide = require('@vercel/style-guide/prettier');

/** @type {import("prettier").Config} */
module.exports = {
singleQuote: true,
trailingComma: 'all',
endOfLine: 'lf',
...styleguide,
// To skip destructive code actions of `prettier-plugin-organize-imports`,
// removing unused imports:
// https://www.npmjs.com/package/prettier-plugin-organize-imports#skip-destructive-code-actions
organizeImportsSkipDestructiveCodeActions: true,
plugins: [
...styleguide.plugins,
'prettier-plugin-organize-imports',
'prettier-plugin-packagejson',
// Should be the last one.
// https://github.com/tailwindlabs/prettier-plugin-tailwindcss?tab=readme-ov-file#compatibility-with-other-prettier-plugins
'prettier-plugin-tailwindcss',
Expand Down

0 comments on commit 71ef76e

Please sign in to comment.