Skip to content

Commit

Permalink
config: minor changes to prettier.config.js to prettier.config.mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
warmachine028 committed Sep 12, 2024
1 parent b52991c commit f701723
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 30 deletions.
2 changes: 2 additions & 0 deletions client/.npmcheckrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
"@uploadthing/react",
"arctic",
"ky",
"prettier-plugin-packagejson",
"prettier-plugin-tailwindcss",
"react-cropper",
"react-image-file-resizer",
"react-intersection-observer",
Expand Down
42 changes: 21 additions & 21 deletions client/package-lock.json

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

6 changes: 3 additions & 3 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"@radix-ui/react-tabs": "^1.1.0",
"@radix-ui/react-toast": "^1.2.1",
"@radix-ui/react-tooltip": "^1.1.2",
"@tanstack/react-query": "^5.55.4",
"@tanstack/react-query-devtools": "^5.55.4",
"@tanstack/react-query": "^5.56.1",
"@tanstack/react-query-devtools": "^5.56.1",
"@tiptap/extension-placeholder": "^2.6.6",
"@tiptap/pm": "^2.6.6",
"@tiptap/react": "^2.6.6",
Expand All @@ -31,7 +31,7 @@
"date-fns": "^3.6.0",
"ky": "^1.7.2",
"lucia": "^3.2.0",
"lucide-react": "^0.440.0",
"lucide-react": "^0.441.0",
"next": "^15.0.0-canary.148",
"next-themes": "^0.3.0",
"react": "^19.0.0-rc-3dfd5d9e-20240910",
Expand Down
7 changes: 3 additions & 4 deletions client/prettier.config.js → client/prettier.config.mjs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// import type { Config } from 'prettier'
// prettier.config.js, .prettierrc.js, prettier.config.cjs, or .prettierrc.cjs
import tailwindcss from 'prettier-plugin-tailwindcss'
import packageJson from 'prettier-plugin-packagejson'

/**
* @see https://prettier.io/docs/en/configuration.html
* @type {import("prettier").Config}
*/

export default {
experimentalTernaries: true,
printWidth: 120,
Expand All @@ -18,6 +18,5 @@ export default {
bracketSpacing: true,
parser: 'typescript',
endOfLine: 'crlf',
plugins: [tailwindcss, packageJson]
// keep an empty line at the end of the file
plugins: ['prettier-plugin-tailwindcss', 'prettier-plugin-packagejson']
}
2 changes: 1 addition & 1 deletion client/src/components/TrendsSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const TrendingTopics = async () => {
<div className="text-xl font-bold">Trending Topics</div>
{trendingTopics.map(({ hashtag, count }) => {
const title = hashtag.split('#')[1]
return (
return (
<Link href={`/hashtag/${title}`} className="block" key={title}>
<p className="line-clamp-1 break-all font-semibold hover:underline" title={hashtag}>
{hashtag}
Expand Down
2 changes: 1 addition & 1 deletion client/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
"@/*": ["./src/*"]
}
},
"include": ["**/*.ts", "**/*.tsx", "next-env.d.ts", "next.config.mts", ".next/types/**/*.ts", "prettier.config.js"],
"include": ["**/*.ts", "**/*.tsx", "next-env.d.ts", "next.config.mts", ".next/types/**/*.ts", "prettier.config.mjs"],
"exclude": ["node_modules", "future"]
}

1 comment on commit f701723

@vercel
Copy link

@vercel vercel bot commented on f701723 Sep 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.