Skip to content

Commit

Permalink
chore(deps): update dependency prettier to v3 (reduxjs#1434)
Browse files Browse the repository at this point in the history
* chore(deps): update dependency prettier to v3

* Format

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Nathan Bierema <[email protected]>
  • Loading branch information
renovate[bot] and Methuselah96 authored Jul 12, 2023
1 parent d73787b commit 922985f
Show file tree
Hide file tree
Showing 314 changed files with 1,152 additions and 1,113 deletions.
22 changes: 11 additions & 11 deletions docs/Walkthrough.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const DevTools = createDevTools(
defaultIsVisible={true}
>
<LogMonitor theme="tomorrow" />
</DockMonitor>
</DockMonitor>,
);

export default DevTools;
Expand Down Expand Up @@ -88,7 +88,7 @@ const enhancer = compose(
// Middleware you want to use in development:
applyMiddleware(d1, d2, d3),
// Required! Enable Redux DevTools with the monitors you chose
DevTools.instrument()
DevTools.instrument(),
);

export default function configureStore(initialState) {
Expand All @@ -100,8 +100,8 @@ export default function configureStore(initialState) {
if (module.hot) {
module.hot.accept('../reducers', () =>
store.replaceReducer(
require('../reducers') /*.default if you use Babel 6+ */
)
require('../reducers') /*.default if you use Babel 6+ */,
),
);
}

Expand All @@ -121,7 +121,7 @@ const enhancer = compose(
// Required! Enable Redux DevTools with the monitors you chose
DevTools.instrument(),
// Optional. Lets you write ?debug_session=<key> in address bar to persist debug sessions
persistState(getDebugSessionKey())
persistState(getDebugSessionKey()),
);

function getDebugSessionKey() {
Expand Down Expand Up @@ -200,7 +200,7 @@ const enhancer = compose(
// Required! Enable Redux DevTools with the monitors you chose
DevTools.instrument(),
// Optional. Lets you write ?debug_session=<key> in address bar to persist debug sessions
persistState(getDebugSessionKey())
persistState(getDebugSessionKey()),
);

function getDebugSessionKey() {
Expand All @@ -219,8 +219,8 @@ export default function configureStore(initialState) {
if (module.hot) {
module.hot.accept('../reducers', () =>
store.replaceReducer(
require('../reducers') /*.default if you use Babel 6+ */
)
require('../reducers') /*.default if you use Babel 6+ */,
),
);
}

Expand Down Expand Up @@ -333,7 +333,7 @@ render(
<Provider store={store}>
<App />
</Provider>,
document.getElementById('root')
document.getElementById('root'),
);

if (process.env.NODE_ENV !== 'production') {
Expand All @@ -353,7 +353,7 @@ export default function showDevTools(store) {
const popup = window.open(
null,
'Redux DevTools',
'menubar=no,location=no,resizable=yes,scrollbars=no,status=no'
'menubar=no,location=no,resizable=yes,scrollbars=no,status=no',
);
// Reload in case it already exists
popup.location.reload();
Expand All @@ -362,7 +362,7 @@ export default function showDevTools(store) {
popup.document.write('<div id="react-devtools-root"></div>');
render(
<DevTools store={store} />,
popup.document.getElementById('react-devtools-root')
popup.document.getElementById('react-devtools-root'),
);
}, 10);
}
Expand Down
18 changes: 9 additions & 9 deletions extension/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const composeEnhancers =
: compose;

const enhancer = composeEnhancers(
applyMiddleware(...middleware)
applyMiddleware(...middleware),
// other store enhancers if any
);
const store = createStore(reducer, enhancer);
Expand All @@ -130,9 +130,9 @@ import { composeWithDevTools } from '@redux-devtools/extension';
const store = createStore(
reducer,
composeWithDevTools(
applyMiddleware(...middleware)
applyMiddleware(...middleware),
// other store enhancers if any
)
),
);
```

Expand All @@ -148,9 +148,9 @@ const composeEnhancers = composeWithDevTools({
const store = createStore(
reducer,
/* preloadedState, */ composeEnhancers(
applyMiddleware(...middleware)
applyMiddleware(...middleware),
// other store enhancers if any
)
),
);
```

Expand All @@ -164,7 +164,7 @@ import { devToolsEnhancer } from '@redux-devtools/extension';

const store = createStore(
reducer,
/* preloadedState, */ devToolsEnhancer()
/* preloadedState, */ devToolsEnhancer(),
// Specify name here, actionsDenylist, actionsCreators and other options if needed
);
```
Expand All @@ -181,7 +181,7 @@ import { devToolsEnhancerLogOnlyInProduction } from '@redux-devtools/extension';

const store = createStore(
reducer,
/* preloadedState, */ devToolsEnhancerLogOnlyInProduction()
/* preloadedState, */ devToolsEnhancerLogOnlyInProduction(),
// options like actionSanitizer, stateSanitizer
);
```
Expand All @@ -198,9 +198,9 @@ const composeEnhancers = composeWithDevToolsLogOnlyInProduction({
const store = createStore(
reducer,
/* preloadedState, */ composeEnhancers(
applyMiddleware(...middleware)
applyMiddleware(...middleware),
// other store enhancers if any
)
),
);
```

Expand Down
24 changes: 12 additions & 12 deletions extension/docs/API/Arguments.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ const composeEnhancers = composeWithDevTools(options);
const store = createStore(
reducer,
/* preloadedState, */ composeEnhancers(
applyMiddleware(...middleware)
applyMiddleware(...middleware),
// other store enhancers if any
)
),
);
```

Expand Down Expand Up @@ -70,7 +70,7 @@ _boolean_ or _object_ which contains:
},
},
},
})
}),
);
```

Expand All @@ -87,7 +87,7 @@ _boolean_ or _object_ which contains:
replacer: (key, value) =>
value && mori.isMap(value) ? mori.toJs(value) : value,
},
})
}),
);
```

