Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie committed May 9, 2022
1 parent 763e78b commit 14ee250
Show file tree
Hide file tree
Showing 73 changed files with 327 additions and 238 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ CHANGELOG.md
_LOCAL
.yarn
.pnp.*
docs
4 changes: 4 additions & 0 deletions packages/dataplan-json/tsdoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json",
"extends": ["../../tsdoc.json"]
}
20 changes: 10 additions & 10 deletions packages/dataplan-pg/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ export {
PgSource,
PgSourceBuilder,
PgSourceExtensions,
PgSourceOptions,
PgSourceParameter,
PgSourceRelation,
PgSourceRelationExtensions,
PgSourceRow,
PgSourceRowAttribute,
PgSourceUnique,
PgSourceUniqueExtensions,
PgSourceOptions,
} from "./datasource";
export {
PgClient,
Expand All @@ -62,25 +62,25 @@ export {
PgExecutor,
PgExecutorContext,
PgExecutorContextPlans,
WithPgClient,
PgExecutorMutationOptions,
PgExecutorInput,
PgExecutorMutationOptions,
PgExecutorOptions,
WithPgClient,
} from "./executor";
export { BooleanFilterPlan } from "./filters/booleanFilter";
export { ClassFilterPlan } from "./filters/classFilter";
export { ManyFilterPlan } from "./filters/manyFilter";
export {
PgClassSinglePlan,
PgDecode,
PgEncode,
PgEnumTypeCodec,
PgGroupSpec,
PgOrderSpec,
PgTypeCodec,
PgTypeCodecExtensions,
PgTypedExecutablePlan,
PgDecode,
PgEncode,
PgOrderSpec,
PlanByUniques,
PgGroupSpec,
} from "./interfaces";
export { PgSubscriber } from "./PgSubscriber";
export {
Expand All @@ -104,11 +104,11 @@ export {
pgSelect,
PgSelectArgumentSpec,
pgSelectFromRecords,
PgSelectPlan,
PgSelectMode,
PgSelectLockableParameter,
PgSelectLockCallback,
PgSelectMode,
PgSelectOptions,
PgSelectLockableParameter,
PgSelectPlan,
} from "./plans/pgSelect";
export {
pgSelectSingleFromRecord,
Expand Down
4 changes: 4 additions & 0 deletions packages/dataplan-pg/tsdoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json",
"extends": ["../../tsdoc.json"]
}
72 changes: 36 additions & 36 deletions packages/dataplanner/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ import debugFactory from "debug";
import { crystalPrint, crystalPrintPathIdentity } from "./crystalPrint";
import { exportAsMany } from "./exportAs";
import {
makeCrystalSchema,
CrystalPlans,
EnumPlans,
ScalarPlans,
InterfaceOrUnionPlans,
FieldPlans,
InputObjectPlans,
InterfaceOrUnionPlans,
makeCrystalSchema,
ObjectPlans,
FieldPlans,
ScalarPlans,
} from "./makeCrystalSchema";
import { PrintPlanGraphOptions } from "./mermaid";

Expand All @@ -38,6 +38,7 @@ import {
$$idempotent,
$$verbatim,
ArgumentPlanResolver,
BaseEventMap,
BaseGraphQLArguments,
BaseGraphQLContext,
BaseGraphQLRootValue,
Expand All @@ -46,10 +47,13 @@ import {
CrystalResultStreamList,
CrystalSubscriber,
CrystalValuesList,
EventCallback,
EventMapKey,
ExecutionEventEmitter,
ExecutionEventMap,
ExecutionExtra,
FieldPlanResolver,
GraphileArgumentConfig,
GraphileFieldConfig,
GraphileFieldConfigArgumentMap,
GraphileInputFieldConfig,
Expand All @@ -63,10 +67,6 @@ import {
PromiseOrDirect,
TrackedArguments,
TypedEventEmitter,
BaseEventMap,
EventMapKey,
EventCallback,
GraphileArgumentConfig,
} from "./interfaces";
import {
assertListCapablePlan,
Expand All @@ -86,16 +86,13 @@ import {
import {
__InputObjectPlan,
__InputStaticLeafPlan,
ActualKeyByDesiredKey,
__ItemPlan,
__ListTransformPlan,
ListTransformItemPlanCallback,
ListTransformOptions,
ListTransformReduce,
__TrackedObjectPlan,
__ValuePlan,
access,
AccessPlan,
ActualKeyByDesiredKey,
aether,
connection,
ConnectionCapablePlan,
Expand All @@ -109,10 +106,10 @@ import {
EdgePlan,
filter,
FilterPlanMemo,
GroupByPlanMemo,
first,
FirstPlan,
groupBy,
GroupByPlanMemo,
lambda,
LambdaPlan,
last,
Expand All @@ -122,29 +119,32 @@ import {
ListenPlan,
ListPlan,
listTransform,
ListTransformItemPlanCallback,
ListTransformOptions,
ListTransformReduce,
makeMapper,
map,
MapPlan,
node,
NodePlan,
object,
ObjectPlan,
ObjectPlanMeta,
PageInfoCapablePlan,
partitionByIndex,
reverse,
reverseArray,
ReversePlan,
ObjectPlanMeta,
} from "./plans";
import { __InputListPlan } from "./plans/__inputList";
import { polymorphicWrap, resolveType } from "./polymorphic";
import {
$$crystalWrapped,
crystalResolve,
CrystalWrapDetails,
dataplannerResolver,
dataplannerSubscriber,
isCrystalWrapped,
CrystalWrapDetails,
} from "./resolvers";
import { stripAnsi } from "./stripAnsi";
import { subscribe } from "./subscribe";
Expand All @@ -162,27 +162,18 @@ import {
newObjectTypeBuilder,
objectFieldSpec,
objectSpec,
ObjectTypeFields,
ObjectTypeSpec,
planGroupsOverlap,
ObjectTypeFields,
} from "./utils";

export { isAsyncIterable } from "iterall";
export {
BaseEventMap,
EventMapKey,
EventCallback,
ObjectTypeFields,
__InputListPlan,
__InputObjectPlan,
__InputStaticLeafPlan,
ActualKeyByDesiredKey,
__ItemPlan,
__ListTransformPlan,
GraphileArgumentConfig,
ListTransformItemPlanCallback,
ListTransformOptions,
ListTransformReduce,
__TrackedObjectPlan,
__ValuePlan,
$$bypassGraphQL,
Expand All @@ -194,11 +185,13 @@ export {
$$verbatim,
access,
AccessPlan,
ActualKeyByDesiredKey,
Aether,
aether,
ArgumentPlanResolver,
arraysMatch,
assertListCapablePlan,
BaseEventMap,
BaseGraphQLArguments,
BaseGraphQLContext,
BaseGraphQLRootValue,
Expand All @@ -211,13 +204,15 @@ export {
ConstantPlan,
context,
CrystalError,
CrystalPlans,
crystalPrint,
crystalPrintPathIdentity,
crystalResolve,
CrystalResultsList,
CrystalResultStreamList,
CrystalSubscriber,
CrystalValuesList,
CrystalWrapDetails,
dataplannerEnforce,
DataPlannerExecuteOptions,
dataplannerResolver,
Expand All @@ -228,33 +223,39 @@ export {
each,
EdgeCapablePlan,
EdgePlan,
EnumPlans,
EventCallback,
EventMapKey,
ExecutablePlan,
execute,
ExecutionEventEmitter,
ExecutionEventMap,
ExecutionExtra,
FieldPlanResolver,
FieldPlans,
filter,
FilterPlanMemo,
GroupByPlanMemo,
first,
FirstPlan,
getCurrentParentPathIdentity,
getEnumValueConfig,
GraphileArgumentConfig,
GraphileFieldConfig,
GraphileFieldConfigArgumentMap,
GraphileInputFieldConfig,
GraphileInputFieldConfigMap,
GraphileInputObjectType,
GraphileObjectType,
groupBy,
GroupByPlanMemo,
InputObjectFieldPlanResolver,
inputObjectFieldSpec,
InputObjectPlans,
InputObjectTypeSpec,
InputPlan,
InterfaceOrUnionPlans,
isCrystalError,
isCrystalWrapped,
CrystalWrapDetails,
isDev,
isExecutablePlan,
isListCapablePlan,
Expand All @@ -272,15 +273,10 @@ export {
ListenPlan,
ListPlan,
listTransform,
ListTransformItemPlanCallback,
ListTransformOptions,
ListTransformReduce,
makeCrystalSchema,
CrystalPlans,
EnumPlans,
ScalarPlans,
InterfaceOrUnionPlans,
InputObjectPlans,
ObjectPlans,
FieldPlans,
PrintPlanGraphOptions,
makeMapper,
map,
MapPlan,
Expand All @@ -297,7 +293,10 @@ export {
objectFieldSpec,
ObjectLikePlan,
ObjectPlan,
ObjectPlanMeta,
ObjectPlans,
objectSpec,
ObjectTypeFields,
ObjectTypeSpec,
OutputPlanForType,
PageInfoCapablePlan,
Expand All @@ -308,13 +307,14 @@ export {
PolymorphicData,
PolymorphicPlan,
polymorphicWrap,
PrintPlanGraphOptions,
PromiseOrDirect,
resolveType,
reverse,
reverseArray,
ReversePlan,
ObjectPlanMeta,
ROOT_PATH,
ScalarPlans,
StreamablePlan,
stripAnsi,
subscribe,
Expand Down
2 changes: 1 addition & 1 deletion packages/dataplanner/src/plans/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export {
ListTransformOptions,
ListTransformReduce,
} from "./listTransform";
export { makeMapper, map, MapPlan, ActualKeyByDesiredKey } from "./map";
export { ActualKeyByDesiredKey, makeMapper, map, MapPlan } from "./map";
export { node, NodePlan } from "./node";
export { object, ObjectPlan, ObjectPlanMeta } from "./object";
export { partitionByIndex } from "./partitionByIndex";
Expand Down
4 changes: 4 additions & 0 deletions packages/dataplanner/tsdoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json",
"extends": ["../../tsdoc.json"]
}
4 changes: 4 additions & 0 deletions packages/eslint-plugin-graphile-export/tsdoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json",
"extends": ["../../tsdoc.json"]
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import {
QueryQueryPlugin,
} from "graphile-build";
import { EXPORTABLE, exportSchema } from "graphile-export";
import "graphile-plugin";
import { resolvePresets } from "graphile-plugin";
import { graphql, printSchema } from "graphql";
import { Pool } from "pg";
Expand Down
3 changes: 2 additions & 1 deletion packages/graphile-build-pg/src/examples/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@
* schema against.
*/

import "graphile-plugin";

import type { WithPgClient } from "@dataplan/pg";
import { makeNodePostgresWithPgClient } from "@dataplan/pg/adaptors/node-postgres";
import {
defaultPreset as graphileBuildPreset,
QueryQueryPlugin,
SwallowErrorsPlugin,
} from "graphile-build";
import "graphile-plugin";
import { Pool } from "pg";

import { defaultPreset as graphileBuildPgPreset } from "../index.js";
Expand Down
2 changes: 1 addition & 1 deletion packages/graphile-build-pg/src/plugins/PgAllRowsPlugin.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import "graphile-build";
import "./PgTablesPlugin";
import "graphile-plugin";

import type { PgSource } from "@dataplan/pg";
import { connection } from "dataplanner";
import { EXPORTABLE } from "graphile-export";
import "graphile-plugin";
import type { GraphQLObjectType, GraphQLOutputType } from "graphql";

import { getBehavior } from "../behavior";
Expand Down
Loading

0 comments on commit 14ee250

Please sign in to comment.