Skip to content

Commit

Permalink
add return descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
chris48s committed Aug 12, 2024
1 parent 2fe7df6 commit 699179d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class BasePlugin {
* document formats that can be parsed. Any formats registered with this hook
* become valid values for the `parser` property in custom schemas.
*
* @returns {string[]}
* @returns {string[]} Document formats to register
*/
registerDocumentFormats() {
return [];
Expand All @@ -38,7 +38,7 @@ class BasePlugin {
* @param {string | undefined} format - If this filename matched a document
* parser the user has specified in a custom schema, this will be passed to
* `parseDocument` in the `format` param.
* @returns {object | undefined}
* @returns {object | undefined} Parsed file contents
*/
// eslint-disable-next-line no-unused-vars
parseDocument(contents, filename, format) {
Expand All @@ -51,7 +51,7 @@ class BasePlugin {
* valid values for the `format` property in the config file and the
* `--format` command line argument.
*
* @returns {string[]}
* @returns {string[]} Output formats to register
*/
registerOutputFormats() {
return [];
Expand All @@ -73,7 +73,7 @@ class BasePlugin {
* @param {string} filename - The document filename.
* @param {string} format - The user's requested output format as specified in
* the config file or via the `--format` command line argument.
* @returns {string | undefined}
* @returns {string | undefined} Log message
*/
// eslint-disable-next-line no-unused-vars
getSingleResultLogMessage(result, filename, format) {
Expand All @@ -99,7 +99,7 @@ class BasePlugin {
* filename to [ValidationResult](#ValidationResult) object.
* @param {string} format - The user's requested output format as specified in
* the config file or via the `--format` command line argument.
* @returns {string | undefined}
* @returns {string | undefined} Log message
*/
// eslint-disable-next-line no-unused-vars
getAllResultsLogMessage(results, format) {
Expand Down

0 comments on commit 699179d

Please sign in to comment.