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

Formatting in hospital hotspot files #215

Open
s-bessey opened this issue Aug 23, 2023 · 2 comments
Open

Formatting in hospital hotspot files #215

s-bessey opened this issue Aug 23, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@s-bessey
Copy link
Collaborator

the linter put <> on the wrong line, making it confusing to read/look wrong. We should play around with formatting.

@s-bessey s-bessey added the enhancement New feature or request label Aug 23, 2023
@anna-murphy
Copy link
Collaborator

From Galen Winsor:

I figured it out. It has to do with how prettier handles whitespace in HTML code. You can set htmlWhitespaceSensitivity to ignore and that'll make it format better. It does some other weird things then, and I'm not sure if it'll cause rendering errors, but I think that's the root of the problem.

@anna-murphy
Copy link
Collaborator

Another formatting issue: #201 (comment)

    return `{
      title: datum.properties.name,
      'Percent gap among ${focusFields.value.name.toLowerCase()}': 
        datum.properties.${focusFields.value.population} > 0
          ? format(datum.properties.${focusFields.value.fill}, '.1%')
          : 'Not enough information',
      'Dose gap among ${focusFields.value.name.toLowerCase()}':
        datum.properties.${focusFields.value.population} > 0
          ? datum.properties.${focusFields.value.tooltip}
          : 'Not enough information'
    }`;

@github-project-automation github-project-automation bot moved this to To do (nice to have) in Roadmap Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: To do (nice to have)
Development

No branches or pull requests

2 participants