-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(prettier-plugin-jsdoc): add option to disable the plugin when ex…
…tended
- Loading branch information
Showing
9 changed files
with
193 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/** | ||
* This fixture will validate that there's no formatting when the plugin is disabled by options. | ||
*/ | ||
|
||
module.exports = { | ||
jsdocPluginEnabled: false, | ||
}; | ||
|
||
//# input | ||
|
||
/** | ||
* @throws {Error} If something goes wrong. | ||
* @description Creates a person. | ||
* @param {String} name The name of the person. | ||
* @return {Person} | ||
* @author homer0 | ||
* @param {number} age The person's age. | ||
* @callback CreatePersonFn | ||
*/ | ||
|
||
//# output | ||
|
||
/** | ||
* @throws {Error} If something goes wrong. | ||
* @description Creates a person. | ||
* @param {String} name The name of the person. | ||
* @return {Person} | ||
* @author homer0 | ||
* @param {number} age The person's age. | ||
* @callback CreatePersonFn | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/** | ||
* This fixture will validate that there's no formatting when the plugin is disabled in order to be | ||
* extended. | ||
*/ | ||
|
||
module.exports = { | ||
jsdocPluginExtended: true, | ||
}; | ||
|
||
//# input | ||
|
||
/** | ||
* @throws {Error} If something goes wrong. | ||
* @description Creates a person. | ||
* @param {String} name The name of the person. | ||
* @return {Person} | ||
* @author homer0 | ||
* @param {number} age The person's age. | ||
* @callback CreatePersonFn | ||
*/ | ||
|
||
//# output | ||
|
||
/** | ||
* @throws {Error} If something goes wrong. | ||
* @description Creates a person. | ||
* @param {String} name The name of the person. | ||
* @return {Person} | ||
* @author homer0 | ||
* @param {number} age The person's age. | ||
* @callback CreatePersonFn | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters