Mirror: The small sibling of the graphql package, slimmed down for client-side libraries.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix lint

+5 -19
+2 -8
alias/language/printLocation.mjs
··· 1 1 import { getLocation } from 'graphql/language/location'; 2 2 3 3 export function printLocation(location) { 4 - return printSourceLocation( 5 - location.source, 6 - getLocation(location.source, location.start) 7 - ); 4 + return printSourceLocation(location.source, getLocation(location.source, location.start)); 8 5 } 9 6 10 7 export function printSourceLocation(source, sourceLocation) { 11 8 const firstLineColumnOffset = source.locationOffset.column - 1; 12 9 const lineNum = sourceLocation.line + source.locationOffset.line - 1; 13 - const columnNum = 14 - sourceLocation.column + sourceLocation.line === 1 15 - ? firstLineColumnOffset 16 - : 0; 10 + const columnNum = sourceLocation.column + sourceLocation.line === 1 ? firstLineColumnOffset : 0; 17 11 return `${source.name}:${lineNum}:${columnNum}`; 18 12 }
+1 -5
alias/language/visitor.mjs
··· 1 - export { 2 - getEnterLeaveForKind, 3 - getVisitFn, 4 - visitInParallel, 5 - } from 'graphql/language/visitor'; 1 + export { getEnterLeaveForKind, getVisitFn, visitInParallel } from 'graphql/language/visitor'; 6 2 7 3 export { BREAK, visit } from '@0no-co/graphql.web';
+1 -2
scripts/babel/transformDevAssert.mjs
··· 30 30 p.parentPath.parentPath.node.body.length === 1 && 31 31 p.parentPath.parentPath.node.body[0] === path.parentPath.node && 32 32 t.isIfStatement(p.parentPath.parentPath.parentPath.node) && 33 - p.parentPath.parentPath.parentPath.node.consequent === 34 - p.parentPath.parentPath.node && 33 + p.parentPath.parentPath.parentPath.node.consequent === p.parentPath.parentPath.node && 35 34 !p.parentPath.parentPath.node.alternate 36 35 ) { 37 36 p = p.parentPath.parentPath.parentPath;
+1 -4
scripts/prepare.js
··· 1 1 const path = require('path'); 2 2 const fs = require('fs'); 3 3 4 - const hookSource = path.resolve( 5 - __dirname, 6 - '../node_modules/husky-v4/sh/husky.sh' 7 - ); 4 + const hookSource = path.resolve(__dirname, '../node_modules/husky-v4/sh/husky.sh'); 8 5 const hook = path.resolve(__dirname, '../.git/hooks/husky.sh'); 9 6 const localHook = path.resolve(__dirname, '../.git/hooks/husky.local.sh'); 10 7 const gitConfig = path.resolve(__dirname, '../.git/config');