Bug 1196155 - Update renamed ESLint rules. r=pbrosset
authorJ. Ryan Stinnett <jryans@gmail.com>
Mon, 21 Sep 2015 17:19:19 -0500
changeset 263968 2acca26772aabb4a7c5fde1ed960646e86c927a7
parent 263967 4ac91cde9a3d299dc3c05d1c6d247ba30d0ff3be
child 263969 0b3cc12017d2649d1e5ae393cdbc849443a5af9c
push id65484
push usercbook@mozilla.com
push dateWed, 23 Sep 2015 10:47:13 +0000
treeherdermozilla-inbound@88067e5193f0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspbrosset
bugs1196155
milestone44.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 1196155 - Update renamed ESLint rules. r=pbrosset
devtools/.eslintrc
--- a/devtools/.eslintrc
+++ b/devtools/.eslintrc
@@ -141,17 +141,17 @@
     "no-else-return": 2,
     // Disallow empty statements. This will report an error for:
     // try { something(); } catch (e) {}
     // but will not report it for:
     // try { something(); } catch (e) { /* Silencing the error because ...*/ }
     // which is a valid use case.
     "no-empty": 2,
     // Disallow the use of empty character classes in regular expressions.
-    "no-empty-class": 2,
+    "no-empty-character-class": 2,
     // Disallow use of labels for anything other then loops and switches.
     "no-empty-label": 2,
     // Disallow use of eval(). We have other APIs to evaluate code in content.
     "no-eval": 2,
     // Disallow assigning to the exception in a catch block.
     "no-ex-assign": 2,
     // Disallow adding to native types
     "no-extend-native": 2,
@@ -315,17 +315,17 @@
     // Require a space after return, throw, and case.
     "space-return-throw-case": 1,
     // Require spaces before/after unary operators (words on by default,
     // nonwords off by default).
     "space-unary-ops": [1, { "words": true, "nonwords": false }],
     // Deprecated, will be removed in 1.0.
     "space-unary-word-ops": 0,
     // Require a space immediately following the // in a line comment.
-    "spaced-line-comment": [1, "always"],
+    "spaced-comment": [1, "always"],
     // Require "use strict" to be defined globally in the script.
     "strict": [2, "global"],
     // Disallow comparisons with the value NaN.
     "use-isnan": 2,
     // Warn about invalid JSDoc comments.
     // Disabled for now because of https://github.com/eslint/eslint/issues/2270
     // The rule fails on some jsdoc comments like in:
     // devtools/client/webconsole/console-output.js