SublimeLinter/SublimeLinter-jscs — pull request #2 by yannickcr (2014-01-05 15:06:58+00:00)
Title: Use the config_file attribute to find .jscs.json

Currently the linter only search in the current directory for a .jscs.json file and fail to lint if we are working on a file in a subdirectory.

For example, here's my project:

```
my-project
├─┬ lib
│ └── script.js
└─ .jscs.json
```

With this configuration SublimeLinter-jscs cannot found the .jscs.json file.

Debug output from SublimeLinter 3 (without the fix):

```
SublimeLinter: jscs: script.js ['C:\\Users\\Yannick\\AppData\\Roaming\\npm\\jscs.cmd', '-r', 'checkstyle']
SublimeLinter: jscs output:
Configuration file D:\Development\my-project\lib\.jscs.json was not found.
```

This fix add the config_file attribute to the linter to automatically define the config file path for jscs.

Debug output from SublimeLinter 3 (with the fix):

```
SublimeLinter: jscs: script.js ['C:\\Users\\Yannick\\AppData\\Roaming\\npm\\jscs.cmd', '-r', 'checkstyle', '-c', 'D:\\Development\\my-project\\.jscs.json']
SublimeLinter: jscs output:

```