vim fixmyjs - auto fix your javascript using fixmyjs/eslint/tslint/jscs
Vim script
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
plugin Do not pass specific rc file Mar 13, 2018
.gitignore
LICENSE
README.md

README.md

vim-fixmyjs

auto fix your javascript using eslint or fixmyjs or jscs or tslint

screenshot

How to install

Vundle

Bundle 'ruanyl/vim-fixmyjs'

vim-plug

Plug 'ruanyl/vim-fixmyjs'

How to use

  1. Install fixmyjs or eslint (or tslint) globally, or have it in project node_modules folder

  2. Config which autofix engine to use:

    let g:fixmyjs_engine = 'eslint' (default)
    or
    let g:fixmyjs_engine = 'fixmyjs'
    or
    let g:fixmyjs_engine = 'jscs'
    or
    let g:fixmyjs_engine = 'tslint'
    
  3. For convenience it is recommended that you assign a key for this, like so:

    noremap <Leader><Leader>f :Fixmyjs<CR>
    
  4. For fixmyjs to enable legacy mode:

    let g:fixmyjs_legacy_jshint = 1