Skip to content

Commit 17b047b

Browse files
authored
chore: fix yarn.lock merge conflict; prevent recurrence (#964)
1 parent e4866ad commit 17b047b

7 files changed

Lines changed: 180 additions & 266 deletions

File tree

.eslintrc.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ module.exports = {
2929
es6: true,
3030
node: true,
3131
jest: true,
32-
mocha: true
32+
mocha: true,
33+
browser: true,
3334
},
3435

3536
'extends': ['prettier'],

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
language: node_js
2-
node_js:
2+
node_js:
33
- stable
44
- lts/*
55
before_install:
66
- npm config set spin false --global
77
install:
8-
- yarn --ignore-scripts # ignore prepublish scripts
8+
- yarn --frozen-lockfile --ignore-scripts # ignore prepublish scripts
99
after_success:
1010
- codecov
1111
cache: yarn

packages/codemirror-graphql/src/utils/jump-addon.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,10 @@ function onKeyDown(cm, event) {
108108
cm.on('mousedown', onMouseDown);
109109
}
110110

111-
const isMac = navigator && navigator.appVersion.indexOf('Mac') !== -1;
111+
const isMac =
112+
typeof navigator !== 'undefined' &&
113+
navigator &&
114+
navigator.appVersion.indexOf('Mac') !== -1;
112115

113116
function isJumpModifier(key) {
114117
return key === (isMac ? 'Meta' : 'Control');

packages/codemirror-graphql/src/variables/lint.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ function validateValue(type, valueAST) {
156156
valueAST.kind !== 'String') ||
157157
(type.name === 'Float' && valueAST.kind !== 'Number') ||
158158
(type.name === 'Int' &&
159+
// eslint-disable-next-line no-bitwise
159160
(valueAST.kind !== 'Number' || (valueAST.value | 0) !== valueAST.value))
160161
) {
161162
return [[valueAST, `Expected value of type "${type}".`]];
@@ -190,6 +191,7 @@ function lintError(editor, node, message) {
190191
}
191192

192193
function isNullish(value: mixed): boolean {
194+
// eslint-disable-next-line no-self-compare
193195
return value === null || value === undefined || value !== value;
194196
}
195197

packages/graphiql/src/utility/mergeAst.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ export function mergeAst(queryAst) {
3838
return elem.kind === Kind.FRAGMENT_DEFINITION;
3939
})
4040
.forEach(frag => {
41-
const copyFragment = Object.assign({}, frag);
41+
const copyFragment = { ...frag };
4242
copyFragment.kind = Kind.INLINE_FRAGMENT;
4343
fragments[frag.name.value] = copyFragment;
4444
});
4545

46-
const copyAst = Object.assign({}, queryAst);
46+
const copyAst = { ...queryAst };
4747
copyAst.definitions = queryAst.definitions
4848
.filter(elem => {
4949
return elem.kind !== Kind.FRAGMENT_DEFINITION;

packages/graphql-language-service-server/src/__tests__/GraphQLCache-test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ describe('GraphQLCache', () => {
8383
expect(wihtoutASTNode(schema.getDirective('customDirective'))).toEqual({
8484
args: [],
8585
description: undefined,
86-
// TODO: failing now that tests are doing deep comparison
87-
// isRepeatable: false,
86+
extensions: undefined,
87+
isRepeatable: false,
8888
locations: ['FIELD'],
8989
name: 'customDirective',
9090
});
@@ -95,8 +95,8 @@ describe('GraphQLCache', () => {
9595
expect(wihtoutASTNode(schema.getDirective('customDirective'))).toEqual({
9696
args: [],
9797
description: undefined,
98-
// TODO: failing now that tests are doing deep comparison
99-
// isRepeatable: false,
98+
extensions: undefined,
99+
isRepeatable: false,
100100
locations: ['FRAGMENT_SPREAD'],
101101
name: 'customDirective',
102102
});

0 commit comments

Comments
 (0)