Commit c62d0c64 authored by Mark Banner's avatar Mark Banner
Browse files

Bug 1371293 - Upgrade ESLint to version 4.8.0, configuration changes. r=mossop

MozReview-Commit-ID: 2YHYOLTtqxu

--HG--
extra : rebase_source : 7bbc673bb72d546e1fca63227d54b6607a4ab33e
parent 3a54b06e
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -16,4 +16,13 @@ module.exports = {
  "settings": {
    "html/xml-extensions": [ ".xhtml" ]
  },

  "overrides": [{
    // eslint-plugin-html handles eol-last slightly different - it applies to
    // each set of script tags, so we turn it off here.
    "files": "**/*.*html",
    "rules": {
      "eol-last": "off",
    }
  }]
};
+1 −1
Original line number Diff line number Diff line
@@ -26,7 +26,7 @@ module.exports = {
    "func-names": "off",
    "func-style": "off",
    "handle-callback-err": ["error", "er"],
    "indent": ["error", 2, {"SwitchCase": 1}],
    "indent-legacy": ["error", 2, {"SwitchCase": 1}],
    "max-nested-callbacks": ["error", 4],
    "max-params": "off",
    "max-statements": "off",
+1 −1
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@ module.exports = {
    "block-scoped-var": "error",
    "comma-dangle": "off",
    "complexity": ["error", {"max": 21}],
    "indent": ["error", 2, {"SwitchCase": 1, "ArrayExpression": "first", "ObjectExpression": "first"}],
    "indent-legacy": ["error", 2, {"SwitchCase": 1, "ArrayExpression": "first", "ObjectExpression": "first"}],
    "max-nested-callbacks": ["error", 3],
    "new-parens": "error",
    "no-extend-native": "error",
+1 −1
Original line number Diff line number Diff line
@@ -35,7 +35,7 @@ module.exports = {
    "curly": ["error", "all"],

    // Two space indent
    "indent": ["error", 2, {"SwitchCase": 1}],
    "indent-legacy": ["error", 2, {"SwitchCase": 1}],

    // Always require parenthesis for new calls
    "new-parens": "error",
+1 −1
Original line number Diff line number Diff line
@@ -143,7 +143,7 @@ module.exports = {
    // Only useful in a node environment.
    "handle-callback-err": "off",
    // Tab width.
    "indent": ["error", 2, {"SwitchCase": 1, "ArrayExpression": "first", "ObjectExpression": "first"}],
    "indent-legacy": ["error", 2, {"SwitchCase": 1, "ArrayExpression": "first", "ObjectExpression": "first"}],
    // Enforces spacing between keys and values in object literal properties.
    "key-spacing": ["error", {"beforeColon": false, "afterColon": true}],
    // Enforces unix style line breaks.
Loading