fix(tooling): repair test, i18n and docs verification gates (#3331)

This commit is contained in:
Hampus authored and GitHub committed 2026-10-09 01:38:34 +02:00
1 parent ece622e800
commit f390e610b9
107 files changed
+5144 -3004

No files matched your search

+24
View File
@@ -66,6 +66,29 @@ function resolveMode() {
return 'production';
}
const ACCEPTED_CSS_ORDER_CONFLICTS = [
['app/components/dialogs/ConfirmModal', 'ui/button/Button'],
['app/components/dialogs/Modal', 'ui/button/Button'],
['app/components/dialogs/components/SettingsModalHeader', 'ui/button/Button'],
['app/components/dialogs/shared/SettingsHeadingLinkButton', 'ui/button/Button'],
['ui/tooltip/Tooltip', 'ui/button/Button'],
];
function isAcceptedCssOrderConflict(warning) {
const message = warning.message ?? '';
if (!message.includes('Conflicting order between')) {
return false;
}
return ACCEPTED_CSS_ORDER_CONFLICTS.some(([first, second]) => {
const firstPath = `./src/features/${first}.module.css`;
const secondPath = `./src/features/${second}.module.css`;
return (
message.includes(`between ${firstPath} and ${secondPath}`) ||
message.includes(`between ${secondPath} and ${firstPath}`)
);
});
}
function isMainRuntimeChunk(chunk) {
const runtime = chunk.runtime;
if (runtime == null) {
@@ -401,6 +424,7 @@ export default () => {
target: ['web', 'browserslist'],
lazyCompilation: false,
performance: false,
ignoreWarnings: [isAcceptedCssOrderConflict],
resolve: {
alias: {
...resolveArboriumWasmAliases(),