We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81edb42 commit 1106663Copy full SHA for 1106663
src/main/kotlin/com/emberjs/hbs/linter/ember-template-lint/TemplateLintConfiguration.kt
@@ -16,9 +16,15 @@ class TemplateLintConfiguration(project: Project) : JSLinterConfiguration<Templa
16
override fun loadPrivateSettings(state: TemplateLintState): TemplateLintState {
17
this.myPackage.readOrDetect()
18
19
+ val constantPackage = this.myPackage.getPackage().constantPackage
20
+
21
+ if (constantPackage == null) {
22
+ return defaultState
23
+ }
24
25
return state.copy(
26
myInterpreterRef = this.myPackage.interpreter,
- myTemplateLintPackage = this.myPackage.getPackage().constantPackage
27
+ myTemplateLintPackage = constantPackage
28
)
29
}
30
0 commit comments