Skip to content

josudoey/vim-eslint-fix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

vim-eslint-fix

Installing using Vim Plugin Manager

  1. Add this line to your .vimrc:
Plug 'josudoey/vim-eslint-fix'
  1. Call PlugInstall() inside vim:
:PlugInstall

Usage

".vimrc
function! PrettyFile()
  if &filetype=="javascript"
    if exists('g:loaded_Beautifier')
      call JsBeautify()
    endif
    if exists('g:loaded_ESLintFix')
      call ESLintFix()
    endif
  end
endfunction

"pretty the file before saving.
autocmd BufWritePre * execute 'call PrettyFile()'

About

A vim plugin that fix the current file by eslint

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published