This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
/** | |
* This script removes trailing newlines and carriage returns from files. | |
* | |
* Read related issue | |
* https://github.com/prettier/prettier/issues/6360#issuecomment-3380097220 | |
* | |
* By default, SFDX installs a prettier pre-commit git hook. Prettier always adds | |
* newlines to the end of files. Salesforce strips those newlines away. This leads |