Expand All @@ -109,7 +109,7 @@ _boolean_ or _object_ which contains:
}
},
},
})
}),
);
```

Expand All @@ -134,7 +134,7 @@ _boolean_ or _object_ which contains:
}
},
},
})
}),
);
```

Expand Down Expand Up @@ -174,7 +174,7 @@ _boolean_ or _object_ which contains:
immutable: Immutable,
refs: [ABRecord],
},
})
}),
);
```

Expand All @@ -185,7 +185,7 @@ In the example bellow it will always send `{ component: '[React]' }`, regardless
```js
function component(
state = { component: null, toJSON: () => ({ component: '[React]' }) },
action
action,
) {
switch (action.type) {
case 'ADD_COMPONENT':
Expand All @@ -206,7 +206,7 @@ function counter(
return { conter: this.count * 10 };
},
},
action
action,
) {
switch (action.type) {
case 'INCREMENT':
Expand Down Expand Up @@ -236,7 +236,7 @@ const store = createStore(
actionSanitizer,
stateSanitizer: (state) =>
state.data ? { ...state, data: '<<LONG_BLOB>>' } : state,
})
}),
);
```
Expand All @@ -254,7 +254,7 @@ createStore(
actionsDenylist: 'SOME_ACTION',
// or actionsDenylist: ['SOME_ACTION', 'SOME_OTHER_ACTION']
// or just actionsDenylist: 'SOME_' to omit both
})
}),
);
```
Expand All @@ -270,7 +270,7 @@ const store = createStore(
window.__REDUX_DEVTOOLS_EXTENSION__({
predicate: (state, action) =>
state.dev.logLevel === VERBOSE && !action.forwarded,
})
}),
);
```
Expand Down
4 changes: 2 additions & 2 deletions extension/docs/Integrations.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import { inspectProps } from 'react-inspect-props';

compose(
withState('count', 'setCount', 0),
inspectProps('Counter inspector')
inspectProps('Counter inspector'),
)(Counter);
```

