Skip to content

Commit 7ae2582

Browse files
authored
fix template lint config (#218)
1 parent b09076d commit 7ae2582

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/kotlin/com/emberjs/hbs/linter/ember-template-lint/TemplateLintConfiguration.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import org.jdom.Element
1111

1212
@State(name = "TemplateLintConfiguration", storages = [Storage("emberLinters/templatelint.xml")])
1313
class TemplateLintConfiguration(project: Project) : JSLinterConfiguration<TemplateLintState>(project) {
14-
private val myPackage: JSLinterPackage = JSLinterPackage(project, TemplateLintUtil.PACKAGE_NAME)
14+
private val myPackage: JSLinterPackage = JSLinterPackage(project, TemplateLintUtil.PACKAGE_NAME, true)
1515

1616
override fun loadPrivateSettings(state: TemplateLintState): TemplateLintState {
1717
this.myPackage.readOrDetect()
@@ -25,7 +25,7 @@ class TemplateLintConfiguration(project: Project) : JSLinterConfiguration<Templa
2525
}
2626

2727
override fun savePrivateSettings(state: TemplateLintState) {
28-
this.myPackage.force(NodePackageRef.create(state.interpreterRef.referenceName))
28+
this.myPackage.force(NodePackageRef.create(state.templateLintPackage))
2929
}
3030

3131
override fun toXml(state: TemplateLintState): Element? {

0 commit comments

Comments
 (0)