Join GitHub today
Add npm test and lint files #240
I think I prefer using
ajv-cli rather than writing our own ajv-based client (
test/lint.js), but it seems that if we don't use
jsonlint we have to write a client anyway. Are we using
JSON.stringify(JSON.parse... rather than
jsonlint because it also enforces a style of writing the JSON (e.g., two-space indentation)?
In any case, this new approach works, and returns the proper exit status on error.
Thanks for your review @escattone!
I was thinking about this, too. We want to lint browser versions as well and I think for that we would need to write more custom validation script anyway (issue #168). So this is already a good preparation for more custom linting I think.
Yes, and I think it's a nice idea.
Rebased to make sure the latest files are OK as well. I'm happy with the output https://travis-ci.org/mdn/browser-compat-data/builds/242766986