Skip to content

Commit 8ae39e7

Browse files
committed
limit ember template lint processing to correct files
1 parent 44b1e8e commit 8ae39e7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class TemplateLintExternalAnnotator(onTheFly: Boolean = true) : JSLinterExternal
3939
|| (f.name.endsWith(".ts") && supportsJS)
4040
|| f.name.endsWith(".gjs")
4141
|| f.name.endsWith(".gts"))
42-
&& f.name.endsWith(".d.ts")
42+
&& !f.name.endsWith(".d.ts")
4343
}
4444

4545
override fun annotate(input: JSLinterInput<TemplateLintState>): JSLinterAnnotationResult? {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class TemplateLintFixAction : JSLinterFixAction(
6868
|| (f.name.endsWith(".ts") && supportsJS)
6969
|| f.name.endsWith(".gjs")
7070
|| f.name.endsWith(".gts"))
71-
&& f.name.endsWith(".d.ts")
71+
&& !f.name.endsWith(".d.ts")
7272
}
7373

7474
private fun fixFile(psiFile: PsiFile) {

0 commit comments

Comments
 (0)