Skip to content

Commit 4eccbd1

Browse files
authored
More eslint fixes (#388)
1 parent b2c97fb commit 4eccbd1

File tree

19 files changed

+36
-34
lines changed

19 files changed

+36
-34
lines changed

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ const defaultValue: ContextValue = {
6464
};
6565

6666
export const Context = React.createContext(defaultValue);
67-
export type ProviderProps = PropsWithChildren<{}>;
67+
export type ProviderProps = PropsWithChildren<Record<string, never>>;
6868

6969
export function ApiProvider(props: ProviderProps) {
7070
const { children } = props;

src/context-store--basic/modifiers/index.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { describe, expect, it, jest } from "@jest/globals";
22
import { errorMessages } from "../../shared/index.js";
3-
import { getReplaceContextData } from "./index";
3+
import { getReplaceContextData } from "./index.js";
44

55
describe("getReplaceContextData", () => {
66
it("updates state correctly without any actions", async () => {

src/context-store--basic/tests/object/index.mock.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { PropsWithChildren } from "react";
2-
import { ContextStore, getNotImplementedPromise, useContextStore } from "../../../index";
2+
import { ContextStore, getNotImplementedPromise, useContextStore } from "../../../index.js";
33

44
export type Item = {
55
id: 0;
@@ -21,7 +21,7 @@ const defaultValue: ContextValue = {
2121
};
2222

2323
export const Context = React.createContext(defaultValue);
24-
export type ProviderProps = PropsWithChildren<{}>;
24+
export type ProviderProps = PropsWithChildren<Record<string, never>>;
2525

2626
export function ApiProvider(props: ProviderProps) {
2727
const { children } = props;

src/context-store--basic/tests/object/index.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { beforeEach, describe, it, jest } from "@jest/globals";
2-
import { ShallowContextHarness } from "../../../test-utils/harness";
2+
import { ShallowContextHarness } from "../../../test-utils/harness.js";
33
import { ApiProvider, Context } from "./index.mock";
44

55
describe("Context store - object", () => {

src/context-store--basic/tests/primative/index.mock.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { PropsWithChildren } from "react";
2-
import { ContextStore, getNotImplementedPromise, useContextStore } from "../../../index";
2+
import { ContextStore, getNotImplementedPromise, useContextStore } from "../../../index.js";
33

44
export type Item = number;
55
export interface ContextValue extends ContextStore<Item> {
@@ -13,7 +13,7 @@ const defaultValue: ContextValue = {
1313
};
1414

1515
export const Context = React.createContext(defaultValue);
16-
export type ProviderProps = PropsWithChildren<{}>;
16+
export type ProviderProps = PropsWithChildren<Record<string, never>>;
1717

1818
export function ApiProvider(props: ProviderProps) {
1919
const { children } = props;

src/context-store--basic/tests/primative/index.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { beforeEach, describe, it, jest } from "@jest/globals";
2-
import { ShallowContextHarness } from "../../../test-utils/harness";
2+
import { ShallowContextHarness } from "../../../test-utils/harness.js";
33
import { ApiProvider, Context } from "./index.mock";
44

55
describe("Context store - primative", () => {

src/context-store--indexable/tests/array-object/index.mock.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { PropsWithChildren } from "react";
22

3-
import { ContextStore, getNotImplementedPromise, useIndexableContextStore } from "../../../index";
3+
import { ContextStore, getNotImplementedPromise, useIndexableContextStore } from "../../../index.js";
44

55
export type Item = {
66
id: number;
@@ -32,7 +32,7 @@ const defaultValue: ContextValue = {
3232
};
3333

3434
export const Context = React.createContext(defaultValue);
35-
export type ProviderProps = PropsWithChildren<{}>;
35+
export type ProviderProps = PropsWithChildren<Record<string, never>>;
3636

3737
export function ApiProvider(props: ProviderProps) {
3838
const { children } = props;

src/context-store--indexable/tests/array-object/index.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { beforeEach, describe, it, jest } from "@jest/globals";
2-
import { errorMessages } from "../../../shared";
3-
import { ShallowContextHarness } from "../../../test-utils/harness";
2+
import { errorMessages } from "../../../shared/index.js";
3+
import { ShallowContextHarness } from "../../../test-utils/harness.js";
44
import { ApiProvider, Context, Item } from "./index.mock";
55

66
describe("replaceAll", () => {

src/context-store--indexable/tests/map-number/index.mock.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { PropsWithChildren } from "react";
2-
import { ContextStore, getNotImplementedPromise, useIndexableContextStore } from "../../../index";
2+
import { ContextStore, getNotImplementedPromise, useIndexableContextStore } from "../../../index.js";
33

44
export type Item = {
55
id: number;
@@ -26,7 +26,7 @@ const defaultValue: ContextValue = {
2626
};
2727

2828
export const Context = React.createContext(defaultValue);
29-
export type ProviderProps = PropsWithChildren<{}>;
29+
export type ProviderProps = PropsWithChildren<Record<string, never>>;
3030

3131
export function ApiProvider(props: ProviderProps) {
3232
const { children } = props;

src/context-store--indexable/tests/map-number/index.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { beforeEach, describe, it, jest } from "@jest/globals";
2-
import { ShallowContextHarness } from "../../../test-utils/harness";
2+
import { ShallowContextHarness } from "../../../test-utils/harness.js";
33
import { ApiProvider, Context, ContextValueData } from "./index.mock";
44

55
describe("Context store - object", () => {

0 commit comments

Comments
 (0)