Bug 1280896 - Make mach eslint work for comm-central. r=aleth
authorPhilipp Kewisch <mozilla@kewis.ch>
Mon, 20 Jun 2016 14:22:18 +0200
changeset 25294 231f12348d254f51c8373b9ed1f0790673b32e3d
parent 25293 543fdbd8c369c0ec83dc1cc09378a5047ce419c1
child 25295 7735f47dbe0576b9f10e1d70bd6e8bc25b903bf2
push id1725
push userclokep@gmail.com
push dateMon, 19 Sep 2016 17:35:08 +0000
treeherdercomm-beta@6ead1abf3817 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersaleth
bugs1280896
Bug 1280896 - Make mach eslint work for comm-central. r=aleth MozReview-Commit-ID: 1uRxxrqZYBs
.eslintignore
.eslintrc
new file mode 100644
--- /dev/null
+++ b/.eslintignore
@@ -0,0 +1,27 @@
+# Always ignore node_modules.
+**/node_modules/**/*.*
+
+# Exclude expected objdirs.
+obj*/**
+
+# Exclude mozilla directory, this one is checked separately
+mozilla/**
+
+# These directories don't contain any js and are not meant to
+config/**
+db/**
+other-licenses/**
+testing/**
+
+# We ignore all these directories by default, until we get them enabled.
+# If you are enabling a directory, please add directory specific exclusions
+# below.
+build/**
+calendar/**
+chat/**
+editor/**
+im/**
+ldap/**
+mail/**
+mailnews/**
+suite/**
new file mode 100644
--- /dev/null
+++ b/.eslintrc
@@ -0,0 +1,12 @@
+{
+  // When adding items to this file please check for effects on sub-directories.
+  "plugins": [
+    "mozilla"
+  ],
+  "rules": {
+    "mozilla/import-globals": 1,
+  },
+  "env": {
+    "es6": true
+  },
+}