Bug 1558517 - Pre 3.1: Change conflicting "camelcase" rule which would fail after running Prettier, r=standard8

Differential Revision: https://phabricator.services.mozilla.com/D34695

--HG--
extra : source : 078747ad644246551a165a176a691e0440553c85
extra : intermediate-source : 3b39b237ae3c49eb6c9d56a2ef8bfb5134b878da
This commit is contained in:
Victor Porof 2019-06-12 11:43:25 +02:00
Родитель b5a4cb3848
Коммит 34da32ec3c
6 изменённых файлов: 6 добавлений и 6 удалений

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

@ -7,7 +7,7 @@ module.exports = {
"mozilla/var-only-at-top-level": "error",
"block-scoped-var": "error",
"camelcase": "error",
"camelcase": ["error", { "properties": "never" }],
"complexity": ["error", 20],
"handle-callback-err": ["error", "er"],

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

@ -197,7 +197,7 @@ module.exports = {
// since only let and const are used, see "no-var").
"block-scoped-var": "error",
// Require camel case names
"camelcase": "error",
"camelcase": ["error", { "properties": "never" }],
// Warn about cyclomatic complexity in functions.
// 20 is ESLint's default, and we want to keep it this way to prevent new highly
// complex functions from being introduced. However, because Mozilla's eslintrc has

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

@ -93,7 +93,7 @@
// since only let and const are used, see "no-var").
"block-scoped-var": 2,
// Require camel case names
"camelcase": 2,
"camelcase": ["error", { "properties": "never" }],
// Warn about cyclomatic complexity in functions.
"complexity": ["error", { "max": 22 }],
// Don't warn for inconsistent naming when capturing this (not so important

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

@ -4,7 +4,7 @@
module.exports = {
"rules": {
"camelcase": "error",
"camelcase": ["error", { "properties": "never" }],
"no-fallthrough": "error",
"no-undef-init": "error",
"no-var": "error",

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

@ -6,7 +6,7 @@ module.exports = {
"mozilla/reject-importGlobalProperties": ["error", "everything"],
"mozilla/var-only-at-top-level": "error",
"block-scoped-var": "error",
"camelcase": "error",
"camelcase": ["error", { "properties": "never" }],
"complexity": ["error", {"max": 20}],
"max-nested-callbacks": ["error", 3],
"new-cap": ["error", {"capIsNew": false}],

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

@ -6,7 +6,7 @@ module.exports = {
},
"rules": {
"camelcase": "error",
"camelcase": ["error", { "properties": "never" }],
"handle-callback-err": ["error", "er"],
"no-shadow": "error",
"no-undef-init": "error",