Skip to content

"predef" in options throws error Object #<Object> has no method 'forEach' #39

Closed
@desandro

Description

I have a .jshintrc that has "predef": {}. When I grunt jshint, it returns

Warning: Object #<Object> has no method 'forEach' Use --force to continue.

It looks like this is related to how the grunt task updates .predef from an Array to the .globals Object. In my case predef is an Object, not an Array.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions