src/providers/FirestoreFormattingProvider.ts
Function provideDocumentFormattingEdits
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async provideDocumentFormattingEdits(document: TextDocument, options: FormattingOptions): Promise<TextEdit[]> {
if (workspace.getConfiguration("firestorerules").get("usePrettierFormatter") || false) {
const text = document.getText();
const formattedText = prettier.format(text, {