From e10ebf0489c351d633789f471e98bdb2cb8e5a8b Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Fri, 18 Sep 2020 14:17:20 +0200 Subject: [PATCH] TS config / shims: Fix indentation / whitespace --- js/shims.d.ts | 4 ++-- js/webpack-config-shims.d.ts | 8 +++---- js/webpack-config-tsconfig.json | 39 ++++++++++++++++----------------- 3 files changed, 25 insertions(+), 26 deletions(-) diff --git a/js/shims.d.ts b/js/shims.d.ts index f640d5616..ddc97cfde 100644 --- a/js/shims.d.ts +++ b/js/shims.d.ts @@ -3,5 +3,5 @@ export * from './webpack-config-shims'; import Application from './src/common/Application'; declare global { - const app: Application; -} \ No newline at end of file + const app: Application; +} diff --git a/js/webpack-config-shims.d.ts b/js/webpack-config-shims.d.ts index 630f7b7a3..978eb9662 100644 --- a/js/webpack-config-shims.d.ts +++ b/js/webpack-config-shims.d.ts @@ -5,13 +5,13 @@ import * as _dayjs from 'dayjs'; import * as _$ from 'jquery'; interface m extends Mithril.Static { - prop: typeof Stream; + prop: typeof Stream; } declare global { - const $: typeof _$; - const m: m; - const dayjs: typeof _dayjs; + const $: typeof _$; + const m: m; + const dayjs: typeof _dayjs; } export as namespace Mithril; diff --git a/js/webpack-config-tsconfig.json b/js/webpack-config-tsconfig.json index 67744af8b..7b14ec0ae 100644 --- a/js/webpack-config-tsconfig.json +++ b/js/webpack-config-tsconfig.json @@ -1,22 +1,21 @@ { - "include": ["src/**/*.ts"], - "files": ["shims.d.ts"], - "compilerOptions": { - "allowUmdGlobalAccess": true, - "outDir": "dist", - "sourceMap": true, - "strict": true, - "noImplicitReturns": false, - "noImplicitAny": false, - "module": "es2015", - "emitDecoratorMetadata": true, - "experimentalDecorators": true, - "esModuleInterop": true, - "moduleResolution": "node", - "target": "es6", - "jsx": "preserve", - "lib": ["es2015", "es2017", "dom"], - "allowSyntheticDefaultImports": true - } + "include": ["src/**/*.ts"], + "files": ["shims.d.ts"], + "compilerOptions": { + "allowUmdGlobalAccess": true, + "outDir": "dist", + "sourceMap": true, + "strict": true, + "noImplicitReturns": false, + "noImplicitAny": false, + "module": "es2015", + "emitDecoratorMetadata": true, + "experimentalDecorators": true, + "esModuleInterop": true, + "moduleResolution": "node", + "target": "es6", + "jsx": "preserve", + "lib": ["es2015", "es2017", "dom"], + "allowSyntheticDefaultImports": true + } } - \ No newline at end of file