Created
November 26, 2012 11:02
-
-
Save seafoox/4147653 to your computer and use it in GitHub Desktop.
SublimeLinter Configuration
This file contains 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
{ | |
// If true, when the file is saved any errors will appear in a popup list | |
"sublimelinter_popup_errors_on_save": false, | |
// Javascript linter: "gjslint" to use the closure javascript linter (if available), | |
// or either "jshint" or "jslint" to use a built in linter. | |
"javascript_linter": "jshint", | |
// jshint: options for linting JavaScript. See http://www.jshint.com/options/ for more info. | |
// By deault, eval is allowed. | |
"jshint_options" : | |
{ | |
"camelcase": true, | |
"boss": true, | |
"browser": true, | |
"curly": false, | |
"devel": true, | |
"eqeqeq": false, | |
"eqnull": true, | |
"expr": true, | |
"evil": true, | |
"immed": false, | |
"laxcomma": true, | |
"laxbreak": true, | |
"newcap": false, | |
"noarg": true, | |
"smarttabs": true, | |
"sub": true, | |
"undef": true, | |
"predef": [ | |
"$", | |
"jQuery", | |
"muve", | |
"aiv", | |
"console", | |
"Class", | |
"_", | |
"__dirname", | |
"require", | |
"jasmine", | |
"describe", | |
"xdescribe", | |
"it", | |
"xit", | |
"beforeEach", | |
"afterEach", | |
"expect", | |
"spyOn", | |
"runs", | |
"waits", | |
"waitsFor", | |
"Benchmark", | |
"Raphael", | |
"Backbone", | |
"Modernizr", | |
"History", | |
"RED", | |
"red", | |
"FB", | |
"Scroller", | |
"Ext", | |
"_gaq" | |
] | |
}, | |
// CSSLint options: | |
// Each rule can have three values: error|warning|true|false | |
// false => rule is disabled. | |
// true => alias to 'error' | |
// All rules are enabled by default. | |
// Currently the only difference between warnings and errors is in the prefix of the message in the Sublime status bar. | |
"csslint_options": | |
{ | |
"adjoining-classes": "warning", | |
"box-model": true, | |
"box-sizing": "warning", | |
"compatible-vendor-prefixes": "warning", | |
"display-property-grouping": true, | |
"duplicate-background-images": "warning", | |
"duplicate-properties": true, | |
"empty-rules": true, | |
"errors": true, | |
"fallback-colors": "warning", | |
"floats": "warning", | |
"font-faces": "warning", | |
"font-sizes": "warning", | |
"gradients": "warning", | |
"ids": "warning", | |
"import": "warning", | |
"important": "warning", | |
"known-properties": true, | |
"outline-none": "warning", | |
"overqualified-elements": "warning", | |
"qualified-headings": "warning", | |
"regex-selectors": "warning", | |
"rules-count": "warning", | |
"shorthand": "warning", | |
"star-property-hack": "warning", | |
"text-indent": "warning", | |
"underscore-property-hack": "warning", | |
"unique-headings": "warning", | |
"universal-selector": "warning", | |
"vendor-prefix": true, | |
"zero-units": "warning", | |
"adjoining-classes": false, | |
"ids": false | |
}, | |
// The set of annotation phrases to highlight | |
"annotations": ["TODO", "README", "FIXME"] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment