Bug 1325339 - tools/lint/eslint/eslint-plugin-mozilla isn't being linted. r?Mossop draft
authorMark Banner <standard8@mozilla.com>
Thu, 22 Dec 2016 10:53:51 +0000
changeset 452829 f866c1bba60df689ba60a1098742bc991e1a7a1a
parent 452718 f179934df0c1bab590c558485d419c7910e41325
child 540326 7cbd7a62ade54ada6969df89d64d12af9257ce6e
push id39515
push userbmo:standard8@mozilla.com
push dateThu, 22 Dec 2016 10:57:15 +0000
reviewersMossop
bugs1325339
milestone53.0a1
Bug 1325339 - tools/lint/eslint/eslint-plugin-mozilla isn't being linted. r?Mossop MozReview-Commit-ID: ImgANPcndoF
.eslintignore
tools/lint/eslint/eslint-plugin-mozilla/lib/rules/.eslintrc.js
tools/lint/eslint/eslint-plugin-mozilla/lib/rules/mark-test-function-used.js
--- a/.eslintignore
+++ b/.eslintignore
@@ -35,19 +35,17 @@ netwerk/**
 nsprpub/**
 other-licenses/**
 parser/**
 probes/**
 python/**
 rdf/**
 startupcache/**
 testing/**
-!tools/lint/eslint/eslint-plugin-mozilla/
-tools/lint/eslint/eslint-plugin-mozilla/node_modules/**
-tools/**
+tools/update-packaging/**
 uriloader/**
 view/**
 widget/**
 xpcom/**
 xpfe/**
 xulrunner/**
 
 # b2g exclusions (pref files).
--- a/tools/lint/eslint/eslint-plugin-mozilla/lib/rules/.eslintrc.js
+++ b/tools/lint/eslint/eslint-plugin-mozilla/lib/rules/.eslintrc.js
@@ -18,17 +18,17 @@ module.exports = {
     "brace-style": ["error", "1tbs"],
     "camelcase": "error",
     "comma-dangle": ["error", "never"],
     "comma-spacing": "error",
     "comma-style": ["error", "last"],
     "curly": ["error", "multi-line"],
     "handle-callback-err": ["error", "er"],
     "indent": ["error", 2, {"SwitchCase": 1}],
-    "max-len": ["error", 80, "error"],
+    "max-len": ["error", 80, 2],
     "no-multiple-empty-lines": ["error", {"max": 1}],
     "no-undef": "error",
     "no-undef-init": "error",
     "no-unexpected-multiline": "error",
     "object-curly-spacing": "off",
     "one-var": ["error", "never"],
     "operator-linebreak": ["error", "after"],
     "semi": ["error", "always"],
--- a/tools/lint/eslint/eslint-plugin-mozilla/lib/rules/mark-test-function-used.js
+++ b/tools/lint/eslint/eslint-plugin-mozilla/lib/rules/mark-test-function-used.js
@@ -1,12 +1,12 @@
 /**
- * @fileoverview Simply marks `test` (the test method) or `run_test` as used when
- * in mochitests or xpcshell tests respectively. This avoids ESLint telling us
- * that the function is never called.
+ * @fileoverview Simply marks `test` (the test method) or `run_test` as used
+ * when in mochitests or xpcshell tests respectively. This avoids ESLint telling
+ * us that the function is never called.
  *
  * This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  */
 
 "use strict";