-
Notifications
You must be signed in to change notification settings - Fork 2k
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
remove pragma options from .prettierrc #29403
Conversation
There are Prettier invocations with We should remove that option from there, too. |
done in f925955 👍 |
from #29404 (comment) we just need to add a |
candidates: |
|
Seems like most of those should have the pragma and it was missed. Notifications and the i18n package are the current standouts. |
in summary, i think we can forego adding a prettier ignore and just remove the pragma requirement entirely. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! I tried to run npm run reformat-files
and everything seems to be formatted reasonably without any failures. We can do the actual reformatting in separate PRs.
I plan to upgrade us to Prettier 1.15.3 before the end of the year. We're still on 1.14.0 from July 2018. But the Prettier development has cooled down a lot this year, so there won't be too many changes.
I agree. We used to have problems with the scripts in |
* Remove prettier pragma from sass files in /assets * Remove prettier pragma from sass files in /client
Changes proposed in this Pull Request
Nowadays we always use Prettier regardless of the pragma options. It is that from SASS files this pragma is not removed and ends up in production css files - which is not what we want. So here's an attempt to just remove it entirely.
.prettierrc
Testing instructions