chore: fixing up the config

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2022-01-20 10:52:30 +01:00
committed by Patrik Oldsberg
parent b1912b18d6
commit d620855bd2
+7 -1
View File
@@ -34,6 +34,7 @@ import { BundlingOptions, BackendBundlingOptions } from './types';
import { version } from '../../lib/version';
import { paths as cliPaths } from '../../lib/paths';
import { runPlain } from '../run';
import ESLintPlugin from 'eslint-webpack-plugin';
import pickBy from 'lodash/pickBy';
export function resolveBaseUrl(config: Config): URL {
@@ -89,12 +90,14 @@ export async function createConfig(
const baseUrl = frontendConfig.getString('app.baseUrl');
const validBaseUrl = new URL(baseUrl);
if (checksEnabled) {
plugins.push(
new ForkTsCheckerWebpackPlugin({
typescript: { configFile: paths.targetTsConfig },
}),
new ESLintPlugin({
files: ['**', '!**/__tests__/**', '!**/?(*.)(spec|test).*'],
}),
);
}
@@ -342,6 +345,9 @@ export async function createBackendConfig(
new ForkTsCheckerWebpackPlugin({
typescript: { configFile: paths.targetTsConfig },
}),
new ESLintPlugin({
files: ['**', '!**/__tests__/**', '!**/?(*.)(spec|test).*'],
}),
]
: []),
],