Merge pull request #26 from gavocanov/master

Add support for javascript.jsx filetype
This commit is contained in:
w0rp 2016-10-03 11:38:56 +02:00 committed by GitHub
commit 23383ce547
3 changed files with 21 additions and 0 deletions

View File

@ -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',
\})

View File

@ -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',
\})

View File

@ -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',
\})