Added: .gitignore

This commit is contained in:
2025-12-13 11:18:39 +01:00
parent 72d917f6ef
commit 59732f35fb
1059 changed files with 171564 additions and 3 deletions

View File

@@ -0,0 +1,15 @@
import { containsNewline } from './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 === '}') &&
containsNewline(fc)) {
const msg = 'Flow end indicator should be more indented than parent';
onError(end, 'BAD_INDENT', msg, true);
}
}
}
export { flowIndentCheck };