mirror of
				https://github.com/amix/vimrc
				synced 2025-10-31 14:43:35 +08:00 
			
		
		
		
	Removed syntastic and replaced it with ale
Read more here: https://github.com/w0rp/ale
This commit is contained in:
		
							
								
								
									
										8
									
								
								sources_non_forked/ale/ale_linters/sass/sasslint.vim
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								sources_non_forked/ale/ale_linters/sass/sasslint.vim
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,8 @@ | ||||
| " Author: KabbAmine - https://github.com/KabbAmine | ||||
|  | ||||
| call ale#linter#Define('sass', { | ||||
| \   'name': 'sasslint', | ||||
| \   'executable': 'sass-lint', | ||||
| \   'command': 'sass-lint -v -q -f compact %t', | ||||
| \   'callback': 'ale#handlers#css#HandleCSSLintFormat', | ||||
| \}) | ||||
							
								
								
									
										22
									
								
								sources_non_forked/ale/ale_linters/sass/stylelint.vim
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								sources_non_forked/ale/ale_linters/sass/stylelint.vim
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,22 @@ | ||||
| " Author: diartyz <diartyz@gmail.com> | ||||
|  | ||||
| call ale#Set('sass_stylelint_executable', 'stylelint') | ||||
| call ale#Set('sass_stylelint_use_global', 0) | ||||
|  | ||||
| function! ale_linters#sass#stylelint#GetExecutable(buffer) abort | ||||
|     return ale#node#FindExecutable(a:buffer, 'sass_stylelint', [ | ||||
|     \   'node_modules/.bin/stylelint', | ||||
|     \]) | ||||
| endfunction | ||||
|  | ||||
| function! ale_linters#sass#stylelint#GetCommand(buffer) abort | ||||
|     return ale_linters#sass#stylelint#GetExecutable(a:buffer) | ||||
|     \   . ' --stdin-filename %s' | ||||
| endfunction | ||||
|  | ||||
| call ale#linter#Define('sass', { | ||||
| \   'name': 'stylelint', | ||||
| \   'executable_callback': 'ale_linters#sass#stylelint#GetExecutable', | ||||
| \   'command_callback': 'ale_linters#sass#stylelint#GetCommand', | ||||
| \   'callback': 'ale#handlers#css#HandleStyleLintFormat', | ||||
| \}) | ||||
		Reference in New Issue
	
	Block a user
	 Amir Salihefendic
					Amir Salihefendic