joestelmach / lint.vim Goto Github PK
View Code? Open in Web Editor NEWVim + JSHint + CSSLint + V8
Home Page: http://www.vim.org/scripts/script.php?script_id=2578
License: MIT License
Vim + JSHint + CSSLint + V8
Home Page: http://www.vim.org/scripts/script.php?script_id=2578
License: MIT License
If the dir_path
isn't escaped, the user receives an error telling them that the path does not exist... For instance, if the file is in the directory /home/user/My Files/
the dir_path
will contain the space and an error will appear in the quick fix window complaining about /home/user/My
Hi,
Quick background on my setup: I cloned lint.vim into my .janus plugins folder, went to .vim and ran rake to get latest plugin changes.
I have installed v8 via brew on OS X 10.8.3 and using Janus....anyway...
The plugin runs when I save a buffer but I get this error:
(run.js) ReferenceError: arguments is not defined
var args = arguments;
^
ReferenceError: arguments is not defined
Any ideas on how to debug this? Thanks!
Hi guys,
First off thanks a lot for writing this plugin, it's quite useful and slick. Syntastic plugin has recently added support for csshint but it's quite slow so I prefer using this instead. However I find it quite disturbing and annoying that my cursor is automatically taken to the first warning / error location in the file once the check is done. It would be really nice if I could disable the cursor jump because that really breaks my flow.
The jshint version seems old, is it possible to support es6?
Awesome plugin! Could we add a demo screenshot to help people understand how lint.vim
works?
I get this when trying to save a JS file
|| var args = arguments;
|| ^
|| ReferenceError: arguments is not defined
at ~/.vim/bundle/lint.vim/plugin/../js/run.js|1| 12
%d8 ~/.vim/bundle/lint.vim/js/jshint/jshint.js ~/.vim/bundle/lint.vim/js/jshint/options.js ~/.vim/bundle/lint.vim/js/run.js -- ./abc.js
~/.vim/bundle/lint.vim/js/run.js:1: ReferenceError: arguments is not defined
var args = arguments;
^
ReferenceError: arguments is not defined
at ~/.vim/bundle/lint.vim/js/run.js:1:12
Something that lets me do like nmap <Leader>js :JSLintToggle<cr>
would be SUPER useful
If you're d8 executable is not [...]
Hello!
I would like to have the possibility of loading a custom jsl.conf without having to fork your repo just to update this line:
Can you please advise me on this one? If you don't have any time, I would gladly help.
Best Regards
It seems that this plugin only uses the single jshintrc as defined in the readme. I can't seem to get file specific items to work e.g. /* jshint regexdash: false */
Also the JSHint docs suggest that they will continually walk up the directory structure finding each jshintrc which allows you to have project specific and global jshintrc's. I'm not sure if I have something set up incorrectly or if this plugin simply ignores everything not in the specified jshintrc.
Can anyone confirm this? And if so, is there any way to enable project specific jshintrc files?
Thanks!
If I save a file with no errors it opens the split with:
jsl-test.js|| can't open file: No such file or directory
and then clears my split and renames it to jsl-tests.js
.
I'm using
let jslint_command_options = '-nofilelisting -nocontext -nosummary -nologo -conf ~/.jsl -process'
to have a custom conf file to turn off some JSL stupidity
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.