Skip to content

Commit

Permalink
Use prettier-plugin-tailwindcss (#20)
Browse files Browse the repository at this point in the history
# Use prettier-plugin-tailwindcss

## ♻️ Current situation & Problem

[prettier-plugin-tailwindcss](https://github.com/tailwindlabs/prettier-plugin-tailwindcss)
ensures classes are ordered. It helps during development.


## ⚙️ Release Notes 
* Use prettier-plugin-tailwindcss

### Code of Conduct & Contributing Guidelines 

By submitting creating this pull request, you agree to follow our [Code
of
Conduct](https://github.com/StanfordBDHG/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/StanfordBDHG/.github/blob/main/CONTRIBUTING.md):
- [x] I agree to follow the [Code of
Conduct](https://github.com/StanfordBDHG/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/StanfordBDHG/.github/blob/main/CONTRIBUTING.md).

---------

Co-authored-by: Paul Schmiedmayer <PSchmiedmayer@users.noreply.github.com>
  • Loading branch information
arkadiuszbachorski and PSchmiedmayer committed May 29, 2024
1 parent 5ce0539 commit ad9c339
Show file tree
Hide file tree
Showing 6 changed files with 275 additions and 185 deletions.
5 changes: 0 additions & 5 deletions .prettierrc

This file was deleted.

16 changes: 16 additions & 0 deletions .prettierrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
//
// This source file is part of the Stanford Biodesign Digital Health Next.js Template open-source project
//
// SPDX-FileCopyrightText: 2023 Stanford University and the project authors (see CONTRIBUTORS.md)
//
// SPDX-License-Identifier: MIT
//

const config = {
plugins: [require.resolve('prettier-plugin-tailwindcss')],
semi: false,
singleQuote: true,
experimentalTernaries: true,
}

module.exports = config
6 changes: 0 additions & 6 deletions .prettierrc.license

This file was deleted.

4 changes: 2 additions & 2 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ export default function Home() {
const greeting = generateGreeting()

return (
<div className="flex justify-center items-center min-h-screen">
<div className="flex min-h-screen items-center justify-center">
<div className="flex flex-col items-center">
<Image
src={`${process.env.basePath || ''}/stanfordbiodesign.png`}
alt="Stanford Biodesign Logo"
width={634}
height={235}
/>
<h1 className="text-3xl text-center mt-4">{`${greeting.message} to the ${greeting.project}`}</h1>
<h1 className="mt-4 text-center text-3xl">{`${greeting.message} to the ${greeting.project}`}</h1>
</div>
</div>
)
Expand Down
Loading

0 comments on commit ad9c339

Please sign in to comment.