From ec780daa436bde4573c0e6721ce4c4bedcaac32b Mon Sep 17 00:00:00 2001 From: Julian Descottes Date: Fri, 3 Jan 2020 12:26:41 +0000 Subject: [PATCH] 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 --- .prettierignore | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.prettierignore b/.prettierignore index 57a9b5d24cd3..aaf4885b4f3c 100644 --- a/.prettierignore +++ b/.prettierignore @@ -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