Add custom prettierrc

This commit is contained in:
Melon 2022-10-30 16:58:12 +00:00
parent fd2252bdad
commit 99c2ae6e33
Signed by: melon
GPG Key ID: 6C9D970C50D26A25
11 changed files with 46 additions and 33 deletions

13
.prettierrc Normal file
View File

@ -0,0 +1,13 @@
{
"printWidth": 150,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": false,
"trailingComma": "all",
"bracketSpacing": false,
"jsxBracketSameLine": false,
"arrowParens": "avoid",
"requirePragma": false,
"insertPragma": false
}

View File

@ -1,13 +1,13 @@
/* fallback */
@font-face {
font-family: 'Material Symbols Outlined';
font-family: "Material Symbols Outlined";
font-style: normal;
font-weight: 400;
src: url(~/assets/material-symbols.woff2) format('woff2');
src: url(~/assets/material-symbols.woff2) format("woff2");
}
@mixin mso {
font-family: 'Material Symbols Outlined';
font-family: "Material Symbols Outlined";
font-weight: normal;
font-style: normal;
font-size: 24px;
@ -18,6 +18,6 @@
white-space: nowrap;
word-wrap: normal;
direction: ltr;
-moz-font-feature-settings: 'liga';
-moz-font-feature-settings: "liga";
-moz-osx-font-smoothing: grayscale;
}

View File

@ -1,8 +1,8 @@
import './app.scss'
import App from './App.svelte'
import "./app.scss";
import App from "./App.svelte";
const app = new App({
target: document.getElementById('app')
})
target: document.getElementById("app"),
});
export default app
export default app;

View File

@ -12,7 +12,7 @@ export const loginStore = writable<LoginStore>(
} catch (_) {
return null;
}
})()
})(),
);
loginStore.subscribe((value) => localStorage.setItem("login-session", JSON.stringify(value)));
loginStore.subscribe(value => localStorage.setItem("login-session", JSON.stringify(value)));

View File

@ -1,7 +1,7 @@
import sveltePreprocess from 'svelte-preprocess'
import sveltePreprocess from "svelte-preprocess";
export default {
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
preprocess: sveltePreprocess()
}
preprocess: sveltePreprocess(),
};