Skip to content

Commit c550dce

Browse files
authored
chore: bump deps (#145)
1 parent 9d05723 commit c550dce

30 files changed

+1523
-1319
lines changed

.eslintrc.cjs

Lines changed: 0 additions & 49 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout
13-
uses: actions/checkout@v2
13+
uses: actions/checkout@v4
1414
- name: Setup Node
15-
uses: actions/setup-node@v3
15+
uses: actions/setup-node@v4
1616
with:
1717
node-version: 'current'
1818
- name: Install dependencies

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout
14-
uses: actions/checkout@v2
14+
uses: actions/checkout@v4
1515
- name: Setup Node
16-
uses: actions/setup-node@v3
16+
uses: actions/setup-node@v4
1717
with:
1818
node-version: 'current'
1919
registry-url: https://registry.npmjs.org

eslint.config.mjs

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// @ts-check
2+
3+
import eslint from "@eslint/js";
4+
import tseslint from "typescript-eslint";
5+
import eslintConfigPrettier from "eslint-config-prettier";
6+
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
7+
8+
export default tseslint.config(
9+
eslint.configs.recommended,
10+
tseslint.configs.recommended,
11+
eslintConfigPrettier,
12+
eslintPluginPrettierRecommended,
13+
{
14+
rules: {
15+
"@typescript-eslint/no-unsafe-declaration-merging": "off",
16+
"@typescript-eslint/no-explicit-any": "off",
17+
"@typescript-eslint/no-empty-object-type": [
18+
"error",
19+
{
20+
allowInterfaces: "with-single-extends",
21+
},
22+
],
23+
},
24+
},
25+
);

package.json

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,38 +16,41 @@
1616
"author": "Kévin Dunglas",
1717
"license": "MIT",
1818
"devDependencies": {
19+
"@eslint/compat": "^1.2.5",
20+
"@eslint/eslintrc": "^3.2.0",
21+
"@eslint/js": "^9.19.0",
1922
"@types/inflection": "^1.13.0",
2023
"@types/jest": "^29.0.0",
2124
"@types/jsonld": "^1.5.0",
2225
"@types/lodash.get": "^4.4.0",
23-
"@types/node": "^18.0.0",
24-
"@typescript-eslint/eslint-plugin": "^5.0.0",
25-
"@typescript-eslint/parser": "^5.0.0",
26-
"eslint": "^8.0.0",
27-
"eslint-config-prettier": "^8.0.0",
26+
"@types/node": "^22.0.0",
27+
"eslint": "^9.0.0",
28+
"eslint-config-prettier": "^10.0.0",
2829
"eslint-import-resolver-typescript": "^3.5.1",
2930
"eslint-plugin-import": "^2.26.0",
30-
"eslint-plugin-prettier": "^4.0.0",
31+
"eslint-plugin-prettier": "^5.0.0",
3132
"eslint-watch": "^8.0.0",
33+
"globals": "^15.14.0",
3234
"jest": "^29.0.0",
3335
"jest-fetch-mock": "^3.0.0",
3436
"openapi-types": "^12.0.0",
35-
"prettier": "^2.2.0",
37+
"prettier": "^3.0.0",
3638
"ts-jest": "^29.0.0",
3739
"ts-node": "^10.9.0",
38-
"typescript": "^4.1.0"
40+
"typescript": "^5.7.0",
41+
"typescript-eslint": "^8.22.0"
3942
},
4043
"dependencies": {
4144
"graphql": "^16.0.0",
42-
"inflection": "^1.13.0",
45+
"inflection": "^3.0.0",
4346
"jsonld": "^8.3.2",
44-
"jsonref": "^8.0.0",
47+
"jsonref": "^9.0.0",
4548
"lodash.get": "^4.4.0",
4649
"tslib": "^2.0.0"
4750
},
4851
"scripts": {
4952
"test": "NODE_OPTIONS=--experimental-vm-modules jest",
50-
"lint": "esw --color src --ext .ts",
53+
"lint": "eslint src",
5154
"fix": "yarn lint --fix",
5255
"eslint-check": "eslint-config-prettier src/index.ts",
5356
"build": "rm -rf lib/* && tsc",

src/Api.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ export interface ApiOptions
1010

1111
export interface Api extends ApiOptions {}
1212
export class Api {
13-
constructor(public entrypoint: string, options: ApiOptions = {}) {
13+
constructor(
14+
public entrypoint: string,
15+
options: ApiOptions = {},
16+
) {
1417
assignSealed(this, options);
1518
}
1619
}

src/Field.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,10 @@ export interface FieldOptions
4848

4949
export interface Field extends FieldOptions {}
5050
export class Field {
51-
constructor(public name: string, options: FieldOptions = {}) {
51+
constructor(
52+
public name: string,
53+
options: FieldOptions = {},
54+
) {
5255
assignSealed(this, options);
5356
}
5457
}

src/Operation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export class Operation {
1717
constructor(
1818
public name: string,
1919
public type: OperationType,
20-
options: OperationOptions = {}
20+
options: OperationOptions = {},
2121
) {
2222
assignSealed(this, options);
2323
}

src/Parameter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ export class Parameter {
44
public range: string | null,
55
public required: boolean,
66
public description: string,
7-
public deprecated?: boolean
7+
public deprecated?: boolean,
88
) {}
99
}

src/Resource.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export class Resource {
2323
constructor(
2424
public name: string,
2525
public url: string,
26-
options: ResourceOptions = {}
26+
options: ResourceOptions = {},
2727
) {
2828
assignSealed(this, options);
2929
}

0 commit comments

Comments
 (0)