Home Download Buy Blog Forum Support

SublimeLinter

Re: SublimeLinter

Postby ManFromEarth on Sat Mar 31, 2012 12:43 pm

lukasbob wrote:@ManFromEarth: Open the SublimeLinter User settings file (Preferences > Package Settings > SublimeLinter > Settings - User) and set the "smarttabs" jshint setting to true.

If you have nothing in there to start with, that looks like this:

Code: Select all
{
    "jshint_options":
    {
        "smarttabs": true
    }
}


This and other jshint options are documented on http://www.jshint.com/options/.

The README file (Preferences > Package Settings > SublimeLinter > README) is worth a look.

Thanks for a great plugin!



i tryed that longtime ago ;\ i was writing that to base sublimelinter.sublime-settings and setting smarttabs to false(i want to turn it off), but it doesnt work ;\ tryed ur way with user settings, still doesnt work

"evil": true,
"regexdash": true,
"browser": true,
"wsh": true,
"trailing": false,
"sub": true

we can change these rules, but cant add new?
ManFromEarth
 
Posts: 5
Joined: Sun Mar 18, 2012 1:17 pm

Re: SublimeLinter

Postby aparajita on Tue Apr 03, 2012 5:52 am

NEVER edit the default SublimeLinter.sublime-settings, that gets overwritten when SublimeLinter is updated.

Settings in SublimeLinter are not merged on a per-item basis. If you override or add anything in a setting, you have to copy all of the settings to your user settings. So you can't just add or change one jshint option, you have to include ALL of them. Hope this makes it clear.

- Aparajita
aparajita
 
Posts: 177
Joined: Sun Jul 24, 2011 10:42 pm

Re: SublimeLinter

Postby aparajita on Tue Apr 03, 2012 5:55 am

lukasbob wrote:The README file (Preferences > Package Settings > SublimeLinter > README) is worth a look.


Actually, I would consider it obligatory.

- Aparajita
SublimeLinter maintainer
aparajita
 
Posts: 177
Joined: Sun Jul 24, 2011 10:42 pm

Re: SublimeLinter

Postby 3thereal on Tue Apr 03, 2012 7:35 pm

Thanks Aparajita, got it working now, I guess I was updating the default and not the user linter settings.
3thereal
 
Posts: 4
Joined: Mon Mar 19, 2012 7:06 pm

Re: SublimeLinter

Postby ManFromEarth on Mon Apr 09, 2012 5:29 am

aparajita wrote:NEVER edit the default SublimeLinter.sublime-settings, that gets overwritten when SublimeLinter is updated.

Settings in SublimeLinter are not merged on a per-item basis. If you override or add anything in a setting, you have to copy all of the settings to your user settings. So you can't just add or change one jshint option, you have to include ALL of them. Hope this makes it clear.

- Aparajita

thx for info, but smarttabs option doesnt exist here...when i add it, it doesnt work, i want to turn off "mixed spaces and tabs" warnings in jshint
ManFromEarth
 
Posts: 5
Joined: Sun Mar 18, 2012 1:17 pm

Re: SublimeLinter

Postby cutcopypaste on Tue Apr 24, 2012 5:02 pm

I am very confused.. I have installed Sublime Linter and followed all the setup instructions I could find, but I see absolutely no indication of it working at all. If I invoke the command palette see the option to 'export annotations' which takes all my comments and puts them in a new file.. but I have seen no evidence whatsoever of any error detection.

I installed node.js, but I keep getting the message 'SublimeLinter: javascript disabled (One of the following Javascript engines must be installed: node.js, JavaScriptCore)' Does it have to be running? (I'm getting the same error for CSS).

For PHP I'm getting the error 'SublimeLinter: php disabled ("php" cannot be found)'. I don't know how I'm supposed to go about installing PHP. I'm working on a local apache server, I don't have php installed on my machine and wouldn't know how to get it.. :/

I am working in PHP, JS, HTML and CSS, which I was under the impression were built-in. I'm not amazing with this kind of thing, so I'm not sure what 'getting PHP' or 'having Node' entails exactly. (on a 64-bit windows machine)
cutcopypaste
 
Posts: 41
Joined: Tue Feb 21, 2012 9:43 pm

Re: SublimeLinter

Postby aurelienb on Wed Aug 08, 2012 9:28 am

Hello,

this plugin is really really nice but I have some trouble to edit settings about javascript.
Firstly, I dont know how to discover what js linter engine is used by default... Is there a javascript command about it?
BTW I try "jshint_options.eqeqeq": false, with [jshint] replaced by other engine, or [eqeqeq] with "eqeq" and another option ("eqnull") but I never success to hide warning about comparison operator (== in place of ===).
What I do wrong?

Edit:
- it looks like (following default data) that my linter is jshint.
- I also override some CSS options and options for both css and js are not taken. Other option in my sublimelinter settings (= in user) are correctly working (ex: "sublimelinter_notes": true //highlight annotations like TODO/README
aurelienb
 
Posts: 1
Joined: Wed Aug 08, 2012 9:25 am

Re: SublimeLinter

Postby Pentiado on Sun Feb 24, 2013 2:17 pm

I have terrible problems with SublimeLinter ST3 on Ubuntu.
After opening ST3 everything is loading nicely and I see a messages about it in ST console

but in:
-HTML I have and error SublimeLinter: html disabled (Type str doesn't support the buffer API)
-CSS/JS SublimeLinter: css/js enabled (using node.js) but ST3 is crashed and I have to Force Quit
-COFFEE SublimeLinter: coffeescript enabled (using "coffee" for executable ) ST3 also crashed

I've installed tidy for html5 and it is working. The newest node.js I have also installed.
Pentiado
 
Posts: 1
Joined: Fri Feb 01, 2013 10:55 pm

Re: SublimeLinter

Postby missedone on Mon Feb 25, 2013 12:12 pm

Hi,

i just read the good Ruby coding style guide:
https://github.com/bbatsov/ruby-style-guide

and the author also working on a ruby gem "rubocop" to check the code style of your ruby code:
https://github.com/bbatsov/rubocop

i looks good, so i'm wondering is it possible, you know, make sublimielinter to support this linter?

thanks
missedone
 
Posts: 3
Joined: Fri Oct 12, 2012 1:28 am

Previous

Return to Plugin Announcements

Who is online

Users browsing this forum: Google [Bot] and 3 guests