Git Product home page Git Product logo

Comments (7)

DoubleOTheven avatar DoubleOTheven commented on July 23, 2024

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.

gxespino avatar gxespino commented on July 23, 2024

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.

DoubleOTheven avatar DoubleOTheven commented on July 23, 2024

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.

dgreeninger avatar dgreeninger commented on July 23, 2024

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.

DoubleOTheven avatar DoubleOTheven commented on July 23, 2024

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.

edruder avatar edruder commented on July 23, 2024

@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.

edruder avatar edruder commented on July 23, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.