From 20d942007b5509eb0be949685a2aed575055427e Mon Sep 17 00:00:00 2001 From: Rifat Nabi Date: Fri, 17 Mar 2017 10:09:18 +1100 Subject: [PATCH] Add babelrc preset array item type --- src/schemas/json/babelrc.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/schemas/json/babelrc.json b/src/schemas/json/babelrc.json index 4d3cf8b7f69..ada5283cb72 100644 --- a/src/schemas/json/babelrc.json +++ b/src/schemas/json/babelrc.json @@ -104,7 +104,11 @@ "description": "List of presets (a set of plugins) to load and use", "type": "array", "items": { - "type": "string" + "type": ["string", "array"], + "items": { + "description": "the preset name in .[0] and the options object in .[1]", + "type": ["string", "object"] + } } }, "retainLines": {