-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
More syntax tests #1419
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More syntax tests #1419
Conversation
- except some .md files and mathjax dist/extras/
- run it on .json image test mocks and .glsl files - no need it to run it on .js files as eslint already takes care of that.
tasks/test_syntax.js
Outdated
path.join(constants.pathToRoot, 'test', 'image', 'mocks', '*') | ||
]); | ||
|
||
var regex = /\r?\n$/; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we want to make sure they end in exactly one newline, no more?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah. Good call. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done in f13091c
Thanks, 💃 Not sure what GH thinks changed in 9f1c6c4#diff-ebde94117620b050ec349c85b9a200ea but anyway it all looks good. |
I think that's because my vim changed the DOS EOL to a UNIX EOL on save. |
This PR:
\n
at end of file for JSON and.glsl
files