Skip to content

Commit

Permalink
Merge pull request neovim#149 from gmacon/jscs
Browse files Browse the repository at this point in the history
Add JavaScript maker jscs
  • Loading branch information
benekastah committed Jun 19, 2015
2 parents 0fc7fb6 + 3f88292 commit e71112b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ Haskell:

Javascript:
- eslint
- jscs
- jshint
- jsxhint

Expand Down
9 changes: 8 additions & 1 deletion autoload/neomake/makers/ft/javascript.vim
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
" vim: ts=4 sw=4 et

function! neomake#makers#ft#javascript#EnabledMakers()
return ['jshint', 'eslint']
return ['jshint', 'jscs', 'eslint']
endfunction

function! neomake#makers#ft#javascript#jshint()
Expand All @@ -11,6 +11,13 @@ function! neomake#makers#ft#javascript#jshint()
\ }
endfunction

function! neomake#makers#ft#javascript#jscs()
return {
\ 'args': ['--no-color', '--reporter', 'inline'],
\ 'errorformat': '%f: line %l\, col %c\, %m',
\ }
endfunction

function! neomake#makers#ft#javascript#eslint()
return {
\ 'args': ['-f', 'compact'],
Expand Down

0 comments on commit e71112b

Please sign in to comment.