Skip to content

Commit 19bceeb

Browse files
Merge pull request #1970 from patricklx/patch-1
add explanation comments
2 parents 068609d + 0f6fc6c commit 19bceeb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lib/preprocessors/noop.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
/**
2+
* this preprocessor validates if eslint if configured correctly so that gjs/gts are correctly processed by our parser
3+
* this preprocessor is setup by our recommended rules for gjs/gts, so it will always be called for it
4+
* the flow is the following:
5+
* 1. gjs/gts files goes through our parses, which calls registerParsedFile, if its not correctly setup, registerParsedFile will not be called
6+
* 2. postprocess checks if the file is registered and if not throws an error (only if parsing failed)
7+
*
8+
*/
9+
110
const parsedFiles = new Set();
211

312
module.exports = {

0 commit comments

Comments
 (0)