Skip to content

Commit 8c9cd49

Browse files
committed
style: fix linting
1 parent 5dcf5a7 commit 8c9cd49

File tree

6 files changed

+18
-16
lines changed

6 files changed

+18
-16
lines changed

packages/overmind-devtools-client/src/overmind/state.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,7 @@ const state: State = {
9898
hasActionsError: derived((state: State) => {
9999
return Boolean(
100100
state.currentApp &&
101-
Object.values(state.currentApp.actions).some(
102-
(action) => action.hasError
103-
)
101+
Object.values(state.currentApp.actions).some((action) => action.hasError)
104102
)
105103
}),
106104
componentsMounted: derived((state: State) =>

packages/overmind/src/Overmind.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ import * as utils from './utils'
1111

1212
const hotReloadingCache = {}
1313

14-
export class Overmind<ThisConfig extends IConfiguration>
15-
implements IConfiguration
16-
{
14+
export class Overmind<
15+
ThisConfig extends IConfiguration,
16+
> implements IConfiguration {
1717
private proxyStateTreeInstance: proxyStateTree.ProxyStateTree<
1818
object,
1919
Devtools | undefined

packages/overmind/src/OvermindMock.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ import * as internalTypes from './internalTypes'
44
import { Overmind } from './Overmind'
55
import * as utils from './utils'
66

7-
export interface OvermindMock<Config extends IConfiguration>
8-
extends Overmind<Config> {
7+
export interface OvermindMock<
8+
Config extends IConfiguration,
9+
> extends Overmind<Config> {
910
onInitialize: () => Promise<proxyStateTree.IMutation[]>
1011
mutations: proxyStateTree.IMutation[]
1112
}

packages/overmind/src/OvermindSSR.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ import * as proxyStateTree from 'proxy-state-tree'
44
import * as utils from './utils'
55
import * as internalTypes from './internalTypes'
66

7-
export interface OvermindSSR<Config extends IConfiguration>
8-
extends Overmind<Config> {
7+
export interface OvermindSSR<
8+
Config extends IConfiguration,
9+
> extends Overmind<Config> {
910
hydrate(): proxyStateTree.IMutation[]
1011
}
1112

packages/proxy-state-tree/src/TrackStateTree.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ import {
66
ITrackStateTree,
77
} from './types'
88

9-
export class TrackStateTree<T extends object, D>
10-
implements ITrackStateTree<T, D>
11-
{
9+
export class TrackStateTree<T extends object, D> implements ITrackStateTree<
10+
T,
11+
D
12+
> {
1213
root: IProxyStateTree<T, D>
1314
pathDependencies: Set<string> = new Set()
1415
state: T

packages/proxy-state-tree/src/index.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@ export {
2929

3030
export * from './types'
3131

32-
export class ProxyStateTree<T extends object, D>
33-
implements IProxyStateTree<T, D>
34-
{
32+
export class ProxyStateTree<T extends object, D> implements IProxyStateTree<
33+
T,
34+
D
35+
> {
3536
flushCallbacks: IFlushCallback[] = []
3637
mutationCallbacks: IMutationCallback[] = []
3738
currentFlushId: number = 0

0 commit comments

Comments
 (0)