Skip to content

Commit 19926cc

Browse files
committed
chore: lint fixes
1 parent 51573cb commit 19926cc

11 files changed

Lines changed: 25 additions & 25 deletions

File tree

package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
{
22
"name": "vite-plugin-graphql-codegen",
3+
"type": "module",
34
"version": "3.7.0",
45
"description": "Zero-config vite plugin that uses the vite file watcher to run graphql codegen programmatically without needing to start a separate watcher",
5-
"type": "module",
6+
"author": "Daniel Waltz",
7+
"license": "MIT",
8+
"repository": {
9+
"type": "git",
10+
"url": "git+https://github.com/danielwaltz/vite-plugin-graphql-codegen.git"
11+
},
612
"keywords": [
713
"graphql",
814
"codegen",
@@ -12,24 +18,18 @@
1218
"vite-plugin",
1319
"vite-plugin-graphql-codegen"
1420
],
15-
"license": "MIT",
16-
"repository": {
17-
"type": "git",
18-
"url": "git+https://github.com/danielwaltz/vite-plugin-graphql-codegen.git"
19-
},
20-
"author": "Daniel Waltz",
21-
"files": [
22-
"dist"
23-
],
24-
"main": "./dist/index.cjs",
25-
"module": "./dist/index.mjs",
26-
"types": "./dist/index.d.ts",
2721
"exports": {
2822
".": {
2923
"require": "./dist/index.cjs",
3024
"import": "./dist/index.mjs"
3125
}
3226
},
27+
"main": "./dist/index.cjs",
28+
"module": "./dist/index.mjs",
29+
"types": "./dist/index.d.ts",
30+
"files": [
31+
"dist"
32+
],
3333
"publishConfig": {
3434
"access": "public",
3535
"provenance": true,

src/utils/matchCache.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { normalizePath } from "vite";
2-
import type { Options } from "..";
32
import { getDocumentPaths, getSchemaPaths } from "./configPaths";
3+
import type { Options } from "..";
44
import type { CodegenContext } from "@graphql-codegen/cli";
55

66
export function createMatchCache(

test/codegen-config-file/codegen-config-file.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ describe("codegen-config-file", () => {
3434

3535
it("generates", async () => {
3636
await new Promise((resolve) => setTimeout(resolve, 200));
37-
const file = await fs.readFile(OUTPUT_FILE, "utf-8");
37+
const file = await fs.readFile(OUTPUT_FILE, "utf8");
3838

3939
expect(file).toMatchSnapshot();
4040
});

test/graphql-config-file/graphql-config-file.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ describe("graphql-config-file", () => {
3434

3535
it("generates", async () => {
3636
await new Promise((resolve) => setTimeout(resolve, 200));
37-
const file = await fs.readFile(OUTPUT_FILE, "utf-8");
37+
const file = await fs.readFile(OUTPUT_FILE, "utf8");
3838

3939
expect(file).toMatchSnapshot();
4040
});

test/graphql-multi-project/graphql-multi-project.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ describe("graphql-multi-project", () => {
3535

3636
it("generates", async () => {
3737
await new Promise((resolve) => setTimeout(resolve, 200));
38-
const file = await fs.readFile(OUTPUT_FILE, "utf-8");
38+
const file = await fs.readFile(OUTPUT_FILE, "utf8");
3939

4040
expect(file).toMatchSnapshot();
4141
});

test/inline-config/inline-config.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ describe("inline-config", () => {
5353

5454
it("generates", async () => {
5555
await new Promise((resolve) => setTimeout(resolve, 200));
56-
const file = await fs.readFile(OUTPUT_FILE, "utf-8");
56+
const file = await fs.readFile(OUTPUT_FILE, "utf8");
5757

5858
expect(file).toMatchSnapshot();
5959
});

test/main/main.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ describe("main", () => {
5858
});
5959

6060
it("generates on server start", async () => {
61-
const file = await fs.readFile(OUTPUT_FILE, "utf-8");
61+
const file = await fs.readFile(OUTPUT_FILE, "utf8");
6262

6363
expect(file).toMatchSnapshot();
6464
});
@@ -70,7 +70,7 @@ describe("main", () => {
7070

7171
await isFileGenerated();
7272

73-
const file = await fs.readFile(OUTPUT_FILE, "utf-8");
73+
const file = await fs.readFile(OUTPUT_FILE, "utf8");
7474

7575
expect(file).toMatchSnapshot();
7676
});
@@ -82,7 +82,7 @@ describe("main", () => {
8282

8383
await isFileGenerated();
8484

85-
const file = await fs.readFile(OUTPUT_FILE, "utf-8");
85+
const file = await fs.readFile(OUTPUT_FILE, "utf8");
8686

8787
expect(file).toMatchSnapshot();
8888
});

test/match-on-glob-schema/match-on-glob-schema.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ describe("match-on-glob-schema", () => {
9090

9191
await isFileGenerated();
9292

93-
const file = await fs.readFile(OUTPUT_FILE, "utf-8");
93+
const file = await fs.readFile(OUTPUT_FILE, "utf8");
9494

9595
expect(file).toMatchSnapshot();
9696
});

test/match-on-schema/match-on-schema.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ describe("match-on-schema", () => {
6868

6969
await isFileGenerated();
7070

71-
const file = await fs.readFile(OUTPUT_FILE, "utf-8");
71+
const file = await fs.readFile(OUTPUT_FILE, "utf8");
7272

7373
expect(file).toMatchSnapshot();
7474
});

test/watch-outside-cwd/watch-outside-cwd.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ describe("watch-outside-cwd", () => {
7070

7171
await isFileGenerated();
7272

73-
const file = await fs.readFile(OUTPUT_FILE, "utf-8");
73+
const file = await fs.readFile(OUTPUT_FILE, "utf8");
7474

7575
expect(file).toMatchSnapshot();
7676
});

0 commit comments

Comments
 (0)