3

As is fairly common these days, I use AMD modules to organize my JS. So I have a .jshintrc configured in each project accordingly:

{
    "predef": [
        "define",
        "require"
    ]
}

On the command line, running jshint gives clear output. However Codekit seems to be ignoring the jshint when it runs, complaining about 'define' etc.

How can I make Codekit respect a .jshintrc file?

mikemaccana
  • 110,530
  • 99
  • 389
  • 494

1 Answers1

2

Custom Globals is a CSV list that is used for both JSHint and JSLint.

It is located here:

CodeKit.app[Select Your Project]Project Settings / [Gear Icon]Syntax CheckersCustom Globals

Yours would look like this:

CodeKit -> Project Settings -> Syntax Checkers -> Custom Globals

I tested it with "app, angular" and it worked like a charm.

Graham P Heath
  • 7,009
  • 3
  • 31
  • 45