Bug 1577606 - Turn on Prettier but ignore all directories. r=darktrojan
authorPaul Morris <paul@thunderbird.net>
Mon, 12 Aug 2019 13:53:43 -0400
changeset 35686 790fe3dbbfe793155901188b79d27e9841c035a0
parent 35685 1660b26d3a84984864673c22938bba2ab56cd8d8
child 35687 22c568242aac17702a334e889d88cbdccedda144
push id2486
push userclokep@gmail.com
push dateMon, 02 Sep 2019 20:24:43 +0000
treeherdercomm-beta@1b30a9a6e7f6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdarktrojan
bugs1577606
Bug 1577606 - Turn on Prettier but ignore all directories. r=darktrojan
.eslintrc.js
.prettierignore
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -44,17 +44,16 @@ module.exports = {
       exceptions: {
         "ArrayExpression": true,
         "AssignmentExpression": true,
         "ObjectExpression": true,
         "VariableDeclarator": true,
       },
       ignoreEOLComments: true,
     }],
-    "prettier/prettier": "off",
     "semi-spacing": ["error", {"before": false, "after": true}],
     "space-in-parens": ["error", "never"],
 
 
     // Require spacing around =>
     "arrow-spacing": "error",
 
     // Always require spacing around a single line block
new file mode 100644
--- /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/**