- Linting (ESLint): eslint-plugin-jsdoc PR-inspired fixes; temporarily disable `unicorn/prefer-number-properties`
parent
f46f5fc889
commit
05fc69795c
|
@ -346,6 +346,7 @@ module.exports = {
|
|||
'unicorn/prefer-query-selector': 'off',
|
||||
'unicorn/prefer-node-append': 'off',
|
||||
'unicorn/no-zero-fractions': 'off',
|
||||
'unicorn/prefer-number-properties': 'off',
|
||||
'jsdoc/require-file-overview': ['error', {
|
||||
tags: {
|
||||
file: {
|
||||
|
|
|
@ -37,7 +37,10 @@ function getCallbackSetter (funcName) {
|
|||
* avoid using JSON parsing (and its limitations) in the case
|
||||
* of same domain control.
|
||||
* @param {module:EmbeddedSVGEdit.EmbeddedSVGEdit} t The `this` value
|
||||
* @param {JSON} data
|
||||
* @param {PlainObject} data
|
||||
* @param {JSON} data.result
|
||||
* @param {string} data.error
|
||||
* @param {Integer} data.id
|
||||
* @returns {void}
|
||||
*/
|
||||
function addCallback (t, {result, error, id: callbackID}) {
|
||||
|
|
|
@ -20,7 +20,9 @@ export default {
|
|||
'message',
|
||||
/**
|
||||
* @param {external:Window} win
|
||||
* @param {module:svgcanvas.SvgCanvas#event:message} data
|
||||
* @param {PlainObject} info
|
||||
* @param {module:svgcanvas.SvgCanvas#event:message} info.data
|
||||
* @param {string} info.origin
|
||||
* @listens module:svgcanvas.SvgCanvas#event:message
|
||||
* @throws {Error} Unexpected event type
|
||||
* @returns {void}
|
||||
|
|
|
@ -1396,6 +1396,9 @@ export const isNullish = (val) => {
|
|||
* Overwrite methods for unit testing.
|
||||
* @function module:utilities.mock
|
||||
* @param {PlainObject} mockMethods
|
||||
* @param {module:utilities.getHref} mockMethods.getHref
|
||||
* @param {module:utilities.setHref} mockMethods.setHref
|
||||
* @param {module:utilities.getRotationAngle} mockMethods.getRotationAngle
|
||||
* @returns {void}
|
||||
*/
|
||||
export const mock = ({
|
||||
|
|
Loading…
Reference in New Issue