From 8a2f6ee6f2ce1c809d3e2866cfc4c7d711ca6e05 Mon Sep 17 00:00:00 2001 From: Brett Zamir Date: Wed, 3 Jul 2019 18:36:45 +0800 Subject: [PATCH] - Linting (ESLint): Fix per latest ash-nazg update - npm: Update ash-nazg devDep. --- editor/canvg/canvg.js | 2 ++ editor/typedefs.js | 6 ++++++ package-lock.json | 6 +++--- package.json | 2 +- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/editor/canvg/canvg.js b/editor/canvg/canvg.js index 8e4ce583..d460571c 100644 --- a/editor/canvg/canvg.js +++ b/editor/canvg/canvg.js @@ -90,12 +90,14 @@ export const canvg = function (target, s, opts) { return svg.load(ctx, s); }; +/* eslint-disable jsdoc/check-types */ /** * @param {module:canvg.CanvgOptions} opts * @returns {object} * @todo Flesh out exactly what object is returned here (after updating to latest and reincluding our changes here and those of StackBlur) */ function build (opts) { + /* eslint-enable jsdoc/check-types */ const svg = {opts}; svg.FRAMERATE = 30; diff --git a/editor/typedefs.js b/editor/typedefs.js index 910fa106..ee880f00 100644 --- a/editor/typedefs.js +++ b/editor/typedefs.js @@ -22,6 +22,7 @@ * @returns {ArbitraryCallbackResult} Return dependent on the function */ +/* eslint-disable jsdoc/check-types */ /** * This should only be used for objects known to be potentially arbitrary in form. * For those whose determination has not yet been made, simply use type `object` @@ -31,6 +32,8 @@ /** * @typedef {object} ArbitraryModule */ +/* eslint-enable jsdoc/check-types */ + /** * This should only be used for objects known to be potentially arbitrary in form, * but not of a special type. @@ -38,11 +41,14 @@ * @typedef {ArbitraryObject} PlainObject */ +/* eslint-disable jsdoc/check-types */ /** * This should only be used for arrays known to be potentially arbitrary in form. * For those whose determination has not yet been made, simply use type `Array`. * @typedef {Array} GenericArray */ +/* eslint-enable jsdoc/check-types */ + /** * This should only be used for arrays known to be potentially arbitrary in form and * representing arguments for passing around diff --git a/package-lock.json b/package-lock.json index 84510089..66fb96e3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3538,9 +3538,9 @@ } }, "eslint-config-ash-nazg": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/eslint-config-ash-nazg/-/eslint-config-ash-nazg-8.0.0.tgz", - "integrity": "sha512-up9ExREHf2ag2ps/xXg8OTpwqOnYtPALs0kEKJBp0Ljq5okdJMHiv5RI7tuYNbtkNm1TsgYJp45EmvqpRiQqFQ==", + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/eslint-config-ash-nazg/-/eslint-config-ash-nazg-8.0.1.tgz", + "integrity": "sha512-VH1tEN+7tpgpPUFG74aQCW1orVJ8OMm38sO98IXqRJiOWv6r9Y3lkcqPBtL9InrChQ9ea0NRklMuqgz4ludOQQ==", "dev": true }, "eslint-config-standard": { diff --git a/package.json b/package.json index e418ccb9..84a8637f 100644 --- a/package.json +++ b/package.json @@ -86,7 +86,7 @@ "babel-plugin-transform-object-rest-spread": "^7.0.0-beta.3", "core-js-bundle": "^3.1.4", "eslint": "6.0.1", - "eslint-config-ash-nazg": "8.0.0", + "eslint-config-ash-nazg": "8.0.1", "eslint-config-standard": "12.0.0", "eslint-plugin-array-func": "^3.1.3", "eslint-plugin-compat": "^3.2.0",