Comments (7)
I just discovered that this problem goes away when I remove the jshint plugin for Vim. I am stumped on this one. Any ideas?
from maximum-awesome.
I have the same problem with multiple artifacts and just general slow performance in any .js files. I'll remove the jshint plugin and see if there are any improvements.
from maximum-awesome.
Even after removing the jshint
plugin, the artifacts still show up for me, but far less often. The artifacts that are showing up appear on any file type, not just .js
files
from maximum-awesome.
I went to the https://github.com/wookiehangover/jshint.vim plugin page and noticed they mentioned NodeJS must be installed and in your path.
Sure enough, once I setup nodejs, the highlighting and occasional errors went away and I have nice javascript syntax highlighting on my .js files.
from maximum-awesome.
I already have nodejs in my path (sym linked through Homebrew package manager). I ended up switching to eslint. Here is how I did it:
-
Removed
~/.vim/bundles/js_hint
-
Removed js_hint from ~/.vimrc.bundle
-
Set up es_lint in syntastic in ~/.vimrc.local:
let g:syntastic_javascript_checkers = ['eslint']
-
Installed es_lint via npm:
npm install -g eslint npm install -g babel-eslint npm install -g eslint-plugin-react
-
Added a
~/.eslintrc
{
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true
},
"settings": {
"ecmascript": 6,
"jsx": true
},
"plugins": [
"react"
],
"rules": {
"strict": 0,
"quotes": 0,
"no-unused-vars": 0,
"camelcase": 0,
"no-underscore-dangle": 0
}
}
Tada 🎉 . It works...
from maximum-awesome.
@Sonblind I think eslint
is preferable to js_hint
(especially since it seems to solve this problem)! Can you create a PR to switch maximum-awesome
to eslint
?
from maximum-awesome.
@Sonblind On second thought, after chatting with @rudle, it's probably bad to unconditionally introduce a dependency on node into maximum-awesome.
from maximum-awesome.
Related Issues (20)
- how to support c++ 11 syntax error? HOT 1
- Installation not working out of the box HOT 8
- rake breaks on 'brew install brew-cask' HOT 2
- Can't copy from vim in OS X Terminal HOT 1
- rake build failure (because no brew-cask) homebrew 1.0.8 HOT 1
- Error when installing HOT 3
- Underscore in tmux version number breaks Rakefile (yosemite)
- Suggestion: use ripgrep instead of the silver searcher
- Vim shortcuts in README file not working
- Vim editor color scheme is faded when Iterm has material-design color scheme HOT 1
- VIM in iTerm2 vs MacVim HOT 1
- can't install, I might just be stupid though... HOT 1
- Update control code to change cursor shape, 50 to 1337 HOT 1
- Rake Failed at MacVim HOT 4
- Rake failed at Vundle HOT 3
- Error: caskroom/cask was moved. Tap homebrew/cask-cask instead. HOT 2
- pm grant com.maxmpz.equalizer android.permission.SET_VOLUME_KEY_LONG_PRESS_LISTENER HOT 1
- incompatible with tmux 3.3a HOT 3
- '%' not working HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from maximum-awesome.