From bc79f55e0c6b15f4e4d907f761979b2202de64a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Meneghini=20Fauth?= Date: Thu, 30 Mar 2023 19:48:10 -0300 Subject: [PATCH] Ignore current errors reported by TypeScript MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: MaurĂ­cio Meneghini Fauth --- webpack.config.cjs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webpack.config.cjs b/webpack.config.cjs index db77802578ce..938bfbe5ae4b 100644 --- a/webpack.config.cjs +++ b/webpack.config.cjs @@ -9,6 +9,8 @@ const RtlCssPlugin = require('rtlcss-webpack-plugin'); const rootPath = path.resolve(__dirname, ''); const publicPath = path.resolve(__dirname, 'public'); +const typeScriptErrorsToIgnore = [ 2304, 2322, 2339, 2345, 2362, 2363, 2365, 2367, 2405, 2469, 2538, 2551, 2554, 2555, 2740, 2769, 5096 ]; + module.exports = [ { mode: 'none', @@ -102,7 +104,7 @@ module.exports = [ exclude: /node_modules/, use: [ { loader: 'babel-loader', options: { presets: ['@babel/preset-env'] } }, - { loader: 'ts-loader' } + { loader: 'ts-loader', options: { ignoreDiagnostics: typeScriptErrorsToIgnore } }, ], }, {