Skip to content

Commit

Permalink
Added prettier-tailwindcss
Browse files Browse the repository at this point in the history
  • Loading branch information
kmiguel10 committed Oct 11, 2023
1 parent 42f1383 commit 8b9c159
Show file tree
Hide file tree
Showing 4 changed files with 165 additions and 84 deletions.
219 changes: 138 additions & 81 deletions package-lock.json

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

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"class-variance-authority": "^0.7.0",
"clsx": "^2.0.0",
"lucide-react": "^0.279.0",
"next": "latest",
"next": "^13.5.4",
"react": "latest",
"react-dom": "latest",
"recharts": "^2.8.0",
Expand All @@ -40,6 +40,8 @@
"eslint-config-next": "latest",
"mini-css-extract-plugin": "^2.7.6",
"postcss": "latest",
"prettier": "^3.0.3",
"prettier-plugin-tailwindcss": "^0.5.5",
"tailwindcss": "latest",
"typescript": "latest",
"windy-radix-palette": "^1.0.0",
Expand Down
22 changes: 22 additions & 0 deletions prettier.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// prettier.config.js
module.exports = {
bracketSpacing: true,
semi: true,
trailingComma: 'all',
printWidth: 100,
tabWidth: 2,
singleQuote: true,
importOrder: [
'(^(react/(.*)$)|^(react$))|(^(next/(.*)$)|^(next$))',
'<THIRD_PARTY_MODULES>',
'^@/styles/(.*)$',
'^@/public/(.*)$',
'^@/lib/(.*)$',
'^@/components/(.*)$',
'^@/pages/(.*)$',
],
importOrderSortSpecifiers: true,
importOrderSeparation: true,
importOrderCaseInsensitive: true,
plugins: ['@trivago/prettier-plugin-sort-imports', require('prettier-plugin-tailwindcss')],
};
Loading

0 comments on commit 8b9c159

Please sign in to comment.