Skip to content

Commit cf7ca6e

Browse files
authored
Fixed false positives for js, and ts files in valid-compile. (#44)
1 parent 81be5ca commit cf7ca6e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/rules/valid-compile.ts

+3
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ export default createRule("valid-compile", {
8080
type: "problem",
8181
},
8282
create(context) {
83+
if (!context.parserServices.isSvelte) {
84+
return {}
85+
}
8386
const ignoreWarnings = Boolean(context.options[0]?.ignoreWarnings)
8487
const sourceCode = context.getSourceCode()
8588
const text = sourceCode.text

0 commit comments

Comments
 (0)