From e077eab28c4e6214fcf188c272a9dc6f27131712 Mon Sep 17 00:00:00 2001 From: KeitIG Date: Mon, 20 Aug 2018 23:17:30 +0200 Subject: [PATCH] Completely disallow JS --- src/main/modules/tray.ts | 2 -- tsconfig.json | 3 --- webpack.common.js | 2 +- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/main/modules/tray.ts b/src/main/modules/tray.ts index c72d7c1d5..614138883 100644 --- a/src/main/modules/tray.ts +++ b/src/main/modules/tray.ts @@ -42,8 +42,6 @@ class TrayModule extends ModuleWindow { 'tray-darwin-dark': nativeImage.createFromPath(path.join(logosPath, 'museeks-tray-dark.png')) }; - console.log(trayIcons); - // Make it "lightable" on macOS trayIcons['tray-darwin-dark'].setTemplateImage(true); diff --git a/tsconfig.json b/tsconfig.json index 82aea3e73..2b284ed52 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,15 +4,12 @@ "target": "es5", "module": "esnext", "jsx": "react", - "allowJs": true, "moduleResolution": "node", "noUnusedLocals": true, "noUnusedParameters": true, "removeComments": false, - "preserveConstEnums": true, "sourceMap": true, "strict": true, - "skipLibCheck": true, "baseUrl": ".", "typeRoots": [ "types/**/*.d.ts" diff --git a/webpack.common.js b/webpack.common.js index 746c333fb..098c714d3 100644 --- a/webpack.common.js +++ b/webpack.common.js @@ -60,7 +60,7 @@ const sharedConfig = { module: { rules: [ { - test: /\.(ts|tsx|js)([?]?.*)$/, + test: /\.(ts|tsx)([?]?.*)$/, loader: 'ts-loader', exclude: /node_modules/, },