shouldValidate(e) {
    return !!this.getBuildOptions(e).validation;
  }
Determine whether the given document should be validated during a build. The default
implementation checks the `validation` property of the build options. If it's set to `true`
or a `ValidationOptions` object, the document is included in the validation phase.