106
GitHub - ruanyl/vim-fixmyjs: vim fixmyjs - auto fix your javascript using fixmyj...
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
-
Install
fixmyjs
oreslint
(ortslint
) globally, or have it in projectnode_modules
folder -
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'
-
For convenience it is recommended that you assign a key for this, like so:
noremap <Leader><Leader>f :Fixmyjs<CR>
-
For fixmyjs to enable legacy mode:
let g:fixmyjs_legacy_jshint = 1
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK