diff --git a/react/tsconfig.json b/react/tsconfig.json index 5c06d1f9..c7a368a7 100644 --- a/react/tsconfig.json +++ b/react/tsconfig.json @@ -1,5 +1,6 @@ { "compilerOptions": { + "strict": false, "noImplicitAny": true, "allowJs": true, "target": "es2020", @@ -13,7 +14,7 @@ ], "esModuleInterop": true, "sourceMap": true, - "moduleResolution": "node", + "moduleResolution": "bundler", "skipLibCheck": true, "resolveJsonModule": true, "forceConsistentCasingInFileNames": true, diff --git a/src/binding/BindingBase/index.ts b/src/binding/BindingBase/index.ts index 05a7cd6d..4959706b 100644 --- a/src/binding/BindingBase/index.ts +++ b/src/binding/BindingBase/index.ts @@ -264,7 +264,7 @@ class BindingBase extends Events { */ set historyEnabled(value) { if (this._history) { - // @ts-ignore + // @ts-expect-error this._history.enabled = value; } } @@ -273,7 +273,7 @@ class BindingBase extends Events { * Gets whether history is enabled for the binding. */ get historyEnabled() { - // @ts-ignore + // @ts-expect-error return this._history && this._history.enabled; } diff --git a/src/components/ArrayInput/index.ts b/src/components/ArrayInput/index.ts index b719eeba..a1c2dc63 100644 --- a/src/components/ArrayInput/index.ts +++ b/src/components/ArrayInput/index.ts @@ -179,7 +179,7 @@ class ArrayInput extends Element implements IFocusable, IBindable { this._getDefaultFn = args.getDefaultFn ?? null; - // @ts-ignore + // @ts-expect-error let valueType = args.elementArgs && args.elementArgs.type || args.type; if (!ArrayInput.DEFAULTS.hasOwnProperty(valueType)) { valueType = 'string'; diff --git a/src/components/Button/component.tsx b/src/components/Button/component.tsx index 61703966..8f44c052 100644 --- a/src/components/Button/component.tsx +++ b/src/components/Button/component.tsx @@ -11,7 +11,7 @@ class Button extends Element { static ctor = ButtonClass; render() { - // @ts-ignore + // @ts-expect-error return