if count(g:plugin_groups, 'javascript')

  " Default to JSHint for now if both exist because ESLint's ES6 support is spotty.
  if executable('jsxhint')
    let g:syntastic_javascript_checkers = ['jsxhint']
  elseif executable('jshint')
    let g:syntastic_javascript_checkers = ['jshint']
  elseif executable('eslint')
    let g:syntastic_javascript_checkers = ['eslint']
  endif

  Bundle 'briancollins/vim-jst'
  Bundle 'elzr/vim-json'
  Bundle 'groenewege/vim-less'
  Bundle 'kchmck/vim-coffee-script'

  " JSX highlighting, indenting, and parsing (for React.js).
  " Depends on: pangloss/vim-javascript
  let g:jsx_ext_required = 0  " Enable JSX support in vanilla JS files.
  Bundle 'mxw/vim-jsx'

  Bundle "othree/javascript-libraries-syntax.vim"
  Bundle 'pangloss/vim-javascript'
endif

if count(g:plugin_groups, 'javascript')

  if executable('eslint')
    let g:syntastic_javascript_checkers = ['eslint']
  elseif executable('jshint')
    let g:syntastic_javascript_checkers = ['jshint']
  endif

  Bundle 'briancollins/vim-jst'
  Bundle 'elzr/vim-json'
  Bundle 'groenewege/vim-less'
  Bundle 'kchmck/vim-coffee-script'

  " JSX highlighting, indenting, and parsing (for React.js).
  " Depends on: pangloss/vim-javascript
  let g:jsx_ext_required = 0  " Enable JSX support in vanilla JS files.
  Bundle 'mxw/vim-jsx'

  Bundle "othree/javascript-libraries-syntax.vim"
  Bundle 'pangloss/vim-javascript'
endif

Use ESLint by default as the Syntastic JS checker, as it now has JSX and robust ES6 support.
Use ESLint by default as the Syntastic JS checker, as it now has JSX and robust ES6 support.

dsimmons/dotfiles-old,dsimmons/dotfiles-old