diff options
author | Benjie Gillam <benjie@jemjie.com> | 2017-11-27 14:22:05 +0000 |
---|---|---|
committer | Benjie Gillam <benjie@jemjie.com> | 2017-11-27 14:41:49 +0000 |
commit | e84ee4332f03844219da9c3f65e8ddc10be43ced (patch) | |
tree | ae0cb531e818e1d08d4248964d68944ee5e0ce66 /ale_linters/graphql/eslint.vim | |
parent | d4ea0423a2c65a626daca89880811416a9d02040 (diff) | |
download | ale-e84ee4332f03844219da9c3f65e8ddc10be43ced.zip |
Add support for linting GraphQL with ESLint
Diffstat (limited to 'ale_linters/graphql/eslint.vim')
-rw-r--r-- | ale_linters/graphql/eslint.vim | 9 |
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', +\}) |