]> git.r.bdr.sh - rbdr/dotfiles/commitdiff
Add svelte config for ALE
authorBen Beltran <redacted>
Tue, 18 Feb 2020 22:43:28 +0000 (23:43 +0100)
committerBen Beltran <redacted>
Tue, 18 Feb 2020 22:43:28 +0000 (23:43 +0100)
vimrc

diff --git a/vimrc b/vimrc
index affae7699439448568f67798ba573933c82e5300..290bc1133db30a26e28d23c8b8d4f6573f71ca06 100755 (executable)
--- a/vimrc
+++ b/vimrc
@@ -103,7 +103,16 @@ set rtp+=/usr/local/opt/fzf
 noremap <C-P> :FZF <CR>
 
 " ALE config
-let g:ale_linters = {'javascript': ['eslint']}
+let g:ale_linter_aliases = {'svelte': ['css', 'javascript']}
+let g:ale_linters = {
+      \'javascript': ['eslint'],
+      \'svelte': ['stylelint', 'eslint']
+      \}
+let g:ale_fixers = {
+      \'javascript': ['eslint'],
+      \'svelte': ['eslint']
+      \}
+let g:ale_fix_on_save = 1
 
 "
 " A E S T H E T I C S