Bug 1606787 - Exclude CSS files from Prettier configuration r=vporof

It seems that the recommended Prettier extension for VSCode automatically formats CSS.
I guess this is also true for any editor extension that formats on save.

However ./mach lint is not checking CSS formatting issues, and we have not auto-formatted CSS files in the tree.

This can lead to unexpected formatting changes for developers using VSCode.

Differential Revision: https://phabricator.services.mozilla.com/D58593

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Julian Descottes 2020-01-03 12:26:41 +00:00
parent b111b012e8
commit ec780daa43

View File

@ -7,6 +7,11 @@
*.xul
*.xml
# CSS files have not been formatted and are not check by ./mach lint
# Disable prettier on CSS files to avoid unexpected formatting changes.
# Bug 1606785, Bug 1606787
*.css
# Ignore default pref files which have a .js suffix but aren't parsed normally as JavaScript.
browser/app/profile/channel-prefs.js
browser/app/profile/firefox.js