[nvim] enable eslint for typescript

This commit is contained in:
Dmytro Meleshko 2020-03-25 21:42:39 +02:00
parent d7e9f0b72e
commit 63357c3394

View file

@ -1,7 +1,8 @@
let g:coc_global_extensions += ['coc-tsserver', 'coc-eslint', 'coc-prettier'] let g:coc_global_extensions += ['coc-tsserver', 'coc-eslint', 'coc-prettier']
let g:coc_filetypes += ['javascript', 'javascript.jsx', 'typescript', 'typescript.jsx'] let s:filetypes = ['javascript', 'javascriptreact', 'typescript', 'typescriptreact']
let g:coc_filetypes += s:filetypes
let g:coc_user_config['eslint'] = { let g:coc_user_config['eslint'] = {
\ 'filetypes': ['javascript', 'javascriptreact'], \ 'filetypes': s:filetypes,
\ 'autoFixOnSave': v:true, \ 'autoFixOnSave': v:true,
\ } \ }
let g:coc_user_config['prettier'] = { let g:coc_user_config['prettier'] = {