Add eslint-plugin-jsdoc (#24719)

This commit is contained in:
Nick Schonning
2023-04-29 20:29:54 -04:00
committed by GitHub
parent bfeccf6748
commit f22b4e556c
12 changed files with 100 additions and 54 deletions

View File

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