diff options
author | w0rp <w0rp@users.noreply.github.com> | 2016-10-03 11:38:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-03 11:38:56 +0200 |
commit | 23383ce547c34482cec1860279f5f4af3c0f8217 (patch) | |
tree | 2e41d70f6e4de42241b5f61ebb308f4a5236bfd4 /ale_linters | |
parent | 40c01d2f14a6b24ce196a31ac0027ee262723fc4 (diff) | |
parent | 9051878466fcc3f01589d3015e6c8f5888984f68 (diff) | |
download | ale-23383ce547c34482cec1860279f5f4af3c0f8217.zip |
Merge pull request #26 from gavocanov/master
Add support for javascript.jsx filetype
Diffstat (limited to 'ale_linters')
-rw-r--r-- | ale_linters/javascript/eslint.vim | 7 | ||||
-rw-r--r-- | ale_linters/javascript/jscs.vim | 7 | ||||
-rw-r--r-- | ale_linters/javascript/jshint.vim | 7 |
3 files changed, 21 insertions, 0 deletions
diff --git a/ale_linters/javascript/eslint.vim b/ale_linters/javascript/eslint.vim index 43e32c9b..8f829e28 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 cfac067a..16b35cea 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 ff440221..2de755c0 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', +\}) |