Skip to content
2 changes: 1 addition & 1 deletion src/template-linter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export default class TemplateLinter {

// we assume that ember-template-lint v5 could handle js/ts/gts/gjs files

if (templateLintVersion === '5') {
if (templateLintVersion >= '5') {
return [documentContent];
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@NullVoxPopuli this isn't enough I don't believe, the templateLintVersion might come in as a ^ or a ~

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

excellent point -- I'll update this to use semver

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@NullVoxPopuli we need parseInt here :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not if it's a ^ -- gonna use the semver package. sorry for the low effort initial PR!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


Expand Down