[Glitch] Add eslint-plugin-jsdoc

Port f22b4e556c to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Nick Schonning
2023-04-29 20:29:54 -04:00
committed by Claire
parent 09054f5485
commit 51479f5c28
9 changed files with 35 additions and 38 deletions

View File

@@ -2,7 +2,7 @@
let cachedScrollbarWidth = null;
/**
* @return {number}
* @returns {number}
*/
const getActualScrollbarWidth = () => {
const outer = document.createElement('div');
@@ -20,7 +20,7 @@ const getActualScrollbarWidth = () => {
};
/**
* @return {number}
* @returns {number}
*/
export const getScrollbarWidth = () => {
if (cachedScrollbarWidth !== null) {