Expand Down Expand Up @@ -167,7 +167,7 @@ run(App, {
{ id: newId(), num: 0 },
{ id: newId(), num: 0 },
],
})
}),
),
});
```
Expand Down
8 changes: 4 additions & 4 deletions extension/docs/Recipes.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type WindowWithDevTools = Window & {
};

const isReduxDevtoolsExtenstionExist = (
arg: Window | WindowWithDevTools
arg: Window | WindowWithDevTools,
): arg is WindowWithDevTools => {
return '__REDUX_DEVTOOLS_EXTENSION__' in arg;
};
Expand All @@ -40,7 +40,7 @@ const store = createStore(
initialState,
isReduxDevtoolsExtenstionExist(window)
? window.__REDUX_DEVTOOLS_EXTENSION__()
: undefined
: undefined,
);
```

Expand Down Expand Up @@ -72,7 +72,7 @@ const store = createStore(
instaceID: 2,
name: 'Allowlisted',
actionsAllowlist: '...',
})
)
}),
),
);
```
8 changes: 4 additions & 4 deletions extension/docs/Troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ const store = createStore(
window.__REDUX_DEVTOOLS_EXTENSION__
? window.__REDUX_DEVTOOLS_EXTENSION__()
: (noop) => noop,
batchedSubscribe(/* ... */)
)
batchedSubscribe(/* ... */),
),
);
```

Expand All @@ -60,7 +60,7 @@ const store = createStore(
actionSanitizer,
stateSanitizer: (state) =>
state.data ? { ...state, data: '<<LONG_BLOB>>' } : state,
})
}),
);
```

Expand Down Expand Up @@ -124,7 +124,7 @@ const store = Redux.createStore(
window.__REDUX_DEVTOOLS_EXTENSION__ &&
window.__REDUX_DEVTOOLS_EXTENSION__({
serialize: true,
})
}),
);
```

Expand Down
2 changes: 1 addition & 1 deletion extension/examples/counter/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<title>Redux counter example</title>
Expand Down
2 changes: 1 addition & 1 deletion extension/examples/counter/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ render(
<Provider store={store}>
<App />
</Provider>,
document.getElementById('root')
document.getElementById('root'),
);
4 changes: 2 additions & 2 deletions extension/examples/counter/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ app.use(
webpackDevMiddleware(compiler, {
noInfo: true,
publicPath: config.output.publicPath,
})
}),
);
app.use(webpackHotMiddleware(compiler));

Expand All @@ -26,7 +26,7 @@ app.listen(port, function (error) {
console.info(
'==> 🌎 Listening on port %s. Open up http://localhost:%s/ in your browser.',
port,
port
port,
);
}
});
2 changes: 1 addition & 1 deletion extension/examples/counter/store/configureStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default function configureStore(preloadedState) {
const store = createStore(
reducer,
preloadedState,
composeEnhancers(applyMiddleware(invariant(), thunk))
composeEnhancers(applyMiddleware(invariant(), thunk)),
);

if (module.hot) {
Expand Down
2 changes: 1 addition & 1 deletion extension/examples/counter/test/actions/counter.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function mockStore(getState, expectedActions, onLastAction) {
}

const mockStoreWithMiddleware = applyMiddleware(...middlewares)(
mockStoreWithoutMiddleware
mockStoreWithoutMiddleware,
);

return mockStoreWithMiddleware();
Expand Down
2 changes: 1 addition & 1 deletion extension/examples/counter/test/components/Counter.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function setup() {
decrement: expect.createSpy(),
};
const component = TestUtils.renderIntoDocument(
<Counter counter={1} {...actions} />
<Counter counter={1} {...actions} />,
);
return {
component: component,
Expand Down
2 changes: 1 addition & 1 deletion extension/examples/counter/test/containers/App.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function setup(initialState) {
const app = TestUtils.renderIntoDocument(
<Provider store={store}>
<App />
</Provider>
</Provider>,
);
return {
app: app,
Expand Down
2 changes: 1 addition & 1 deletion extension/examples/react-counter-messaging/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<title>React counter example</title>
Expand Down
Loading

0 comments on commit 922985f

Please sign in to comment.