2019-04-21 11:42:15 +00:00
|
|
|
call coc#add_extension('coc-tsserver', 'coc-eslint', 'coc-prettier')
|
|
|
|
let g:coc_filetypes += ['javascript', 'javascript.jsx', 'typescript', 'typescript.jsx']
|
|
|
|
call coc#config('eslint', {
|
2019-11-18 19:47:13 +00:00
|
|
|
\ 'filetypes': ['javascript', 'javascriptreact'],
|
2019-04-21 11:42:15 +00:00
|
|
|
\ 'autoFixOnSave': v:true,
|
|
|
|
\ })
|
|
|
|
call coc#config('prettier', {
|
|
|
|
\ 'singleQuote': v:true,
|
|
|
|
\ 'trailingComma': 'all',
|
|
|
|
\ 'jsxBracketSameLine': v:true,
|
|
|
|
\ 'eslintIntegration': v:true,
|
2019-11-09 20:00:23 +00:00
|
|
|
\ 'disableSuccessMessage': v:true
|
2019-04-21 11:42:15 +00:00
|
|
|
\ })
|