Skip to content

Instantly share code, notes, and snippets.

@cpsubrian
Created January 8, 2013 22:27
Show Gist options
  • Save cpsubrian/4488592 to your computer and use it in GitHub Desktop.
Save cpsubrian/4488592 to your computer and use it in GitHub Desktop.
SublimeLinter User Settings. Edit by going to menu `SublimeText2 -> Preferences -> Package Settings -> SublimeLinter -> Settings - User`
{
"sublimelinter": "load-save",
// jshint: options for linting JavaScript. See http://www.jshint.com/options/ for more info.
// By deault, eval is allowed.
"jshint_options":
{
// To fix column positions for JSHint errors you may want to add `"indent": 1` to your
// **User** "jshint_options". This issue affects users with tabs for indentation.
// This fix was reverted due to a conflict with using the `"white": true` option.
// "indent": 1,
"evil": true,
"regexdash": true,
"browser": true,
"wsh": true,
"trailing": true,
"sub": true,
"jquery": true,
"node": true,
"es5": true,
"laxcomma": true,
"strict": false
},
// 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": false,
"box-sizing": false,
"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": false,
"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"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment