javascript - Emacs flymake-jslint show all errors -
i want use jslint in emacs, installed package flymake-jslint
, flymake-cursor
. have simple javascript file:
/*global desc, task, jake, fail, complete */ "use strict"; task("example", function() { var x = 5 console.log("asdf"); });
flymake highlights var x = 5
, unused 'x'.
in mini buffer. however, when run jslint
command line, get:
$ jslint jakefile.js jakefile.js #1 expected 1 space between 'function' , '('. task("example", function() { // line 3, pos 25 #2 expected ';' , instead saw 'console'. var x = 5 // line 4, pos 14 #3 unused 'x'. var x = 5 // line 4, pos 9
is there way configure flymake-jslint
show me non syntax error, "expected space"?
i've found answer :)
there config variable called flymake-jslint-args
. when run describe-variable
showed me this:
flymake-jslint-args variable defined in `flymake-jslint.el'. value ("--white" "--undef" "--nomen" "--regexp" "--plusplus" "--bitwise" "--newcap" "--sloppy" "--vars" "--eqeq")
documentation: command-line args jslint executable.
all command line arguments types of errors, ignored while running jslint, i've set variable ()
.
(setq flymake-jslint-args ())
and errors, wanted.
Comments
Post a Comment