Skip to content

Commit

Permalink
Update cli flag to use --format=json as --json is deprecated (#12)
Browse files Browse the repository at this point in the history
See ember-template-lint/ember-template-lint#2193

Co-authored-by: Kevin Suen <ksuen@linkedin.com>
  • Loading branch information
ksrb and Kevin Suen committed Apr 27, 2022
1 parent beb85f3 commit 07e76d1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class TemplateLintExternalRunner(private val myIsOnTheFly: Boolean = false) {
sessionData.templateLintPackage
.addMainEntryJsFile(commandLine, sessionData.interpreter)

commandLine.addParameter("--json")
commandLine.addParameter("--format=json")

val pathToLint = FileUtil.toSystemDependentName(sessionData.fileToLint.path)
val relativePath = FileUtil.getRelativePath(workDirectory.absolutePath, pathToLint, File.separatorChar)
Expand Down

0 comments on commit 07e76d1

Please sign in to comment.