summaryrefslogtreecommitdiff
path: root/ale_linters/css/fecs.vim
diff options
context:
space:
mode:
authorharttle <yangjvn@126.com>2019-03-26 20:40:51 +0800
committerharttle <yangjvn@126.com>2019-04-11 16:24:58 +0800
commitc820089c4434b621e8b30fbe73bbf9d01ee44f6f (patch)
treedeff31ecaa7e2db9cde4cb791d1c47f4be55bc3c /ale_linters/css/fecs.vim
parent481316561445a4048a96a2c6bd41e9b623d8919f (diff)
downloadale-c820089c4434b621e8b30fbe73bbf9d01ee44f6f.zip
feat: fecs support for js/html/css lint and format
`fecs` is a lint tool for HTML/CSS/JavaScript, see http://fecs.baidu.com for more options.
Diffstat (limited to 'ale_linters/css/fecs.vim')
-rw-r--r--ale_linters/css/fecs.vim12
1 files changed, 12 insertions, 0 deletions
diff --git a/ale_linters/css/fecs.vim b/ale_linters/css/fecs.vim
new file mode 100644
index 00000000..4b54d55a
--- /dev/null
+++ b/ale_linters/css/fecs.vim
@@ -0,0 +1,12 @@
+" Author: harttle <yangjvn@126.com>
+" Description: fecs for CSS files
+
+call ale#Set('css_fecs_executable', 'fecs')
+call ale#Set('css_fecs_use_global', get(g:, 'ale_use_global_executables', 0))
+
+call ale#linter#Define('css', {
+\ 'name': 'fecs',
+\ 'executable': function('ale#handlers#fecs#GetExecutable'),
+\ 'command': function('ale#handlers#fecs#GetCommand'),
+\ 'callback': 'ale#handlers#fecs#Handle',
+\})