Skip to content

Commit

Permalink
Ignore current errors reported by TypeScript
Browse files Browse the repository at this point in the history
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
  • Loading branch information
MauricioFauth committed Mar 30, 2023
1 parent a4281a8 commit bc79f55
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion webpack.config.cjs
Expand Up @@ -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',
Expand Down Expand Up @@ -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 } },
],
},
{
Expand Down

0 comments on commit bc79f55

Please sign in to comment.