mirror of
				https://github.com/mitchell/dotfiles.git
				synced 2025-10-31 12:35:25 +00:00 
			
		
		
		
	Refactor ts and js linters/fixers and filetype
This commit is contained in:
		
							parent
							
								
									84fb6c23f8
								
							
						
					
					
						commit
						4283dbae4c
					
				
							
								
								
									
										10
									
								
								.vimrc
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								.vimrc
									
									
									
									
									
								
							|  | @ -92,7 +92,7 @@ let g:lightline = { | ||||||
| let g:ale_linters = { | let g:ale_linters = { | ||||||
| \   'javascript': ['tsserver', 'eslint', 'stylelint'], | \   'javascript': ['tsserver', 'eslint', 'stylelint'], | ||||||
| \   'go': ['golint', 'go vet', 'gopls'], | \   'go': ['golint', 'go vet', 'gopls'], | ||||||
| \   'typescript': ['tslint', 'tsserver', 'typecheck', 'stylelint'], | \   'typescript': ['eslint', 'tsserver', 'typecheck', 'stylelint'], | ||||||
| \   'make': ['checkmake'], | \   'make': ['checkmake'], | ||||||
| \   'proto': ['protoc-gen-lint'], | \   'proto': ['protoc-gen-lint'], | ||||||
| \   'dockerfile': ['hadolint'], | \   'dockerfile': ['hadolint'], | ||||||
|  | @ -109,8 +109,8 @@ let g:ale_linters = { | ||||||
| let g:ale_fixers = { | let g:ale_fixers = { | ||||||
| \   'go': ['goimports', 'remove_trailing_lines', 'trim_whitespace'], | \   'go': ['goimports', 'remove_trailing_lines', 'trim_whitespace'], | ||||||
| \   'graphql': ['prettier'], | \   'graphql': ['prettier'], | ||||||
| \   'javascript': ['prettier'], | \   'javascript': ['eslint'], | ||||||
| \   'typescript': ['prettier'], | \   'typescript': ['eslint'], | ||||||
| \   'css': ['prettier'], | \   'css': ['prettier'], | ||||||
| \   'yaml': ['prettier'], | \   'yaml': ['prettier'], | ||||||
| \   'json': ['prettier'], | \   'json': ['prettier'], | ||||||
|  | @ -136,8 +136,8 @@ let g:vimwiki_list = [{'path': '/keybase/private/mjfs/wiki'}] | ||||||
| 
 | 
 | ||||||
| augroup js_ft | augroup js_ft | ||||||
|   au! |   au! | ||||||
|   autocmd BufNewFile,BufRead *.jsx	set ft=javascript |   autocmd BufNewFile,BufRead *.jsx	set ft=javascript.jsx | ||||||
|   autocmd BufNewFile,BufRead *.tsx	set ft=typescript |   autocmd BufNewFile,BufRead *.tsx	set ft=typescript.tsx | ||||||
| augroup END | augroup END | ||||||
| 
 | 
 | ||||||
| augroup wiki_ft | augroup wiki_ft | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue