diff --git a/.eslintrc b/.eslintrc index 0adc5e30..486617bc 100644 --- a/.eslintrc +++ b/.eslintrc @@ -13,8 +13,19 @@ "jsx": true } }, + "plugins": [ + "header" + ], "rules": { - "react/prop-types": "off" + "react/prop-types": "off", + "header/header": [2, "block", [ + "*", + {"pattern": " * Copyright \\(c\\) \\d{4} BlockDev AG", "template": " * Copyright (c) 2020 BlockDev AG"}, + " *", + " * This source code is licensed under the MIT license found in the", + " * LICENSE file in the root directory of this source tree.", + " " + ]] }, "settings": { "react": { diff --git a/LICENSE b/LICENSE new file mode 100644 index 00000000..953a98b7 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 BlockDev AG + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/package.json b/package.json index 8fefb1ba..ebcd07af 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "email": "mysterium-dev@mysterium.network", "url": "https://mysterium.network/" }, - "license": "GPL-3.0", + "license": "MIT", "scripts": { "lint": "eslint --ext .ts,.tsx src", "dev": "webpack --mode=development", @@ -52,6 +52,7 @@ "copy-webpack-plugin": "^5.1.1", "eslint": "^6.8.0", "eslint-config-prettier": "^6.10.0", + "eslint-plugin-header": "^3.0.0", "eslint-plugin-prettier": "^3.1.2", "eslint-plugin-react": "^7.19.0", "file-loader": "^5.0.2", diff --git a/src/app.tsx b/src/app.tsx index 79f675a4..91da2547 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2020 BlockDev AG + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ import React from "react" import { observer } from "mobx-react-lite" import { useStores } from "./store" diff --git a/src/config.ts b/src/config.ts index 0ff2a15e..c9018895 100644 --- a/src/config.ts +++ b/src/config.ts @@ -1 +1,7 @@ +/** + * Copyright (c) 2020 BlockDev AG + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ export const winSize = { width: 640, height: 582 } diff --git a/src/connect-view.tsx b/src/connect-view.tsx index 48b9dcf1..0ed7650f 100644 --- a/src/connect-view.tsx +++ b/src/connect-view.tsx @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2020 BlockDev AG + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ import { ScrollArea, View } from "@nodegui/react-nodegui" import { ProposalTable } from "./proposals/comp/proposal-table/proposal-table" import React from "react" diff --git a/src/connection-active-view.tsx b/src/connection-active-view.tsx index ef6926c4..87c05c5e 100644 --- a/src/connection-active-view.tsx +++ b/src/connection-active-view.tsx @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2020 BlockDev AG + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ import { Text, View } from "@nodegui/react-nodegui" import React from "react" import { winSize } from "./config" diff --git a/src/connection/comp/connect-disconnect-button.tsx b/src/connection/comp/connect-disconnect-button.tsx index d00e7789..dcb53c78 100644 --- a/src/connection/comp/connect-disconnect-button.tsx +++ b/src/connection/comp/connect-disconnect-button.tsx @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2020 BlockDev AG + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ import { View } from "@nodegui/react-nodegui" import { ConnectionStatus } from "mysterium-vpn-js" import React from "react" diff --git a/src/connection/comp/connection-status-text.tsx b/src/connection/comp/connection-status-text.tsx index e9d465cb..59058194 100644 --- a/src/connection/comp/connection-status-text.tsx +++ b/src/connection/comp/connection-status-text.tsx @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2020 BlockDev AG + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ import React from "react" import { Text } from "@nodegui/react-nodegui" import { useStores } from "../../store" diff --git a/src/connection/comp/connection-status.tsx b/src/connection/comp/connection-status.tsx index 236ead42..4ca9a932 100644 --- a/src/connection/comp/connection-status.tsx +++ b/src/connection/comp/connection-status.tsx @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2020 BlockDev AG + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ import React from "react" import { View } from "@nodegui/react-nodegui" import { useStores } from "../../store" diff --git a/src/connection/store.ts b/src/connection/store.ts index a8f7c597..8c7fb118 100644 --- a/src/connection/store.ts +++ b/src/connection/store.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2020 BlockDev AG + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ import { action, observable, reaction, runInAction } from "mobx" import { RootStore } from "../store" import tequilapi from "../tequila" diff --git a/src/daemon/store.ts b/src/daemon/store.ts index 2c88bfcb..887cbf02 100644 --- a/src/daemon/store.ts +++ b/src/daemon/store.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2020 BlockDev AG + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ import tequilapi from "../tequila" import { action, observable, reaction, when } from "mobx" import { supervisor } from "../supervisor/supervisor" diff --git a/src/identity/store.ts b/src/identity/store.ts index 9753f6ba..679b2b15 100644 --- a/src/identity/store.ts +++ b/src/identity/store.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2020 BlockDev AG + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ import retry from "async-retry" import tequilapi from "../tequila" import { action, observable, reaction } from "mobx" diff --git a/src/index.tsx b/src/index.tsx index 0a8611de..09997a92 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2020 BlockDev AG + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ import React from "react" import { Renderer } from "@nodegui/react-nodegui" import MainWindow from "./main-window" diff --git a/src/location/comp/effective-location.tsx b/src/location/comp/effective-location.tsx index b652c861..ffad87a1 100644 --- a/src/location/comp/effective-location.tsx +++ b/src/location/comp/effective-location.tsx @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2020 BlockDev AG + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ import React from "react" import { Text, View } from "@nodegui/react-nodegui" import { observer } from "mobx-react-lite" diff --git a/src/location/comp/original-location.tsx b/src/location/comp/original-location.tsx index 6dd45834..b65a5a34 100644 --- a/src/location/comp/original-location.tsx +++ b/src/location/comp/original-location.tsx @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2020 BlockDev AG + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ import React from "react" import { Text, View } from "@nodegui/react-nodegui" import { observer } from "mobx-react-lite" diff --git a/src/location/countries.ts b/src/location/countries.ts index 9d15c1d9..9a6fd6b2 100644 --- a/src/location/countries.ts +++ b/src/location/countries.ts @@ -1,5 +1,9 @@ -// base64 encoded 24px flags, originally from https://github.com/gosquared/flags (MIT) -// https://github.com/AndrejsAbrickis/flag-icons/tree/master/src/flags (MIT) +/** + * Copyright (c) 2020 BlockDev AG + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ const countries: { [key: string]: CountryType } = Object.freeze({ af: { name: "Afghanistan", diff --git a/src/main-window.tsx b/src/main-window.tsx index ac5b521b..e5683b34 100644 --- a/src/main-window.tsx +++ b/src/main-window.tsx @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2020 BlockDev AG + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ import { hot, Window } from "@nodegui/react-nodegui" import React, { MutableRefObject, useCallback, useEffect, useRef } from "react" import { QIcon, QMainWindow, QStatusBar, WidgetEventTypes } from "@nodegui/nodegui" diff --git a/src/node-launcher.ts b/src/node-launcher.ts index 0766cbb0..82061b1e 100644 --- a/src/node-launcher.ts +++ b/src/node-launcher.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2020 BlockDev AG + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ import * as path from "path" import { isDevelopment, isProduction } from "./utils/mode" diff --git a/src/payment/rate.ts b/src/payment/rate.ts index 798aadbc..a086f91f 100644 --- a/src/payment/rate.ts +++ b/src/payment/rate.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2020 BlockDev AG + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ import { mystDisplay, pricePerGiB, pricePerMinute, Proposal as ProposalType } from "mysterium-vpn-js" export const timeRate = (p: ProposalType): number | undefined => { diff --git a/src/proposals/comp/country-filter.tsx b/src/proposals/comp/country-filter.tsx index 237dd385..e1f322a6 100644 --- a/src/proposals/comp/country-filter.tsx +++ b/src/proposals/comp/country-filter.tsx @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2020 BlockDev AG + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ import React from "react" import { useStores } from "../../store" import { Text, View } from "@nodegui/react-nodegui" diff --git a/src/proposals/comp/proposal-table/header.tsx b/src/proposals/comp/proposal-table/header.tsx index 9f9c4212..4dc078ce 100644 --- a/src/proposals/comp/proposal-table/header.tsx +++ b/src/proposals/comp/proposal-table/header.tsx @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2020 BlockDev AG + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ import React from "react" import { Text, View } from "@nodegui/react-nodegui" import { proposalsCellStyle } from "./style" diff --git a/src/proposals/comp/proposal-table/proposal-table.tsx b/src/proposals/comp/proposal-table/proposal-table.tsx index e3465a12..c80e4618 100644 --- a/src/proposals/comp/proposal-table/proposal-table.tsx +++ b/src/proposals/comp/proposal-table/proposal-table.tsx @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2020 BlockDev AG + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ import React from "react" import { useStores } from "../../../store" import { View } from "@nodegui/react-nodegui" diff --git a/src/proposals/comp/proposal-table/proposal.tsx b/src/proposals/comp/proposal-table/proposal.tsx index 0bb4566f..b941b309 100644 --- a/src/proposals/comp/proposal-table/proposal.tsx +++ b/src/proposals/comp/proposal-table/proposal.tsx @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2020 BlockDev AG + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ import { UIProposal } from "../../ui-proposal-type" import React from "react" import { Toggle } from "../../../ui-kit/toggle/toggle" diff --git a/src/proposals/comp/proposal-table/style.tsx b/src/proposals/comp/proposal-table/style.tsx index 52cc1f8f..b27c78df 100644 --- a/src/proposals/comp/proposal-table/style.tsx +++ b/src/proposals/comp/proposal-table/style.tsx @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2020 BlockDev AG + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ export const proposalsCellStyle = ` width: 100; ` diff --git a/src/proposals/comp/selected-proposal.tsx b/src/proposals/comp/selected-proposal.tsx index 4a848f53..a394d961 100644 --- a/src/proposals/comp/selected-proposal.tsx +++ b/src/proposals/comp/selected-proposal.tsx @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2020 BlockDev AG + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ import React from "react" import { Text, View } from "@nodegui/react-nodegui" import { Proposal as ProposalType } from "mysterium-vpn-js/lib/proposal/proposal" diff --git a/src/proposals/store.ts b/src/proposals/store.ts index df3a2171..f0b9a03e 100644 --- a/src/proposals/store.ts +++ b/src/proposals/store.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2020 BlockDev AG + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ import { action, computed, observable, reaction } from "mobx" import { RootStore } from "../store" import { DaemonStatusType } from "../daemon/store" diff --git a/src/proposals/ui-proposal-type.ts b/src/proposals/ui-proposal-type.ts index c9463793..435c39d7 100644 --- a/src/proposals/ui-proposal-type.ts +++ b/src/proposals/ui-proposal-type.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2020 BlockDev AG + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ import { Proposal } from "mysterium-vpn-js" export interface UIProposal extends Proposal { diff --git a/src/store.ts b/src/store.ts index afc45425..0f7844d6 100644 --- a/src/store.ts +++ b/src/store.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2020 BlockDev AG + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ import { DaemonStore } from "./daemon/store" import { ConnectionStore } from "./connection/store" import React from "react" diff --git a/src/supervisor/supervisor.ts b/src/supervisor/supervisor.ts index 5766c0e9..d4dd8416 100644 --- a/src/supervisor/supervisor.ts +++ b/src/supervisor/supervisor.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2020 BlockDev AG + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ import * as net from "net" import { Socket } from "net" import * as os from "os" diff --git a/src/tequila.ts b/src/tequila.ts index db0ce449..a8b4407e 100644 --- a/src/tequila.ts +++ b/src/tequila.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2020 BlockDev AG + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ import { TequilapiClient, TequilapiClientFactory } from "mysterium-vpn-js" const factory = new TequilapiClientFactory("http://localhost:4050") diff --git a/src/tray/quit.ts b/src/tray/quit.ts index 09f84de6..24e97102 100644 --- a/src/tray/quit.ts +++ b/src/tray/quit.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2020 BlockDev AG + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ import { QAction } from "@nodegui/nodegui" import { rootStore } from "../store" import { ConnectionStatus as ConnectionStatusType } from "mysterium-vpn-js/lib/connection/status" diff --git a/src/tray/repair.ts b/src/tray/repair.ts index 148b98a2..94a93dbd 100644 --- a/src/tray/repair.ts +++ b/src/tray/repair.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2020 BlockDev AG + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ import { QAction } from "@nodegui/nodegui" import { rootStore } from "../store" import { ConnectionStatus as ConnectionStatusType } from "mysterium-vpn-js/lib/connection/status" diff --git a/src/tray/tray.ts b/src/tray/tray.ts index 2b1ab43c..fc511a65 100644 --- a/src/tray/tray.ts +++ b/src/tray/tray.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2020 BlockDev AG + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ import { QIcon, QMenu, QSystemTrayIcon } from "@nodegui/nodegui" import path from "path" import { quitAction } from "./quit" diff --git a/src/ui-kit/clickable-view/clickable-view.tsx b/src/ui-kit/clickable-view/clickable-view.tsx index 0f976c4b..756f7df1 100644 --- a/src/ui-kit/clickable-view/clickable-view.tsx +++ b/src/ui-kit/clickable-view/clickable-view.tsx @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2020 BlockDev AG + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ import React, { ReactNode } from "react" import { Button, View } from "@nodegui/react-nodegui" diff --git a/src/ui-kit/collapse/collapse.tsx b/src/ui-kit/collapse/collapse.tsx index ba1f9377..81a81eaf 100644 --- a/src/ui-kit/collapse/collapse.tsx +++ b/src/ui-kit/collapse/collapse.tsx @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2020 BlockDev AG + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ import React, { useState } from "react" import { Button, View } from "@nodegui/react-nodegui" import { ClickableView } from "../clickable-view/clickable-view" diff --git a/src/ui-kit/colors.ts b/src/ui-kit/colors.ts index 1ab23b7d..bc3f093c 100644 --- a/src/ui-kit/colors.ts +++ b/src/ui-kit/colors.ts @@ -1 +1,7 @@ +/** + * Copyright (c) 2020 BlockDev AG + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ export const brand = "#853773" diff --git a/src/ui-kit/country/country.tsx b/src/ui-kit/country/country.tsx index b4c4287f..22a49ae8 100644 --- a/src/ui-kit/country/country.tsx +++ b/src/ui-kit/country/country.tsx @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2020 BlockDev AG + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ import React from "react" import { resolveCountry } from "../../location/countries" import { ResolvedCountry } from "./resolved-country" diff --git a/src/ui-kit/country/flag.tsx b/src/ui-kit/country/flag.tsx index b49ddf91..5e633f02 100644 --- a/src/ui-kit/country/flag.tsx +++ b/src/ui-kit/country/flag.tsx @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2020 BlockDev AG + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ import React from "react" import { Image } from "@nodegui/react-nodegui" import { AspectRatioMode } from "@nodegui/nodegui" diff --git a/src/ui-kit/country/resolved-country.tsx b/src/ui-kit/country/resolved-country.tsx index a951f87f..fa65e6b2 100644 --- a/src/ui-kit/country/resolved-country.tsx +++ b/src/ui-kit/country/resolved-country.tsx @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2020 BlockDev AG + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ import React from "react" import { Text, View } from "@nodegui/react-nodegui" import { Flag } from "./flag" diff --git a/src/ui-kit/mbutton/mbutton.tsx b/src/ui-kit/mbutton/mbutton.tsx index ad20596c..44d4f73f 100644 --- a/src/ui-kit/mbutton/mbutton.tsx +++ b/src/ui-kit/mbutton/mbutton.tsx @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2020 BlockDev AG + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ import React from "react" import { Button, useEventHandler } from "@nodegui/react-nodegui" import { brand } from "../colors" diff --git a/src/ui-kit/spinner/spinner.tsx b/src/ui-kit/spinner/spinner.tsx index a4907b60..b2bf0567 100644 --- a/src/ui-kit/spinner/spinner.tsx +++ b/src/ui-kit/spinner/spinner.tsx @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2020 BlockDev AG + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ import React, { MutableRefObject, useCallback, useEffect, useRef } from "react" import { Image, View } from "@nodegui/react-nodegui" import { QLabel, QMovie } from "@nodegui/nodegui" diff --git a/src/ui-kit/toggle/toggle.tsx b/src/ui-kit/toggle/toggle.tsx index 1ff496bc..3e10e2de 100644 --- a/src/ui-kit/toggle/toggle.tsx +++ b/src/ui-kit/toggle/toggle.tsx @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2020 BlockDev AG + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ import React from "react" import { View } from "@nodegui/react-nodegui" import { ClickableView } from "../clickable-view/clickable-view" diff --git a/src/ui-kit/typography.ts b/src/ui-kit/typography.ts index 8c1f98d2..bcb17b5f 100644 --- a/src/ui-kit/typography.ts +++ b/src/ui-kit/typography.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2020 BlockDev AG + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ export const textSmall = "font-size: 12px;" export const textRegular = "font-size: 14px;" export const textLarger = "font-size: 16px;" diff --git a/src/utils/mode.ts b/src/utils/mode.ts index 333f7580..aad09338 100644 --- a/src/utils/mode.ts +++ b/src/utils/mode.ts @@ -1,2 +1,8 @@ +/** + * Copyright (c) 2020 BlockDev AG + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ export const isProduction = (): boolean => process.env.NODE_ENV == "production" export const isDevelopment = (): boolean => !isProduction() diff --git a/src/utils/on-process-exit.ts b/src/utils/on-process-exit.ts index 12f265e1..6b749f60 100644 --- a/src/utils/on-process-exit.ts +++ b/src/utils/on-process-exit.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2020 BlockDev AG + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ export const onProcessExit = (hook: Function): void => { const shutdown = (): void => { console.log("Shutting down...") diff --git a/src/utils/paths.ts b/src/utils/paths.ts index c3b9bcae..fd3dd6f4 100644 --- a/src/utils/paths.ts +++ b/src/utils/paths.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2020 BlockDev AG + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ import * as path from "path" /** diff --git a/yarn.lock b/yarn.lock index a9bdb309..3733e4a8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2531,6 +2531,11 @@ eslint-config-prettier@^6.10.0: dependencies: get-stdin "^6.0.0" +eslint-plugin-header@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-header/-/eslint-plugin-header-3.0.0.tgz#0e048b5f0adfdd9754142d59d551ae6bfdaf90ad" + integrity sha512-OIu2ciVW8jK4Ove4JHm1I7X0C98PZuLCyCsoUhAm2HpyGS+zr34qLM6iV06unnDvssvvEh5BkOfaLRF+N7cGoQ== + eslint-plugin-prettier@^3.1.2: version "3.1.2" resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-3.1.2.tgz#432e5a667666ab84ce72f945c72f77d996a5c9ba"