mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[nvim] enable eslint for typescript
This commit is contained in:
parent
d7e9f0b72e
commit
63357c3394
1 changed files with 3 additions and 2 deletions
|
@ -1,7 +1,8 @@
|
|||
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'] = {
|
||||
\ 'filetypes': ['javascript', 'javascriptreact'],
|
||||
\ 'filetypes': s:filetypes,
|
||||
\ 'autoFixOnSave': v:true,
|
||||
\ }
|
||||
let g:coc_user_config['prettier'] = {
|
||||
|
|
Loading…
Reference in a new issue