Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a prettier for format #59

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

michaelnabil230
Copy link

This PR is for adding prettier to format the frontend.

@@ -1,273 +1,810 @@
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8" />
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we figure out how to prevent the formatter from adding /> to single tags like this.

Copy link
Contributor

@tnylea tnylea left a comment

Choose a reason for hiding this comment

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

Looks good except for the formatter changing things like:

<meta charset="utf-8">

to this:

<meta charset="utf-8" />

Can you figure out how to prevent that and then I think we can get this approved.

Appreciate it!

@tnylea tnylea added the Awaiting User Response Waiting for developers response label Mar 10, 2025
@@ -9,7 +9,8 @@
@custom-variant dark (&:where(.dark, .dark *));

@theme {
--font-sans: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
--font-sans:
'Instrument Sans', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
Copy link
Contributor

Choose a reason for hiding this comment

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

Meh

autocomplete="email"
placeholder="[email protected]"
/>
<flux:input wire:model="email" :label="__('Email address')" type="email" required autocomplete="email" placeholder="[email protected]" />
Copy link
Contributor

Choose a reason for hiding this comment

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

for elements with many attributes is it not better to go on multiple lines? is there not a limit of characters per line?

@tnylea
Copy link
Contributor

tnylea commented Mar 19, 2025

@michaelnabil230, let me know if you can address the concerns above and we can move forward with this PR.

Really appreciate it 👏

@tnylea tnylea added Pending Closure Have not heard back from original author and PR has potential of being closed soon. and removed Awaiting User Response Waiting for developers response labels Mar 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Pending Closure Have not heard back from original author and PR has potential of being closed soon.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants