Define documentable types in eslintrc instead of inline

Change-Id: I80f0557a6355208d2694f3776cce2ee858573a9c
This commit is contained in:
Ed Sanders 2021-10-17 14:45:16 +01:00 committed by Jdlrobson
parent 041496585b
commit 90b5ff5149
11 changed files with 12 additions and 38 deletions

View File

@ -12,5 +12,17 @@
},
"parserOptions": {
"sourceType": "module"
},
"settings": {
"jsdoc": {
"preferredTypes": {
"Indicator": "Indicator",
"LogoOptions": "LogoOptions",
"LogoTemplateData": "LogoTemplateData",
"MenuDefinition": "MenuDefinition",
"SearchData": "SearchData",
"UserLinksDefinition": "UserLinksDefinition"
}
}
}
}

View File

@ -1,6 +1,3 @@
/**
* @external MenuDefinition
*/
import { placeholder, htmlUserLanguageAttributes,
makeIcon, portletAfter } from './utils';

View File

@ -1,8 +1,3 @@
/**
* @external LogoOptions
* @external LogoTemplateData
*/
import logoTemplate from '!!raw-loader!../includes/templates/Logo.mustache';
import wordmarkSrc from '../.storybook/resolve-imports/assets/wordmark.svg';
import tagelineScr from '../.storybook/resolve-imports/assets/tagline.svg';

View File

@ -1,6 +1,3 @@
/**
* @external MenuDefinition
*/
import menuTemplate from '!!raw-loader!../includes/templates/Menu.mustache';
import { helperMakeMenuData } from './utils';

View File

@ -1,7 +1,3 @@
/**
* @external MenuDefinition
*/
import vectorMenuTemplate from '!!raw-loader!../includes/templates/Menu.mustache';
import { htmlUserLanguageAttributes } from './utils';

View File

@ -1,6 +1,3 @@
/**
* @external MenuDefinition
*/
import mustache from 'mustache';
import { vectorMenuTemplate as portalTemplate } from './MenuDropdown.stories.data';
import '../resources/skins.vector.styles/MenuPortal.less';

View File

@ -1,7 +1,3 @@
/**
* @external MenuDefinition
*/
import { htmlUserLanguageAttributes } from './utils';
/**

View File

@ -1,7 +1,3 @@
/**
* @external SearchData
*/
import searchBoxTemplate from '!!raw-loader!../includes/templates/SearchBox.mustache';
import Button from '!!raw-loader!../includes/templates/Button.mustache';
import { htmlUserLanguageAttributes } from './utils';

View File

@ -1,7 +1,3 @@
/**
* @external MenuDefinition
* @external UserLinksDefinition
*/
import msgs from '../i18n/en.json';
import mustache from 'mustache';
import { menuTemplate } from './Menu.stories.data';

View File

@ -1,7 +1,3 @@
/**
* @external Indicator
*/
import { htmlUserLanguageAttributes } from './utils';
import { placeholder } from './utils';

View File

@ -1,7 +1,3 @@
/**
* @external MenuDefinition
*/
/**
* @param {string} name
* @return {string}