From 7878fb2039a239c910f9b11043f3a97a568a2168 Mon Sep 17 00:00:00 2001 From: Deluan Date: Thu, 7 Nov 2019 16:56:26 -0500 Subject: [PATCH] fix(eslint): fix #29. Add a default eslint config, in case the container project does not have one --- lib/bootstrap/jsonToScript.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bootstrap/jsonToScript.js b/lib/bootstrap/jsonToScript.js index 53aefe7..aeb8357 100644 --- a/lib/bootstrap/jsonToScript.js +++ b/lib/bootstrap/jsonToScript.js @@ -66,7 +66,7 @@ const restructureContentTypeJson = item => ({ const jsonToScript = (contentTypeJson, editorInterface) => { const restructuredJson = restructureContentTypeJson(contentTypeJson) const unformattedScript = createScript(restructuredJson, editorInterface) - const engine = new eslint.CLIEngine({ fix: true }) + const engine = new eslint.CLIEngine({ fix: true, baseConfig: { extends: ['eslint-config-standard'] } }) return engine.executeOnText(unformattedScript).results[0].output }