fix linting for vim for scss/sass/js

main
Steffen Rademacker 8 years ago
parent 8e8e604cb3
commit 5095c081e8

@ -33,6 +33,8 @@ NeoBundle 'justinmk/vim-sneak'
NeoBundle 'mattn/emmet-vim/'
NeoBundle 'moll/vim-node'
NeoBundle 'scrooloose/syntastic'
NeoBundle 'gcorne/vim-sass-lint'
NeoBundle 'mtscout6/syntastic-local-eslint.vim'
NeoBundle 'sheerun/vim-polyglot'
NeoBundle 'tpope/vim-commentary'
NeoBundle 'tpope/vim-fugitive'

@ -1,13 +1,15 @@
" Syntastic
"======================================================================
" no checking for xhtml/html -- because of fluidtemplate for TYPO3
" and no checking for scss.css because of CSS3 and SASS-Variable
" no checking for xhtml/html
let g:syntastic_sass_checkers = ['sass_lint']
let g:syntastic_scss_checkers = ['sass_lint']
let g:syntastic_css_checkers = ['sass_lint']
let g:syntastic_javascript_checkers = ['eslint']
let g:syntastic_json_checkers = ['jsonlint']
let g:syntastic_auto_jump = 0
let g:syntastic_mode_map = {
\ 'mode': 'active',
\ 'active_filetypes': ['php', 'javascript', 'json'],
\ 'passive_filetypes': ['xhtml', 'html', 'css', 'scss', 'sass']
\ 'active_filetypes': ['php', 'javascript', 'json', 'scss', 'sass', 'css'],
\ 'passive_filetypes': ['xhtml', 'html']
\ }

Loading…
Cancel
Save