Handle flow comments with leading spaces (#9168)

* check for spaces and tabs before a flow comment

* fix issue with using string index and shift interchangably

* update tests

* Use update charcodes version

* Disallow flow-comments in flow-comments and check for unterminated comments
This commit is contained in:
Vikram Rangaraj
2018-12-13 22:10:01 -08:00
committed by Daniel Tschinder
parent b9340bc597
commit 72471aff63
25 changed files with 404 additions and 133 deletions

View File

@@ -98,7 +98,7 @@ function update_whitelist(summary) {
);
});
const newLines = disallowed
const newLines = summary.disallowed.failure
.map(({ test }) => test.file)
.filter(test => oldLines.indexOf(test) === -1);