Skip to content

Commit

Permalink
adding prettier-plugin-jsdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Nelyubin authored and Kreeg committed Mar 20, 2022
1 parent 429c063 commit ed6e2e9
Show file tree
Hide file tree
Showing 14 changed files with 398 additions and 65 deletions.
17 changes: 10 additions & 7 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
module.exports = {
trailingComma: 'none',
tabWidth: 4,
semi: true,
singleQuote: true,
bracketSpacing: true,
arrowParens: 'avoid',
printWidth: 120,
trailingComma: 'none',
tabWidth: 4,
semi: true,
singleQuote: true,
bracketSpacing: true,
arrowParens: 'avoid',
printWidth: 120,
plugins: ["prettier-plugin-jsdoc"],
jsdocVerticalAlignment: true,
jsdocSeparateTagGroups: true
};
7 changes: 4 additions & 3 deletions example.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,10 @@ const spriter = new SVGSpriter({
/**
* Add a bunch of SVG files
*
* @param {SVGSpriter} spriter Spriter instance
* @param {Array} files SVG files
* @returns {SVGSpriter} Spriter instance
* @param {SVGSpriter} spriter Spriter instance
* @param {Array} files SVG files
*
* @returns {SVGSpriter} Spriter instance
*/
function addFixtureFiles(spriter, files) {
files.forEach(file => {
Expand Down

0 comments on commit ed6e2e9

Please sign in to comment.