- Linting (ESLint): eslint-plugin-jsdoc PR-inspired fixes; temporarily disable `unicorn/prefer-number-properties`

master
Brett Zamir 2020-05-08 17:32:46 +08:00
parent f46f5fc889
commit 05fc69795c
4 changed files with 11 additions and 2 deletions

View File

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

View 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}) {

View File

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

View File

@ -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 = ({