Skip to content

Commit

Permalink
docs: use properer module jsdocs
Browse files Browse the repository at this point in the history
Update lib/options.js

Co-authored-by: Jeroen Engels <[email protected]>
  • Loading branch information
lishaduck and jfmengels committed Nov 1, 2024
1 parent f1fcdbb commit fc43074
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 19 deletions.
10 changes: 5 additions & 5 deletions lib/anonymize.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
This module aims to make the paths and versions used in the CLI generic
so that the CLI tests (in the `test/` folder) have the same output on different
machines, and also the same output when only the CLI version changes.
*/
/**
* This module aims to make the paths and versions used in the CLI generic
* so that the CLI tests (in the `test/` folder) have the same output on different
* machines, and also the same output when only the CLI version changes.
*/

/**
* @import {Options} from './types/options';
Expand Down
21 changes: 11 additions & 10 deletions lib/options.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/**
* This file contains all the options from which elm-review derives how it will behave.
*
* Some of these options are not documented in `--help`.
* DO NOT DEPEND ON THEM!
* They might get removed at any point.
* They are not part of the user-facing public API and may be removed in a SemVer patch.
* Open an issue if you have a need for them,
* so that we can discuss what the best course of action is and how to move forward.
*/

/**
* @import {ParsedArgs} from 'minimist';
* @import {Path} from './types/path';
Expand All @@ -15,16 +26,6 @@ const exit = require('../vendor/exit');
const ErrorMessage = require('./error-message');
const Flags = require('./flags');

/*
These contain all the options that derive what and how elm-review will behave.
Some of these options are not documented in `--help`.
DO NOT DEPEND ON THEM!
They might get removed at any point.
Open an issue if you have a need for them, so that we can discuss what the best
course of action is and how to get forward.
*/

/**
* @type {Subcommand[]}
*/
Expand Down
6 changes: 4 additions & 2 deletions lib/parse-elm-worker.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// Code very much inspired by
// https://blog.logrocket.com/a-complete-guide-to-threads-in-node-js-4fa3898fe74f/
/**
* This code was very much inspired by
* <https://blog.logrocket.com/complete-guide-threads-node-js/>.
*/

/**
* @import {MessagePort} from 'worker_threads';
Expand Down
6 changes: 4 additions & 2 deletions lib/parse-elm.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// Code very much inspired by
// https://blog.logrocket.com/a-complete-guide-to-threads-in-node-js-4fa3898fe74f/
/**
* This code was very much inspired by
* <https://blog.logrocket.com/complete-guide-threads-node-js/>.
*/

/**
* @import {Source, ElmFile} from './types/content';
Expand Down

0 comments on commit fc43074

Please sign in to comment.