Bug 1280896 - Make mach eslint work for comm-central. r=aleth
MozReview-Commit-ID: 1uRxxrqZYBs
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
+ },
+}