Merge "Define documentable types in eslintrc instead of inline"

This commit is contained in:
jenkins-bot 2021-10-18 21:14:26 +00:00 committed by Gerrit Code Review
commit 7b63f7c751
11 changed files with 12 additions and 38 deletions

View file

@ -12,5 +12,17 @@
}, },
"parserOptions": { "parserOptions": {
"sourceType": "module" "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, import { placeholder, htmlUserLanguageAttributes,
makeIcon, portletAfter } from './utils'; makeIcon, portletAfter } from './utils';

View file

@ -1,8 +1,3 @@
/**
* @external LogoOptions
* @external LogoTemplateData
*/
import logoTemplate from '!!raw-loader!../includes/templates/Logo.mustache'; import logoTemplate from '!!raw-loader!../includes/templates/Logo.mustache';
import wordmarkSrc from '../.storybook/resolve-imports/assets/wordmark.svg'; import wordmarkSrc from '../.storybook/resolve-imports/assets/wordmark.svg';
import tagelineScr from '../.storybook/resolve-imports/assets/tagline.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 menuTemplate from '!!raw-loader!../includes/templates/Menu.mustache';
import { helperMakeMenuData } from './utils'; import { helperMakeMenuData } from './utils';

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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