Skip to content

Commit

Permalink
fix(eslint): fix deluan#29. Add a default eslint config,
Browse files Browse the repository at this point in the history
in case the container project does not have one
  • Loading branch information
deluan committed Nov 7, 2019
1 parent 7b9ca70 commit 7878fb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bootstrap/jsonToScript.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 7878fb2

Please sign in to comment.