Skip to content

Commit 0439cfb

Browse files
committed
Update local file imports
Adds .js extension and `type` keyword in accordance with linting rules
1 parent c0621a9 commit 0439cfb

File tree

16 files changed

+19
-20
lines changed

16 files changed

+19
-20
lines changed

packages/auth/src/team/invalidLinkReducer.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { type TeamLink, type TeamState } from './types.js'
2-
import { type Member } from '.'
1+
import { type Member, type TeamLink, type TeamState } from './types.js'
32

43
/**
54
* This function is used as an alternative reducer for invalid links; the normal reducer just

packages/auth/src/team/selectors/teamKeyring.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { KeysetWithSecrets, createKeyring } from '@localfirst/crdx'
2-
import { TeamState } from 'team/types'
1+
import { type KeysetWithSecrets, createKeyring } from '@localfirst/crdx'
2+
import { type TeamState } from 'team/types.js'
33
import { KeyType } from 'util/types.js'
44
import { keyMap } from './keyMap.js'
55

packages/crdx/src/_test/graph/append.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { TEST_GRAPH_KEYS as keys, setup } from '_test/helpers/setup'
1+
import { TEST_GRAPH_KEYS as keys, setup } from '_test/helpers/setup.js'
22
import { describe, expect, test } from 'vitest'
33
import { append, createGraph, getHead, getRoot } from 'graph/index.js'
44
import { validate } from 'validator/index.js'

packages/crdx/src/_test/graph/create.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { TEST_GRAPH_KEYS as keys, setup } from '_test/helpers/setup'
1+
import { TEST_GRAPH_KEYS as keys, setup } from '_test/helpers/setup.js'
22
import { describe, expect, test } from 'vitest'
33
import { createGraph, deserialize, getHead, getRoot, serialize } from 'graph/index.js'
44
import { validate } from 'validator/index.js'

packages/crdx/src/_test/graph/decrypt.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { TEST_GRAPH_KEYS } from '_test/helpers/setup'
1+
import { TEST_GRAPH_KEYS } from '_test/helpers/setup.js'
22
import { describe, expect, it } from 'vitest'
33
import { append, createGraph, decryptGraph, decryptLink, redactGraph } from 'graph/index.js'
44
import { createKeyset } from 'keyset/index.js'

packages/crdx/src/_test/graph/getParentMap.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { buildGraph, findByPayload } from '_test/helpers/graph'
1+
import { buildGraph, findByPayload } from '_test/helpers/graph.js'
22
import { describe, expect, it } from 'vitest'
33
import { getLink, getParentMap, type Graph, type Action } from 'graph/index.js'
44
import { type Hash } from 'util/index.js'

packages/crdx/src/_test/graph/merge.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { TEST_GRAPH_KEYS as keys, setup } from '_test/helpers/setup'
1+
import { TEST_GRAPH_KEYS as keys, setup } from '_test/helpers/setup.js'
22
import { clone } from 'lodash-es'
33
import '_test/helpers/expect/toBeValid'
44
import { describe, expect, test } from 'vitest'

packages/crdx/src/_test/helpers/Network.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// ignore file coverage
2-
import { TEST_GRAPH_KEYS as keys } from '_test/helpers/setup'
2+
import { TEST_GRAPH_KEYS as keys } from '_test/helpers/setup.js'
33
import { expect } from 'vitest'
44
import { setup } from './setup.js'
55
import { createGraph, type Graph, headsAreEqual } from 'graph/index.js'

packages/crdx/src/_test/store/counter.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { TEST_GRAPH_KEYS as keys } from '_test/helpers/setup'
1+
import { TEST_GRAPH_KEYS as keys } from '_test/helpers/setup.js'
22
import { describe, expect, test } from 'vitest'
33
import { type RootAction } from 'graph/index.js'
44
import { createStore } from 'store/index.js'

packages/crdx/src/_test/store/createStore.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { asymmetric } from '@localfirst/crypto'
22
import '_test/helpers/expect/toBeValid'
3-
import { TEST_GRAPH_KEYS as keys } from '_test/helpers/setup'
3+
import { TEST_GRAPH_KEYS as keys } from '_test/helpers/setup.js'
44
import { describe, expect, test } from 'vitest'
55
import {
66
counterReducer,

0 commit comments

Comments
 (0)