The code in validator is currently exempted from gulp lint and gulp presubmit. It's probably worth removing these exemptions, so that the validator code can benefit from all the new checks we've recently put in place (to the extent it makes sense to do so).
See https://github.com/ampproject/amphtml/blob/master/build-system/config.js#L125-L158