install submlimelinter
install sublimelinter-jshint
install by using a command line installer ), I used ‘git bash’ “npm install -g jshint”
after that’s installed…
Make sure you have Node.js installed.
Make sure PHP is in your environment path
Then restart computer and you should be good to go….this took 5 hours to get right…!
extra help and good video how to setup sublimelinter
Go to Preferences >> Package settings >> SublimeLinter >> Setting user
and paste the following (Change line 37, Mike is my username, replace for yours)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
{ "user": { "debug": false, "delay": 0.25, "error_color": "D02000", "gutter_theme": "Packages/SublimeLinter/gutter-themes/Default/Default.gutter-theme", "gutter_theme_excludes": [], "lint_mode": "background", "linters": { "csslint": { "@disable": false, "args": [], "errors": "", "excludes": [], "ignore": "", "warnings": "" }, "jshint": { "@disable": false, "args": [], "excludes": [] }, "php": { "@disable": false, "args": [], "excludes": [] } }, "mark_style": "outline", "no_column_highlights_line": false, "passive_warnings": false, "paths": { "linux": [], "osx": [], "windows": [ "C:/Users/Mike/AppData/Roaming/npm" ] }, "python_paths": { "linux": [], "osx": [], "windows": [] }, "rc_search_limit": 3, "shell_timeout": 10, "show_errors_on_save": false, "show_marks_in_minimap": true, "syntax_map": { "css": "html", "html 5": "html", "javascript (babel)": "javascript", "php": "html", "python django": "python" }, "warning_color": "DDB700", "wrap_find": true } } |
OLD sublime text 2 instructions
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
{ "sublimelinter_executable_map": { "javascript":"C:/Program Files/nodejs/node.exe", "css":"C:/Program Files/nodejs/node.exe", "php":"C:/wamp/bin/php/php5.4.3/php.exe" }, "sublimelinter_mark_style": "outline", "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": false, "sub": false } } |