All of my important config files
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1.1 KiB

  1. let b:ale_fixers = {}
  2. let b:ale_fixers['javascript'] = ['eslint']
  3. let b:ale_fixers['typescript'] = ['eslint']
  4. let b:ale_fixers['json'] = ['eslint']
  5. let b:ale_javascript_prettier_options = '--no-semi --single-quote --tab-width 4'
  6. let b:ale_typescript_prettier_options = '--no-semi --single-quote --tab-width 4'
  7. let b:ale_fixers['vue'] = ['prettier']
  8. let b:ale_vue_prettier_options = '--no-semi --single-quote'
  9. let b:ale_fix_on_save = 1
  10. let b:ale_javascript_prettier_use_local_config = 1
  11. let b:ale_typescript_prettier_use_local_config = 1
  12. " config for local eslint
  13. g:ale_javascript_eslint_use_global = 1
  14. g:ale_javascript_eslint_executable = 'yarn'
  15. g:ale_javascript_eslint_options = 'run eslint'
  16. g:ale_typescript_eslint_use_global = 1
  17. g:ale_typescript_eslint_executable = 'yarn'
  18. g:ale_typescript_eslint_options = 'run eslint'
  19. g:ale_json_eslint_use_global = 1
  20. g:ale_json_eslint_executable = 'yarn'
  21. g:ale_json_eslint_options = 'run eslint'
  22. "autocmd bufwritepost *.js silent !standard --fix %
  23. setlocal wildignore+=node_modules
  24. setlocal tabstop=2
  25. setlocal shiftwidth=2
  26. " Create jsdoc with ,h
  27. nnoremap <leader>h :JsDoc<CR>
  28. nnoremap <F8> Biawait <ESC>A