summaryrefslogtreecommitdiffstats
path: root/compiler
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2017-02-02 21:16:29 +0100
committerAdam Stankiewicz <sheerun@sher.pl>2017-02-02 21:16:29 +0100
commite685e4b431ab017d1aec9f9668fbeeeb6e7113e6 (patch)
tree47137f448d461ebb6852d81c6f553d0843e33764 /compiler
parente404a658b1647fad396a954776eda0bdabf8353c (diff)
downloadvim-polyglot-e685e4b431ab017d1aec9f9668fbeeeb6e7113e6.tar.gz
vim-polyglot-e685e4b431ab017d1aec9f9668fbeeeb6e7113e6.zip
Update
Diffstat (limited to 'compiler')
-rw-r--r--compiler/eslint.vim15
1 files changed, 15 insertions, 0 deletions
diff --git a/compiler/eslint.vim b/compiler/eslint.vim
new file mode 100644
index 00000000..95e39535
--- /dev/null
+++ b/compiler/eslint.vim
@@ -0,0 +1,15 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1
+
+if exists("current_compiler")
+ finish
+endif
+let current_compiler = "eslint"
+
+if exists(":CompilerSet") != 2
+ command! -nargs=* CompilerSet setlocal <args>
+endif
+
+CompilerSet makeprg=eslint\ -f\ compact\ %
+CompilerSet errorformat=%f:\ line\ %l\\,\ col\ %c\\,\ %m
+
+endif