summaryrefslogtreecommitdiff
path: root/tools/node_modules/eslint/lib/rules/indent.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/node_modules/eslint/lib/rules/indent.js')
-rw-r--r--tools/node_modules/eslint/lib/rules/indent.js11
1 files changed, 7 insertions, 4 deletions
diff --git a/tools/node_modules/eslint/lib/rules/indent.js b/tools/node_modules/eslint/lib/rules/indent.js
index c30d1f1e7b..08b9250f05 100644
--- a/tools/node_modules/eslint/lib/rules/indent.js
+++ b/tools/node_modules/eslint/lib/rules/indent.js
@@ -518,7 +518,8 @@ module.exports = {
properties: {
SwitchCase: {
type: "integer",
- minimum: 0
+ minimum: 0,
+ default: 0
},
VariableDeclarator: {
oneOf: [
@@ -582,7 +583,8 @@ module.exports = {
ObjectExpression: ELEMENT_LIST_SCHEMA,
ImportDeclaration: ELEMENT_LIST_SCHEMA,
flatTernaryExpressions: {
- type: "boolean"
+ type: "boolean",
+ default: false
},
ignoredNodes: {
type: "array",
@@ -594,7 +596,8 @@ module.exports = {
}
},
ignoreComments: {
- type: "boolean"
+ type: "boolean",
+ default: false
}
},
additionalProperties: false
@@ -650,7 +653,7 @@ module.exports = {
}
if (context.options[1]) {
- lodash.merge(options, context.options[1]);
+ Object.assign(options, context.options[1]);
if (typeof options.VariableDeclarator === "number" || options.VariableDeclarator === "first") {
options.VariableDeclarator = {