- Linting (ESLint): Fix per latest ash-nazg update

- npm: Update ash-nazg devDep.
master
Brett Zamir 2019-07-03 18:36:45 +08:00
parent e4231aeb10
commit 8a2f6ee6f2
4 changed files with 12 additions and 4 deletions

View File

@ -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;

View File

@ -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

6
package-lock.json generated
View File

@ -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": {

View File

@ -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",