Bug 1324184 - Stop using deprecated rules in PSM ESLint config. r=keeler

The following rules were deprecated in ESLint v3.3.0 with the following
replacements:
  1. no-native-reassign -> no-global-assign
  2. no-spaced-func -> func-call-spacing

MozReview-Commit-ID: IF0gRCR9l9p

--HG--
extra : rebase_source : 22639c868876d79de4f5b8e011d8bf1b5a02cd06
This commit is contained in:
Cykesiopka 2016-12-21 00:43:05 +08:00
Родитель 563c66bb85
Коммит ab062f5a9c
1 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -29,6 +29,9 @@ module.exports = { // eslint-disable-line no-undef
// Always require a trailing EOL
"eol-last": "error",
// No spaces between function name and parentheses.
"func-call-spacing": ["error", "never"],
// Require function* name()
"generator-star-spacing": ["error", {"before": false, "after": true}],
@ -108,6 +111,9 @@ module.exports = { // eslint-disable-line no-undef
// No overwriting defined functions
"no-func-assign": "error",
// No reassigning native JS objects or read only globals.
"no-global-assign": "error",
// No invalid regular expressions
"no-invalid-regexp": "error",
@ -128,9 +134,6 @@ module.exports = { // eslint-disable-line no-undef
"ObjectExpression": true
}}],
// No reassigning native JS objects
"no-native-reassign": "error",
// Nested ternary statements are confusing
"no-nested-ternary": "error",
@ -158,9 +161,6 @@ module.exports = { // eslint-disable-line no-undef
// No declaring variables that hide things like arguments
"no-shadow-restricted-names": "error",
// No spaces between function name and parentheses
"no-spaced-func": "error",
// Disallow sparse arrays, eg. let arr = [,,"error"].
"no-sparse-arrays": "error",