diff --git a/ale_linters/javascript/eslint.vim b/ale_linters/javascript/eslint.vim index 43e32c9..8f829e2 100644 --- a/ale_linters/javascript/eslint.vim +++ b/ale_linters/javascript/eslint.vim @@ -48,3 +48,10 @@ call ALEAddLinter('javascript', { \ 'command': 'eslint -f unix --stdin', \ 'callback': 'ale_linters#javascript#eslint#Handle', \}) + +call ALEAddLinter('javascript.jsx', { +\ 'name': 'eslint', +\ 'executable': 'eslint', +\ 'command': 'eslint -f unix --stdin', +\ 'callback': 'ale_linters#javascript#eslint#Handle', +\}) diff --git a/ale_linters/javascript/jscs.vim b/ale_linters/javascript/jscs.vim index cfac067..16b35ce 100644 --- a/ale_linters/javascript/jscs.vim +++ b/ale_linters/javascript/jscs.vim @@ -48,3 +48,10 @@ call ALEAddLinter('javascript', { \ 'command': 'jscs -r unix -n -', \ 'callback': 'ale_linters#javascript#jscs#Handle', \}) + +call ALEAddLinter('javascript.jsx', { +\ 'name': 'jscs', +\ 'executable': 'jscs', +\ 'command': 'jscs -r unix -n -', +\ 'callback': 'ale_linters#javascript#jscs#Handle', +\}) diff --git a/ale_linters/javascript/jshint.vim b/ale_linters/javascript/jshint.vim index ff44022..2de755c 100644 --- a/ale_linters/javascript/jshint.vim +++ b/ale_linters/javascript/jshint.vim @@ -56,3 +56,10 @@ call ALEAddLinter('javascript', { \ 'command': 'jshint --reporter unix --config ' . g:ale_jshint_config_loc . ' -', \ 'callback': 'ale_linters#javascript#jshint#Handle', \}) + +call ALEAddLinter('javascript.jsx', { +\ 'name': 'jshint', +\ 'executable': 'jshint', +\ 'command': 'jshint --reporter unix --config ' . g:ale_jshint_config_loc . ' -', +\ 'callback': 'ale_linters#javascript#jshint#Handle', +\})