From 7e5aeacd1daf85c3c3b695b3cbfd62d9a18e07e3 Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@arkins.net>
Date: Sun, 6 May 2018 08:29:38 +0200
Subject: [PATCH] refactor: rename option.parents -> parent

---
 lib/config/defaults.js    |  2 +-
 lib/config/definitions.js | 14 +++++++-------
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/lib/config/defaults.js b/lib/config/defaults.js
index cb05710818..d8dd82f10d 100644
--- a/lib/config/defaults.js
+++ b/lib/config/defaults.js
@@ -22,7 +22,7 @@ function getConfig() {
   const options = configDefinitions.getOptions();
   const config = {};
   options.forEach(option => {
-    if (!option.parents) {
+    if (!option.parent) {
       config[option.name] = getDefault(option);
     }
   });
diff --git a/lib/config/definitions.js b/lib/config/definitions.js
index 1690e0aba5..57d7560816 100644
--- a/lib/config/definitions.js
+++ b/lib/config/definitions.js
@@ -323,7 +323,7 @@ const options = [
     type: 'list',
     allowString: true,
     stage: 'depType',
-    parents: ['packageRules'],
+    parent: 'packageRules',
     mergeable: true,
     cli: false,
     env: false,
@@ -335,7 +335,7 @@ const options = [
     type: 'list',
     allowString: true,
     stage: 'depType',
-    parents: ['packageRules'],
+    parent: 'packageRules',
     mergeable: true,
     cli: false,
     env: false,
@@ -347,7 +347,7 @@ const options = [
     type: 'list',
     allowString: true,
     stage: 'depType',
-    parents: ['packageRules'],
+    parent: 'packageRules',
     mergeable: true,
     cli: false,
     env: false,
@@ -359,7 +359,7 @@ const options = [
     type: 'list',
     allowString: true,
     stage: 'depType',
-    parents: ['packageRules'],
+    parent: 'packageRules',
     mergeable: true,
     cli: false,
     env: false,
@@ -371,7 +371,7 @@ const options = [
     type: 'list',
     allowString: true,
     stage: 'depType',
-    parents: ['packageRules'],
+    parent: 'packageRules',
     mergeable: true,
     cli: false,
     env: false,
@@ -382,7 +382,7 @@ const options = [
       'A version or version range to match against the current version of a package. Valid only within `packageRules` object',
     type: 'string',
     stage: 'depType',
-    parents: ['packageRules'],
+    parent: 'packageRules',
     mergeable: true,
     cli: false,
     env: false,
@@ -392,7 +392,7 @@ const options = [
     name: 'allowedVersions',
     description: 'A semver range defining allowed versions for dependencies',
     type: 'string',
-    parents: ['packageRules'],
+    parent: 'packageRules',
     stage: 'package',
     cli: false,
     env: false,
-- 
GitLab