chore: Move to prettier standard double quotes (#1309)

This commit is contained in:
Tom Moor
2020-06-20 13:59:15 -07:00
committed by GitHub
parent 2a3b9e2104
commit f43deb7940
444 changed files with 5988 additions and 5977 deletions

View File

@@ -1,6 +1,6 @@
// @flow
import { Collection } from '../models';
import naturalSort from '../../shared/utils/naturalSort';
import { Collection } from "../models";
import naturalSort from "../../shared/utils/naturalSort";
type Document = {
children: Document[],
@@ -10,7 +10,7 @@ type Document = {
};
const sortDocuments = (documents: Document[]): Document[] => {
const orderedDocs = naturalSort(documents, 'title');
const orderedDocs = naturalSort(documents, "title");
return orderedDocs.map(document => ({
...document,
@@ -25,7 +25,7 @@ export default function present(collection: Collection) {
name: collection.name,
description: collection.description,
icon: collection.icon,
color: collection.color || '#4E5C6E',
color: collection.color || "#4E5C6E",
type: collection.type,
private: collection.private,
createdAt: collection.createdAt,
@@ -34,7 +34,7 @@ export default function present(collection: Collection) {
documents: undefined,
};
if (collection.type === 'atlas') {
if (collection.type === "atlas") {
// Force alphabetical sorting
data.documents = sortDocuments(collection.documentStructure);
}