Skip to content

Several jscs-jsdoc rules confilcts with jscs rule #89

@sameoldmadness

Description

@sameoldmadness

Given .jscsrc

{
    "plugins": [
        "jscs-jsdoc"
    ],
    "jsDoc": {
        "checkRedundantParams": true,
        "checkRedundantReturns": true,
        "requireParamTypes": true,
        "requireReturnTypes": true
    },
    "disallowNewlineBeforeBlockStatements": true
}

and javascript file

(function () {
    BEM.DOM.decl('yandex-metrika', {
        onSetMod: {
            js: {
                inited: function () {
                    BEM.channel('metrika').on('goal', this._reachGoal.bind(this));
                }
            }
        },

        /**
         * @protected
         * @param {Object} event
         * @param {string} goal
         */
        _reachGoal: function (event, goal) {

        }
    });
}());

jscs gives me an error:

, and *
         * @protected
         * @param {Object} event
         * @param {string} goal
          should have at most 2 line(s) between them at static/desktop.blocks/yandex-metrika/yandex-metrika.js :
     7 |                }
     8 |            }
     9 |        },
------------------^
    10 |
    11 |        /**


1 code style error found.

When I disable jscs rule or every jscs-jsdoc rule, linting successfully passes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions