Today I Learned #1 - Validate JSON Files using CLI | Devlin Pajaron

Today I Learned #1 - Validate JSON Files using CLI

Install jsonlint

Run the following command to lint json files. You can replace ./src with the path you want to start.


Previous Version

This will output the syntax that is causing an error in my case it was <<<<< HEAD that I missed from rebasing.

Next thing we do is find the file.

Install ack-grep Then run

This will output the directory of the culprit file.

Things that can be improved on


Print out the direct and the file name in the jsonlint script. I will update the script if I will be able to find out how or if someone can point it out.

Sources


JavaScript Development in Windows using Windows Subsystem for Linux (WSL)
Responsive CSS Grid in Action