зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
b5a4cb3848
Коммит
34da32ec3c
|
@ -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",
|
||||
|
|
Загрузка…
Ссылка в новой задаче