eslint-plugin-graphql
Advanced tools
Comparing version 0.6.0 to 0.6.1
@@ -7,2 +7,6 @@ # Change log | ||
### v0.6.1 | ||
- Remove `babel-polyfill` from runtime dependencies, since it was only being used in test code. [joelgriffith](https://github.com/joelgriffith) in [#44](https://github.com/apollographql/eslint-plugin-graphql/pull/44) | ||
### v0.6.0 | ||
@@ -9,0 +13,0 @@ - Update graphql-js dependency to 0.9.0 [jonbretman](https://github.com/jonbretman) in [#41](https://github.com/apollostack/eslint-plugin-graphql/pull/41) |
@@ -87,9 +87,8 @@ 'use strict'; | ||
var _parseOptions = parseOptions(optionGroup); | ||
var _parseOptions = parseOptions(optionGroup), | ||
schema = _parseOptions.schema, | ||
env = _parseOptions.env, | ||
tagName = _parseOptions.tagName, | ||
validators = _parseOptions.validators; | ||
var schema = _parseOptions.schema; | ||
var env = _parseOptions.env; | ||
var tagName = _parseOptions.tagName; | ||
var validators = _parseOptions.validators; | ||
if (tagNames.has(tagName)) { | ||
@@ -124,7 +123,7 @@ throw new Error('Multiple options for GraphQL tag ' + tagName); | ||
for (var _iterator2 = tagRules[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) { | ||
var _step2$value = _step2.value; | ||
var schema = _step2$value.schema; | ||
var env = _step2$value.env; | ||
var tagName = _step2$value.tagName; | ||
var validators = _step2$value.validators; | ||
var _ref2 = _step2.value; | ||
var schema = _ref2.schema, | ||
env = _ref2.env, | ||
tagName = _ref2.tagName, | ||
validators = _ref2.validators; | ||
@@ -156,9 +155,7 @@ if (templateExpressionMatchesTag(tagName, node)) { | ||
function parseOptions(optionGroup) { | ||
var schemaJson = optionGroup.schemaJson; | ||
var // Schema via JSON object | ||
schemaJsonFilepath = optionGroup.schemaJsonFilepath; | ||
var // Or Schema via absolute filepath | ||
env = optionGroup.env; | ||
var tagNameOption = optionGroup.tagName; | ||
var validatorNamesOption = optionGroup.validators; | ||
var schemaJson = optionGroup.schemaJson, | ||
schemaJsonFilepath = optionGroup.schemaJsonFilepath, | ||
env = optionGroup.env, | ||
tagNameOption = optionGroup.tagName, | ||
validatorNamesOption = optionGroup.validators; | ||
@@ -353,9 +350,9 @@ // Validate and unpack schema | ||
} else { | ||
// Invalid interpolation | ||
context.report({ | ||
node: value, | ||
message: 'Invalid interpolation - not a valid fragment or variable.' | ||
}); | ||
throw new Error('Invalid interpolation'); | ||
} | ||
// Invalid interpolation | ||
context.report({ | ||
node: value, | ||
message: 'Invalid interpolation - not a valid fragment or variable.' | ||
}); | ||
throw new Error('Invalid interpolation'); | ||
} | ||
} | ||
@@ -362,0 +359,0 @@ }); |
{ | ||
"name": "eslint-plugin-graphql", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"description": "GraphQL ESLint plugin.", | ||
@@ -22,2 +22,3 @@ "author": "Sashko Stubailo", | ||
"babel-eslint": "^6.0.4", | ||
"babel-polyfill": "^6.7.4", | ||
"babel-preset-es2015": "^6.6.0", | ||
@@ -37,3 +38,2 @@ "babel-preset-stage-0": "^6.5.0", | ||
"dependencies": { | ||
"babel-polyfill": "^6.7.4", | ||
"graphql": "^0.9.0", | ||
@@ -40,0 +40,0 @@ "lodash": "^4.11.1" |
# eslint-plugin-graphql | ||
[![npm version](https://badge.fury.io/js/eslint-plugin-graphql.svg)](https://badge.fury.io/js/eslint-plugin-graphql) | ||
[![Build Status](https://travis-ci.org/apollostack/eslint-plugin-graphql.svg?branch=master)](https://travis-ci.org/apollostack/eslint-plugin-graphql) | ||
[![Build Status](https://travis-ci.org/apollographql/eslint-plugin-graphql.svg?branch=master)](https://travis-ci.org/apollographql/eslint-plugin-graphql) | ||
[![Get on Slack](https://img.shields.io/badge/slack-join-orange.svg)](http://www.apollostack.com/#slack) | ||
@@ -6,0 +6,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
71946
2
9
10
339
- Removedbabel-polyfill@^6.7.4
- Removedbabel-polyfill@6.26.0(transitive)
- Removedbabel-runtime@6.26.0(transitive)
- Removedcore-js@2.6.12(transitive)
- Removedregenerator-runtime@0.10.50.11.1(transitive)