From bbce218a4c8ab7de39781de0d4a9caf0c49fb336 Mon Sep 17 00:00:00 2001 From: tdro Date: Mon, 9 Aug 2021 17:53:02 -0400 Subject: .vimrc: Remove raw JavaScript check function to bottom --- .vimrc | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to '.vimrc') diff --git a/.vimrc b/.vimrc index e58f447..df33907 100644 --- a/.vimrc +++ b/.vimrc @@ -106,11 +106,6 @@ function! PHPFix() :exe 'Notify(''phpcbf ' . expand('%') . ' 2>&1'')' | :e endfunction -" ESLint Fix -function! ESLintFix() - :exe 'Notify(''eslint -c $HOME/.config/eslintrc.yml --fix ' . expand('%') . ' 2>&1'')' | :e -endfunction - " Ansible Check function! AnsibleCheck() :exe 'Notify(''ansible-playbook --syntax-check ' . expand('%') . ' 2>&1'')' | :e @@ -316,7 +311,6 @@ augroup AutoCommands " Linting extension post write commands. autocmd BufWritePost *.php :call PHPFix() - autocmd BufWritePost *.js :call ESLintFix() autocmd BufWritePost *.txt,*.md :only | :term ++rows=10 vale % autocmd BufWritePost *.lit exe 'Notify(''lit ' . expand('%') . ' 2>&1 && printf "Literate OK: ' . expand('%') . '"'')' @@ -324,6 +318,7 @@ augroup AutoCommands autocmd FileType typescript autocmd! BufWritePost exe 'Notify(''deno fmt ' . expand('%') . ' 2>&1'')' | :e autocmd FileType css autocmd! BufWritePost exe 'Notify(''prettier --write --parser css ' . expand('%') . ' 2>&1'')' | :e autocmd FileType ruby autocmd! BufWritePost exe 'Notify(''rufo ' . expand('%') . ' 2>&1 && rubocop ' . expand('%') . ' 2>&1'')' | :e + autocmd FileType javascript autocmd! BufWritePost exe 'Notify(''eslint -c $HOME/.config/eslintrc.yml --fix ' . expand('%') . ' 2>&1'')' | :e autocmd FileType rust autocmd! BufWritePost exe 'Notify(''rustfmt ' . expand('%') . ' 2>&1 && printf "rustfmt OK: ' . expand('%') . '"'')' | :e autocmd FileType json autocmd! BufWritePost exe 'Notify(''jsonlint -i ' . expand('%') . ' 2>&1 && printf "JSON OK: ' . expand('%') . '"'')' | :e autocmd FileType elixir autocmd! BufWritePost exe 'Notify(''mix format ' . expand('%') . ' 2>&1 && printf "Elixir Format OK: ' . expand('%') . '"'')' | :e -- cgit v1.2.3