Skip to content

Commit

Permalink
Optimize if all rules are enabled on save
Browse files Browse the repository at this point in the history
  • Loading branch information
dbaeumer committed Sep 10, 2021
1 parent 283cce1 commit ad58c59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/eslintServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ async function getSaveConfiguration(filePath: string, settings: TextDocumentSett
}
}
}
return result;
return Object.keys(result.rules).length > 0 ? result : undefined;
}, settings);
}
if (result === undefined || result === null) {
Expand Down

0 comments on commit ad58c59

Please sign in to comment.