From 9bcc5607c2ded74511eab11e2ac1feaac0b13898 Mon Sep 17 00:00:00 2001 From: Paul Morris Date: Mon, 12 Aug 2019 13:53:43 -0400 Subject: [PATCH] Bug 1577606 - Turn on Prettier but ignore all directories. r=darktrojan --- .eslintrc.js | 1 - .prettierignore | 21 +++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 .prettierignore diff --git a/.eslintrc.js b/.eslintrc.js index d775aa9de4..594cbc46e5 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -49,7 +49,6 @@ module.exports = { }, ignoreEOLComments: true, }], - "prettier/prettier": "off", "semi-spacing": ["error", {"before": false, "after": true}], "space-in-parens": ["error", "never"], diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000000..2debd16fa3 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,21 @@ +# This list automatically picks up exclusions from .eslintignore + +# These files are disabled due to parsing errors when using Prettier. +# Bug 1560186 +*.html +*.xhtml +*.xul +*.xml + +# Ignore .eslintrc.js for now. +.eslintrc.js + +# Ignore all top-level directories that contain JS files (for now). +calendar/** +chat/** +common/** +editor/** +ldap/** +mail/** +mailnews/** +suite/**