From 100e3d4fad5f0dff7edceac5adc6efc3fdfb0e44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Tue, 21 Feb 2023 17:06:24 +0100 Subject: [PATCH] Increase TypeScript strictness --- .../ckeditor5-woltlab-code-block/src/woltlabcodeblock.ts | 2 +- tsconfig.json | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/plugins/ckeditor5-woltlab-code-block/src/woltlabcodeblock.ts b/plugins/ckeditor5-woltlab-code-block/src/woltlabcodeblock.ts index 82e562e..9d1e743 100644 --- a/plugins/ckeditor5-woltlab-code-block/src/woltlabcodeblock.ts +++ b/plugins/ckeditor5-woltlab-code-block/src/woltlabcodeblock.ts @@ -32,7 +32,7 @@ function attributeValueToString( } export class WoltlabCodeBlock extends Plugin { - #command: CodeBlockCommand; + #command!: CodeBlockCommand; #lastView: WoltlabCodeBlockPanelView | undefined = undefined; static get pluginName() { diff --git a/tsconfig.json b/tsconfig.json index 151cf13..d817df8 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,15 +1,12 @@ { "compilerOptions": { - "allowJs": true, "target": "ES2022", "module": "amd", "outDir": "dist/", "lib": ["DOM", "DOM.Iterable", "ES2022"], - "strictNullChecks": true, + "strict": true, + "noImplicitAny": false, "moduleResolution": "node", - "esModuleInterop": true, - "noImplicitThis": true, - "strictBindCallApply": true, "newLine": "lf" } }