<span className=" text-gray-500 sm:text-sm sm:leading-5">
-> <span className="text-gray-500 sm:text-sm sm:leading-5">
Think I am seeing a prettier issue in a yaml file containing some ruby. How could I get this to pass?
SyntaxError: Nested mappings are not allowed in compact mappings (18:13)
16 | # Your application name. Renaming here affects where data displays in New
17 | # Relic. For more details, see https://docs.newrelic.com/docs/apm/new-relic-apm/maintenance/renaming-applications
> 18 | app_name: <%= ENV["SERVER_ENV"] == 'staging' ? '12vBiz (Staging)' : '12vBiz' %>
this is in the config file tor NewRelic - newrelic.yml
Sorry here is more of the error
/node_modules/prettier/index.js:13588
throw error;
^
SyntaxError: Nested mappings are not allowed in compact mappings (19:13)
17 | # Relic. For more details, see https://docs.newrelic.com/docs/apm/new-relic-apm/maintenance/renaming-applications
18 | # prettier-ignore
> 19 | app_name: <%= ENV["SERVER_ENV"] == 'staging' ? '12vBiz (Staging)' : '12vBiz' %>
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 20 |
| ^
I tried adding the #prettier-ignore
per the prettier docs, but that doesn't seem to work either.
Hi. I am adding prettier to a repo and would like to use .eslintignore
as ignores file. The problem is to make this frictionless for the dozens of developers working on it.
While invoking the CLI is wrapped and --ignore-path
set accordingly, providing this for editor integrations seems harder. I can’t use a symlink .prettierignore -> .eslintignore
, because we also use windows, where git symlink support depends on local configuration. .prettierrc
does not support ignorePath
.
Is there any way to provide my team with a no-config experience? Thanks.
eslint --fix
& prettier --write
on save or reformat? Please don't point me to https://prettier.io/docs/en/integrating-with-linters.html, because I'm ugly & dumb, and that page is confusing to me.
Hey Guys, I just got prettier and it makes my
<a href="https://de.wikipedia.org/wiki/Inlineframe" target="iframeA">Wikipedia</a>
into:
<a href="https://de.wikipedia.org/wiki/Inlineframe" target="iframeA"
>Wikipedia</a
>
it it somehow possible to make my code look like this:
<a href="https://de.wikipedia.org/wiki/Inlineframe" target="iframeA">
Wikipedia
</a>
?
See https://prettier.io/blog/2018/11/07/1.15.0.html#whitespace-sensitive-formatting
it works now with "ignore", thanks! Is it normal that it stays in one line if I change my print width settings from 80 to 100 or can I change it somehow that i looks like this:
<a href="https://de.wikipedia.org/wiki/Inlineframe" target="iframeA">
Wikipedia
</a>
?