Skip to content

"'util.isArray' was deprecated since v4. Use 'Array.isArray()' instead" is sometimes skipped #65

@nfriedly

Description

@nfriedly

I haven't figured out exactly what causes this yet, but the rule 'util.isArray' was deprecated since v4. Use 'Array.isArray()' instead sometimes doesn't get enforced. See, for example, https://travis-ci.org/watson-developer-cloud/node-sdk/builds/203611751 where the exact same code was linted on node.js v4, v6, and v7 - the rule correctly caught usages of util.isArray() and failed the build on v4, but it incorrectly missed those same usages when running on v6 and v7.

I'm not sure that the test is dependent on the Node.js version though - in retrying locally, I managed to get it to both pass and fail my linting on node v4, so I think that the trigger is something else.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions