Skip to content

Commit 024f9f7

Browse files
authored
Merge pull request #693 from graphql/fix-reserved-properties
Quotes reserved literals when used in properties.
2 parents 47c2ba6 + 080e281 commit 024f9f7

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

.babelrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,6 @@
2121
"transform-es2015-block-scoping",
2222
"transform-es2015-modules-commonjs",
2323
"transform-regenerator",
24+
"transform-es3-property-literals",
2425
]
2526
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
"babel-plugin-transform-es2015-shorthand-properties": "6.22.0",
6060
"babel-plugin-transform-es2015-spread": "6.22.0",
6161
"babel-plugin-transform-es2015-template-literals": "6.22.0",
62+
"babel-plugin-transform-es3-property-literals": "^6.22.0",
6263
"babel-plugin-transform-flow-strip-types": "6.22.0",
6364
"babel-plugin-transform-object-rest-spread": "6.22.0",
6465
"babel-plugin-transform-regenerator": "6.22.0",

yarn.lock

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,12 @@ [email protected]:
446446
dependencies:
447447
babel-runtime "^6.22.0"
448448

449+
babel-plugin-transform-es3-property-literals@^6.22.0:
450+
version "6.22.0"
451+
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es3-property-literals/-/babel-plugin-transform-es3-property-literals-6.22.0.tgz#b2078d5842e22abf40f73e8cde9cd3711abd5758"
452+
dependencies:
453+
babel-runtime "^6.22.0"
454+
449455
450456
version "6.22.0"
451457
resolved "https://registry.yarnpkg.com/babel-plugin-transform-flow-strip-types/-/babel-plugin-transform-flow-strip-types-6.22.0.tgz#84cb672935d43714fdc32bce84568d87441cf7cf"
@@ -923,9 +929,9 @@ [email protected]:
923929
dependencies:
924930
lodash "^4.15.0"
925931

926-
927-
version "3.14.0"
928-
resolved "https://registry.yarnpkg.com/eslint/-/eslint-3.14.0.tgz#2c617e5f782fda5cbee5bc8be7ef5053af8e63a3"
932+
933+
version "3.14.1"
934+
resolved "https://registry.yarnpkg.com/eslint/-/eslint-3.14.1.tgz#8a62175f2255109494747a1b25128d97b8eb3d97"
929935
dependencies:
930936
babel-code-frame "^6.16.0"
931937
chalk "^1.1.3"

0 commit comments

Comments
 (0)