Bug 1325339 - tools/lint/eslint/eslint-plugin-mozilla isn't being linted. r=mossop
authorMark Banner <standard8@mozilla.com>
Thu, 22 Dec 2016 10:53:51 +0000
changeset 374204 09e2d8cc57973db6bca59b48d1abd63bdb66ab9d
parent 374203 8d50229a68124707732a487ca24feb20e76114c4
child 374205 74797a69118deab54627393a19640bd0e35f246c
push id1419
push userjlund@mozilla.com
push dateMon, 10 Apr 2017 20:44:07 +0000
treeherdermozilla-release@5e6801b73ef6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmossop
bugs1325339
milestone53.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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";