Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

Commit

Permalink
adding eslint-plugin-graphql as dependency and new graphql config
Browse files Browse the repository at this point in the history
  • Loading branch information
Pat Sissons committed Sep 19, 2018
1 parent 66f8d8b commit d7ef74c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Changelog

<!-- ## Unreleased -->
## Unreleased

### Added

* Added `shopify/graphql` config using new `eslint-plugin-graphql` (`2.1.1.`) dependency. ([#165](https://github.com/Shopify/eslint-plugin-shopify/pull/165))

## [24.0.0] - 2018-08-30

Expand Down
14 changes: 14 additions & 0 deletions lib/config/graphql.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module.exports = {
parser: 'babel-eslint',

plugins: ['graphql'],

rules: {
"graphql/template-strings": [
'error',
{
env: 'literal'
}
]
}
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
"eslint-plugin-babel": "5.1.0",
"eslint-plugin-chai-expect": "1.1.1",
"eslint-plugin-flowtype": "2.41.0",
"eslint-plugin-graphql": "2.1.1",
"eslint-plugin-import": "2.14.0",
"eslint-plugin-jest": "21.22.0",
"eslint-plugin-jsx-a11y": "6.1.1",
Expand Down

0 comments on commit d7ef74c

Please sign in to comment.