summaryrefslogtreecommitdiff
path: root/ale_linters/graphql
diff options
context:
space:
mode:
authorBenjie Gillam <benjie@jemjie.com>2017-11-27 14:22:05 +0000
committerBenjie Gillam <benjie@jemjie.com>2017-11-27 14:41:49 +0000
commite84ee4332f03844219da9c3f65e8ddc10be43ced (patch)
treeae0cb531e818e1d08d4248964d68944ee5e0ce66 /ale_linters/graphql
parentd4ea0423a2c65a626daca89880811416a9d02040 (diff)
downloadale-e84ee4332f03844219da9c3f65e8ddc10be43ced.zip
Add support for linting GraphQL with ESLint
Diffstat (limited to 'ale_linters/graphql')
-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',
+\})