Skip to content

Latest commit

 

History

History
49 lines (35 loc) · 943 Bytes

README.md

File metadata and controls

49 lines (35 loc) · 943 Bytes

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