From 0e0f3f827b8731bbf9b4c78df3c430db364ccae1 Mon Sep 17 00:00:00 2001 From: Simon Garner Date: Sat, 4 Sep 2021 08:17:04 +1200 Subject: [PATCH] Reformat --- README.md | 1 + barrelsby.json | 4 +--- renovate.json | 16 ++++------------ src/cursor/OffsetCursorPaginator.ts | 6 +----- tsconfig.json | 16 ++++------------ 5 files changed, 11 insertions(+), 32 deletions(-) diff --git a/README.md b/README.md index 89652aaa..2b5f8057 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ # graphql-pagination + GraphQL Pagination diff --git a/barrelsby.json b/barrelsby.json index 663f4cb9..17411dcc 100644 --- a/barrelsby.json +++ b/barrelsby.json @@ -1,8 +1,6 @@ { "directory": "src/", - "exclude": [ - "\\.(spec|e2e-spec)\\.ts$" - ], + "exclude": ["\\.(spec|e2e-spec)\\.ts$"], "location": "all", "structure": "flat", "singleQuotes": true, diff --git a/renovate.json b/renovate.json index 59678214..6f46dde7 100644 --- a/renovate.json +++ b/renovate.json @@ -12,23 +12,15 @@ "prCreation": "not-pending", "stabilityDays": 3, "rebaseWhen": "conflicted", - "labels": [ - "dependencies" - ], - "reviewers": [ - "sgarner" - ], + "labels": ["dependencies"], + "reviewers": ["sgarner"], "packageRules": [ { - "packagePatterns": [ - "eslint" - ], + "packagePatterns": ["eslint"], "groupName": "eslint" }, { - "packagePatterns": [ - "jest" - ], + "packagePatterns": ["jest"], "groupName": "jest" } ] diff --git a/src/cursor/OffsetCursorPaginator.ts b/src/cursor/OffsetCursorPaginator.ts index ffae5062..3a52d817 100644 --- a/src/cursor/OffsetCursorPaginator.ts +++ b/src/cursor/OffsetCursorPaginator.ts @@ -13,11 +13,7 @@ export class OffsetCursor extends Cursor { // validate the cursor parameters match the schema we expect, this also converts data types const schema = Joi.object({ - offset: Joi.number() - .integer() - .min(0) - .empty('') - .required(), + offset: Joi.number().integer().min(0).empty('').required(), }).unknown(false); const { error, value: validatedParameters } = schema.validate(parameters); diff --git a/tsconfig.json b/tsconfig.json index 1d2509d9..4eaf0dde 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -16,17 +16,9 @@ "outDir": "./dist", "rootDir": "./src", "baseUrl": "./", - "paths": { - }, - "typeRoots": [ - "./node_modules/@types", - "./@types" - ] + "paths": {}, + "typeRoots": ["./node_modules/@types", "./@types"] }, - "include":[ - "src/**/*" - ], - "exclude": [ - "node_modules" - ] + "include": ["src/**/*"], + "exclude": ["node_modules"] }