format project files

This commit is contained in:
Aarni Halinen
2021-05-07 22:15:17 +03:00
parent 30abec3f16
commit 8406725740
9 changed files with 202 additions and 199 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
module.exports = {
siteUrl: process.env.NEXT_PUBLIC_SITE_URL || "https://sahkoinsinoorikilta.fi",
generateRobotsTxt: true,
exclude: ["/events/*", "/feed/*", "/signup/*", "/admin/*"]
}
exclude: ["/events/*", "/feed/*", "/signup/*", "/admin/*"],
};
+1 -1
View File
@@ -15,6 +15,6 @@ module.exports = withBundleAnalyzer({
],
},
future: {
webpack5: true
webpack5: true,
},
});
+1 -1
View File
@@ -1,4 +1,4 @@
version: '3.4'
version: "3.4"
services:
frontend:
+1 -1
View File
@@ -1,4 +1,4 @@
version: '3.4'
version: "3.4"
services:
frontend:
-3
View File
@@ -4,9 +4,6 @@ import { getSiteRoot } from "./utils";
fixture`404 page renders and functions correctly`.page(`${getSiteRoot()}/404`);
test("Page contains the text 404", async (t) => {
/**
* Test if there is a favicon element on the page
*/
const elem = Selector("#not-found");
await t.expect(elem.textContent).contains("404");
});
+8 -2
View File
@@ -6,7 +6,10 @@
"forceConsistentCasingInFileNames": true,
"isolatedModules": true,
"jsx": "preserve",
"lib": ["dom", "esnext"],
"lib": [
"dom",
"esnext"
],
"module": "esnext",
"moduleResolution": "node",
"noEmit": true,
@@ -19,7 +22,10 @@
"sourceMap": true,
"strict": false, // TODO: switch true
"target": "esnext",
"typeRoots": ["types", "node_modules/@types"],
"typeRoots": [
"types",
"node_modules/@types"
],
"baseUrl": "./",
"paths": {
"@api/*": [