Skip to content

Commit ad58c59

Browse files
committed
Optimize if all rules are enabled on save
1 parent 283cce1 commit ad58c59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/eslintServer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ async function getSaveConfiguration(filePath: string, settings: TextDocumentSett
477477
}
478478
}
479479
}
480-
return result;
480+
return Object.keys(result.rules).length > 0 ? result : undefined;
481481
}, settings);
482482
}
483483
if (result === undefined || result === null) {

0 commit comments

Comments
 (0)