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