Skip to content

Commit 8471bf1

Browse files
committed
lint
1 parent 0ad91fe commit 8471bf1

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
"version": "0.16.0-beta.0",
44
"description": "A micro-mvc framework for react apps",
55
"type": "module",
6-
"files": [
7-
"/dist"
8-
],
6+
"files": ["/dist"],
97
"sideEffects": false,
108
"main": "./dist/cjs/index.js",
119
"types": "./dist/types/index.d.ts",

src/store/store.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export interface CreateStore<S extends AnyState> {
3838
setStoreUpdater?: (
3939
setState: (state: S) => void,
4040
getState: () => S,
41-
getInitialState?: () => S
41+
getInitialState?: () => S,
4242
) => {
4343
updateMdw: BaseMiddleware<UpdaterCtx<S>>;
4444
initializeStore: Callable<any>;
@@ -49,7 +49,7 @@ export const IdContext = createContext("starfx:id", 0);
4949

5050
const defaultStoreUpdater = <S extends AnyState, T>(
5151
setState: (state: S) => void,
52-
getState: () => S
52+
getState: () => S,
5353
) => {
5454
enablePatches();
5555

@@ -146,7 +146,7 @@ export function createStore<S extends AnyState, T>({
146146
const { updateMdw, initializeStore } = setStoreUpdater(
147147
setState,
148148
getState,
149-
getInitialState
149+
getInitialState,
150150
);
151151
function createUpdater() {
152152
const fn = compose<UpdaterCtx<S>>([
@@ -187,7 +187,7 @@ export function createStore<S extends AnyState, T>({
187187
acc[key] = s[key];
188188
return acc;
189189
},
190-
{ ...initialState }
190+
{ ...initialState },
191191
);
192192

193193
Object.keys(s).forEach((key: keyof S) => {
@@ -219,7 +219,7 @@ export function createStore<S extends AnyState, T>({
219219
dispatch,
220220
// stubs so `react-redux` is happy
221221
replaceReducer<S = any>(
222-
_nextReducer: (_s: S, _a: AnyAction) => void
222+
_nextReducer: (_s: S, _a: AnyAction) => void,
223223
): void {
224224
throw new Error(stubMsg);
225225
},

0 commit comments

Comments
 (0)