Found a workaround to Prettier returning exit code 1 on command: use Prettier plug-in on VSCode. The issue was from permission issues when running scripts from command line.
What are you trying to accomplish?
Create an article that is about the standard co-op sequence for CS programs
How are you accomplishing it?
By writing the article using Markdown and formatting using VSCode Prettier Plug-in. The modified files are 'careers_sidebar.js' and 'coopsequence.md' in '\wiki\careers'.
Is there anything reviewers should know?
The command 'git ls-files --eol' shows that some of the files in the repo has \crlf ending. However, the website can be hosted on WSL without crashing, and these line endings are also found in the master branch. This might be an issue if this doesn't happen on Linux-based machines.
Checks before you create your pull request
[Y] Did you read and follow article requirements?
[Y] Did you run prettier? Yes, using the VSCode Prettier Plug-in through format-on-save feature. Hopefully it works.
[Y] Is it safe to rollback this change if anything goes wrong?
Found a workaround to Prettier returning exit code 1 on command: use Prettier plug-in on VSCode. The issue was from permission issues when running scripts from command line.
What are you trying to accomplish?
Create an article that is about the standard co-op sequence for CS programs
How are you accomplishing it?
By writing the article using Markdown and formatting using VSCode Prettier Plug-in. The modified files are 'careers_sidebar.js' and 'coopsequence.md' in '\wiki\careers'.
Is there anything reviewers should know?
The command 'git ls-files --eol' shows that some of the files in the repo has \crlf ending. However, the website can be hosted on WSL without crashing, and these line endings are also found in the master branch. This might be an issue if this doesn't happen on Linux-based machines.
Checks before you create your pull request
[Y] Did you read and follow article requirements?
[Y] Did you run prettier? Yes, using the VSCode Prettier Plug-in through format-on-save feature. Hopefully it works.
[Y] Is it safe to rollback this change if anything goes wrong?