chore: add prettier frontent linter

This commit is contained in:
Oleg Lobanov committed 2021-03-21 12:51:58 +01:00
1 parent a721dc1f31
commit c44b37c50c
73 files changed
+18898 -4499

No files matched your search

+8 -8
View File
@@ -1,16 +1,16 @@
import { fetchURL, fetchJSON } from './utils'
import { fetchURL, fetchJSON } from "./utils";
export function get () {
return fetchJSON(`/api/settings`, {})
export function get() {
return fetchJSON(`/api/settings`, {});
}
export async function update (settings) {
export async function update(settings) {
const res = await fetchURL(`/api/settings`, {
method: 'PUT',
body: JSON.stringify(settings)
})
method: "PUT",
body: JSON.stringify(settings),
});
if (res.status !== 200) {
throw new Error(res.status)
throw new Error(res.status);
}
}