From b8596ec7cef953f2736f2710a8be6b5944a3b7fa Mon Sep 17 00:00:00 2001 From: Valtteri Karesto Date: Mon, 13 Dec 2021 17:20:35 +0200 Subject: [PATCH] Add some lint settings --- .eslintrc.json | 2 +- next.config.js | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index bffb357..913cdba 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,3 +1,3 @@ { - "extends": "next/core-web-vitals" + "extends": ["next", "next/core-web-vitals", "prettier"] } diff --git a/next.config.js b/next.config.js index d54a3fb..0a1215d 100644 --- a/next.config.js +++ b/next.config.js @@ -4,10 +4,13 @@ module.exports = { images: { domains: ["avatars.githubusercontent.com"], }, - webpack(config) { + webpack(config, { isServer }) { config.resolve.alias["vscode"] = require.resolve( "@codingame/monaco-languageclient/lib/vscode-compatibility" ); + if (!isServer) { + config.resolve.fallback.fs = false; + } return config; }, };