106

GitHub - ruanyl/vim-fixmyjs: vim fixmyjs - auto fix your javascript using fixmyj...

 6 years ago
source link: https://github.com/ruanyl/vim-fixmyjs
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

vim-fixmyjs

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

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
    

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK