Skip to content

Commit

Permalink
feat(prettier): add tailwind plugin config
Browse files Browse the repository at this point in the history
  • Loading branch information
kentcdodds committed May 24, 2024
1 parent 44178df commit 3224d3b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions configs/prettier.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,7 @@ export default {
},
],
plugins: ['prettier-plugin-tailwindcss', 'prettier-plugin-organize-imports'],
tailwindAttributes: ['class', 'className', 'ngClass', '.*[cC]lassName'],
tailwindFunctions: ['clsx', 'cn'],
organizeImportsSkipDestructiveCodeActions: true,
}

0 comments on commit 3224d3b

Please sign in to comment.