Fixed some build options for vite

This commit is contained in:
Simon Martens
2024-12-04 17:28:56 +01:00
parent 7f3e3d1926
commit 34ca6c15bf
892 changed files with 82651 additions and 27 deletions

View File

@@ -0,0 +1,17 @@
'use strict';
var utilContainsNewline = require('./util-contains-newline.js');
function flowIndentCheck(indent, fc, onError) {
if (fc?.type === 'flow-collection') {
const end = fc.end[0];
if (end.indent === indent &&
(end.source === ']' || end.source === '}') &&
utilContainsNewline.containsNewline(fc)) {
const msg = 'Flow end indicator should be more indented than parent';
onError(end, 'BAD_INDENT', msg, true);
}
}
}
exports.flowIndentCheck = flowIndentCheck;