summaryrefslogtreecommitdiff
path: root/ale_linters/graphql/eslint.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ale_linters/graphql/eslint.vim')
-rw-r--r--ale_linters/graphql/eslint.vim9
1 files changed, 9 insertions, 0 deletions
diff --git a/ale_linters/graphql/eslint.vim b/ale_linters/graphql/eslint.vim
new file mode 100644
index 00000000..dfcbf9d9
--- /dev/null
+++ b/ale_linters/graphql/eslint.vim
@@ -0,0 +1,9 @@
+" Author: Benjie Gillam <code@benjiegillam.com>
+" Description: eslint for GraphQL files
+
+call ale#linter#Define('graphql', {
+\ 'name': 'eslint',
+\ 'executable_callback': 'ale#handlers#eslint#GetExecutable',
+\ 'command_callback': 'ale#handlers#eslint#GetCommand',
+\ 'callback': 'ale#handlers#eslint#Handle',
+\})