From 05d918a286dd8365ed39fb715c1bb190dd9602ad Mon Sep 17 00:00:00 2001 From: CD Cabrera Date: Sat, 18 Jul 2020 13:30:51 -0400 Subject: [PATCH] fix(build): npm lint updates (#345) * build, jsdoc annotation updates --- package.json | 2 +- .../c3GraphCard/c3GraphCardHelpers.js | 14 ++++++------ .../graphCard/graphCardChartLegend.js | 4 ++-- yarn.lock | 22 +++++++++---------- 4 files changed, 21 insertions(+), 21 deletions(-) diff --git a/package.json b/package.json index 1d2b4dca2..016e49409 100644 --- a/package.json +++ b/package.json @@ -122,7 +122,7 @@ "eslint-config-prettier": "^6.11.0", "eslint-plugin-import": "^2.22.0", "eslint-plugin-jest": "^23.18.0", - "eslint-plugin-jsdoc": "^27.0.5", + "eslint-plugin-jsdoc": "^29.2.0", "eslint-plugin-json": "^2.1.1", "eslint-plugin-jsx-a11y": "^6.3.1", "eslint-plugin-prettier": "^3.1.4", diff --git a/src/components/c3GraphCard/c3GraphCardHelpers.js b/src/components/c3GraphCard/c3GraphCardHelpers.js index e38d09167..953da8e20 100644 --- a/src/components/c3GraphCard/c3GraphCardHelpers.js +++ b/src/components/c3GraphCard/c3GraphCardHelpers.js @@ -105,13 +105,13 @@ const yAxisTickFormat = ({ tick, locale }) => * @param {string} options.granularity * @param {string} options.productShortLabel * @returns {{configuration: {padding: {top: number, left: number, bottom: number, right: number}, - * data: {types: {}, names: {}, columns: [], x: string, groups: [[]], colors: {}}, - * legend: {show: boolean}, grid: {y: {show: boolean}}, tooltip: {format: {title: (function(*): string), - * value: (function(*, *, *=, *): *)}, order: (function(*, *): number)}, unloadBeforeLoad: boolean, - * spline: {interpolation: {type: string}}, axis: {x: {padding: number, - * tick: {format: (function(*=): string)}, type: string}, y: {padding: {bottom: number}, - * default: number[], min: number, tick: {show: boolean, outer: boolean, - * format: (function(*): string)}}}, point: {show: boolean}}, hiddenDataFacets: []}} + * data: {types: {}, names: {}, columns: Array, x: string, groups: Array, colors: {}}, + * legend: {show: boolean}, grid: {y: {show: boolean}}, tooltip: {format: {title: Function, + * value: Function}, order: Function}, unloadBeforeLoad: boolean, + * spline: {interpolation: {type: string}}, axis: {x: {padding: number, tick: {format: Function}, + * type: string}, y: {padding: {bottom: number}, default: number, min: number, + * tick: {show: boolean, outer: boolean, format: Function}}}, point: {show: boolean}}, + * hiddenDataFacets: Array}} */ const c3Config = ({ data = [], granularity, productShortLabel }) => { const hiddenDataFacets = []; diff --git a/src/components/graphCard/graphCardChartLegend.js b/src/components/graphCard/graphCardChartLegend.js index e56354680..cc39404fe 100644 --- a/src/components/graphCard/graphCardChartLegend.js +++ b/src/components/graphCard/graphCardChartLegend.js @@ -196,8 +196,8 @@ GraphCardChartLegend.propTypes = { /** * Default props. * - * @type {{datum: { dataSets: [] }, product: string, t: Function, legend: {}, chart: {hide: Function, - * toggle: Function, isToggled: Function}}} + * @type {{datum: {dataSets: Array}, product: string, viewId: string, t: Function, legend: {}, + * chart: {hide: Function, toggle: Function, isToggled: Function}}} */ GraphCardChartLegend.defaultProps = { chart: { diff --git a/yarn.lock b/yarn.lock index 57d55dbc8..03ca9d3d7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5399,17 +5399,17 @@ eslint-plugin-jest@^23.18.0: dependencies: "@typescript-eslint/experimental-utils" "^2.5.0" -eslint-plugin-jsdoc@^27.0.5: - version "27.0.5" - resolved "https://registry.yarnpkg.com/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-27.0.5.tgz#065c1ae9fa4c1219d9f960da1bba11c4f358d9e6" - integrity sha512-LU2sclCdHe4ykYlb2Jb7Nk7L6xd8PfwANV1KRgwHV78kCo/D8aeTdinNZb8BpZQEmu4HbrY82SPZIvyYumHVTQ== +eslint-plugin-jsdoc@^29.2.0: + version "29.2.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-29.2.0.tgz#40b1da463847750fe5aafea7182145c4108e0ab7" + integrity sha512-B1a8LWPkkxyxIp4y3pnRQR18j03Wp+V9gDE7IjQG/MvWAzp5gqXM0q71gXRAZMvWUjujAsNg8B9v1csl+/zkvw== dependencies: comment-parser "^0.7.5" debug "^4.1.1" - jsdoctypeparser "^6.1.0" + jsdoctypeparser "^8.0.0" lodash "^4.17.15" regextras "^0.7.1" - semver "^6.3.0" + semver "^7.3.2" spdx-expression-parse "^3.0.1" eslint-plugin-json@^2.1.1: @@ -7877,10 +7877,10 @@ jsbn@~0.1.0: resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" integrity sha1-peZUwuWi3rXyAdls77yoDA7y9RM= -jsdoctypeparser@^6.1.0: - version "6.1.0" - resolved "https://registry.yarnpkg.com/jsdoctypeparser/-/jsdoctypeparser-6.1.0.tgz#acfb936c26300d98f1405cb03e20b06748e512a8" - integrity sha512-UCQBZ3xCUBv/PLfwKAJhp6jmGOSLFNKzrotXGNgbKhWvz27wPsCsVeP7gIcHPElQw2agBmynAitXqhxR58XAmA== +jsdoctypeparser@^8.0.0: + version "8.0.0" + resolved "https://registry.yarnpkg.com/jsdoctypeparser/-/jsdoctypeparser-8.0.0.tgz#a04a944539d3f86e30040c1ece6f6730f865f81a" + integrity sha512-eLCs6s4JqN8TjFJfgdiLHRvogLhOAJz+5RIA2FtoMe6ZDyuvghvppnlIToqAEnVbxRqLMrfnNXpW8FpmR6IMBw== jsdom@^11.5.1: version "11.12.0" @@ -11757,7 +11757,7 @@ semver@7.0.0: resolved "https://registry.yarnpkg.com/semver/-/semver-7.0.0.tgz#5f3ca35761e47e05b206c6daff2cf814f0316b8e" integrity sha512-+GB6zVA9LWh6zovYQLALHwv5rb2PHGlJi3lfiqIHxR0uuwCgefcOJc59v9fv1w8GbStwxuuqqAjI9NMAOOgq1A== -semver@^7.1.1: +semver@^7.1.1, semver@^7.3.2: version "7.3.2" resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.2.tgz#604962b052b81ed0786aae84389ffba70ffd3938" integrity sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ==