Created
November 15, 2012 14:57
-
-
Save simenbrekken/4079033 to your computer and use it in GitHub Desktop.
Sublime linter settings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
| { | |
| "jshint_options": | |
| { | |
| "browser": true, // This option defines globals exposed by modern browsers: all the way from good ol' document and navigator to the HTML5 FileReader and other new developments in the browser world. | |
| "devel": true, // This option defines globals that are usually used for logging poor-man's debugging: console, alert, etc. It is usually a good idea to not ship them in production because, for example, console.log breaks in legacy versions of Internet Explorer. | |
| "es5": true, // This option tells JSHint that your code uses ECMAScript 5 specific features such as getters and setters. Note that not all browsers implement these features. | |
| "expr": true, // This option suppresses warnings about the use of expressions where normally you would expect to see assignments or function calls. Most of the time, such code is a typo. However, it is not forbidden by the spec and that's why this warning is optional. | |
| "jquery": true, // This option defines globals exposed by the jQuery JavaScript library. | |
| "laxbreak": true, // This option suppresses most of the warnings about possibly unsafe line breakings in your code. It doesn't suppress warnings about comma-first coding style. | |
| "laxcomma": true, // his option suppresses warnings about comma-first coding style: | |
| "loopfunc": true, // This option suppresses warnings about functions inside of loops. | |
| "quotmark": "single", // This option enforces the consistency of quotation marks used throughout your code. It accepts three values: true if you don't want to enforce one particular style but want some consistency, "single" if you want to allow only single quotes and "double" if you want to allow only double quotes. | |
| "sub": true // This option suppresses warnings about using [] notation when it can be expressed in dot notation: person['name'] vs. person.name. | |
| }, | |
| "sublimelinter_notes": true | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment