diff --git a/src/plugins.js b/src/plugins.js index 705b3e8..a0e52fd 100644 --- a/src/plugins.js +++ b/src/plugins.js @@ -198,8 +198,12 @@ async function loadAllPlugins(userPlugins) { /** * @typedef {object} ValidationResult - * @property {string} fileLocation - Filename of the document that was - * validated. + * @property {string} fileLocation - Path of the document that was validated. + * Filenames are resolved and normalised by + * [glob](https://www.npmjs.com/package/glob) using the `dotRelative` option. + * This means relative paths in the current directory will be prefixed with + * `./` (or `.\` on Windows) even if this was not present in the input + * filename or pattern. * @property {string | null} schemaLocation - Location of the schema used to * validate this file if one could be found. `null` if no schema was found. * @property {boolean | null} valid - Result of the validation (true/false) if a