Skip to content

Read parent folder .jshintrc #52

@ryanburnett

Description

@ryanburnett

First off, I love your plugin (so nice to use this instead of JSLint) 👍

My folder structure is:

  • Home
    • Sites
      • Project 1
      • Project 2
      • etc.

When I place my .jshintrc file into each project folder it works perfectly. However, when I move it into my Sites folder it stops working, giving me these errors:

  • 'angular' is not defined
  • 'alert' is not defined

This seems to not match the behavior described in the JSHint docs:

In case of .jshintrc, JSHint will start looking for this file in the
same directory as the file that's being linted. If not found, it will
move one level up the directory tree all the way up to the filesystem
root.

I'd like to have just one .jshintrc file in the parent Sites folder that each project folder reads. Is this possible?

Thank you :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions