JSLintMate not working as advertised

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

JSLintMate not working as advertised

Jack Royal-Gordon
HI!

I’ve installed JSLintMate and am trying to use it on the JS for my Rails project. I’ve tried to turn off complaints about “$” and “document” being undefined, but can’t seem to do so. I’ve tried with a “.jshintrc” resource file, and also with inline configuration. My inline configuration currently looks like:

/* jshint undef: false, unused: false */
// global $, document


I read in the docs that single-line comments work as well as open-close comments, so I tried both formats.

Not only did it not turn off all messages regarding undefined and unused variables, but it also did not turn them off for “$” and “document”. Does anyone have an idea why?

In case it helps, the messages look like:

JSHint found problems:

‘$’ is not defined. line 3
$(document).ready(function() {

‘document’ is not defined. line 3
$(document).ready(function() {




_______________________________________________
textmate mailing list
[hidden email]
http://lists.macromates.com/listinfo/textmate
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: JSLintMate not working as advertised

Carpii UK
I recognise the screenshots from JSLintMate, but I cant remember why I stopped using it.

This is the JSLint bundle I use now


It works very well (and similar feature set), despite not being maintained in a long time




On 3 July 2017 at 20:50, Jack Royal-Gordon <[hidden email]> wrote:
HI!

I’ve installed JSLintMate and am trying to use it on the JS for my Rails project. I’ve tried to turn off complaints about “$” and “document” being undefined, but can’t seem to do so. I’ve tried with a “.jshintrc” resource file, and also with inline configuration. My inline configuration currently looks like:

/* jshint undef: false, unused: false */
// global $, document


I read in the docs that single-line comments work as well as open-close comments, so I tried both formats.

Not only did it not turn off all messages regarding undefined and unused variables, but it also did not turn them off for “$” and “document”. Does anyone have an idea why?

In case it helps, the messages look like:

JSHint found problems:

‘$’ is not defined.                             line 3
$(document).ready(function() {

‘document’ is not defined.              line 3
$(document).ready(function() {




_______________________________________________
textmate mailing list
[hidden email]
http://lists.macromates.com/listinfo/textmate



_______________________________________________
textmate mailing list
[hidden email]
http://lists.macromates.com/listinfo/textmate
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: JSLintMate not working as advertised

Graham Heath
I’ve been working on a fork of bodnaristvan’s bundle for a long time now. As far as I know I’m the only user... If you’d like to try it: 


It adds a few different linters and a config file for these linters as well as doing a better job of looking up config files. If there’s a linter you’d like to see added, please let me know. File bugs though github’s issue tracker and I’ll do my best.

How is it different?
 - More linters (eslint, eslint_d, gjslint, jscs, jshint, scss_lint)
 - Faster because it uses fewer promises and more channels (js-csp), makes for async linting (faster to first result).
 - Config file specific to this linter (.tm_jshinter.js)
 - Close HTML output by clicking an "x" or by pressing escape.
 - Better error handling: No longer fails silently for as much.

Whats missing?
 - Users to use/test it
 - Documentation
 - Rebranding
 - Time to develop it
 - TypeScript support…
 - Good error handling: What happens when you don’t have the plugins or node module installed?

Thanks,

Graham Heath


On July 3, 2017 at 12:59:46 PM, Carpii UK ([hidden email]) wrote:

I recognise the screenshots from JSLintMate, but I cant remember why I stopped using it.

This is the JSLint bundle I use now


It works very well (and similar feature set), despite not being maintained in a long time




On 3 July 2017 at 20:50, Jack Royal-Gordon <[hidden email]> wrote:
HI!

I’ve installed JSLintMate and am trying to use it on the JS for my Rails project. I’ve tried to turn off complaints about “$” and “document” being undefined, but can’t seem to do so. I’ve tried with a “.jshintrc” resource file, and also with inline configuration. My inline configuration currently looks like:

/* jshint undef: false, unused: false */
// global $, document


I read in the docs that single-line comments work as well as open-close comments, so I tried both formats.

Not only did it not turn off all messages regarding undefined and unused variables, but it also did not turn them off for “$” and “document”. Does anyone have an idea why?

In case it helps, the messages look like:

JSHint found problems:

‘$’ is not defined.                             line 3
$(document).ready(function() {

‘document’ is not defined.              line 3
$(document).ready(function() {




_______________________________________________
textmate mailing list
[hidden email]
http://lists.macromates.com/listinfo/textmate


_______________________________________________
textmate mailing list
[hidden email]
http://lists.macromates.com/listinfo/textmate


_______________________________________________
textmate mailing list
[hidden email]
http://lists.macromates.com/listinfo/textmate
Loading...