Skip to content

Commit

Permalink
Reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
sgarner committed Sep 3, 2021
1 parent b6498f1 commit 0e0f3f8
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 32 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# graphql-pagination

GraphQL Pagination
4 changes: 1 addition & 3 deletions barrelsby.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{
"directory": "src/",
"exclude": [
"\\.(spec|e2e-spec)\\.ts$"
],
"exclude": ["\\.(spec|e2e-spec)\\.ts$"],
"location": "all",
"structure": "flat",
"singleQuotes": true,
Expand Down
16 changes: 4 additions & 12 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
]
Expand Down
6 changes: 1 addition & 5 deletions src/cursor/OffsetCursorPaginator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
16 changes: 4 additions & 12 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}

0 comments on commit 0e0f3f8

Please sign in to comment.