Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Codekit ignores .jshintrc

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?

like image 305
mikemaccana Avatar asked Jun 28 '26 18:06

mikemaccana


1 Answers

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.

like image 192
Graham P Heath Avatar answered Jul 01 '26 07:07

Graham P Heath



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!