Skip to content

Commit 922985f

Browse files
chore(deps): update dependency prettier to v3 (#1434)
* 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]>
1 parent d73787b commit 922985f

File tree

314 files changed

+1152
-1113
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

314 files changed

+1152
-1113
lines changed

docs/Walkthrough.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const DevTools = createDevTools(
5252
defaultIsVisible={true}
5353
>
5454
<LogMonitor theme="tomorrow" />
55-
</DockMonitor>
55+
</DockMonitor>,
5656
);
5757

5858
export default DevTools;
@@ -88,7 +88,7 @@ const enhancer = compose(
8888
// Middleware you want to use in development:
8989
applyMiddleware(d1, d2, d3),
9090
// Required! Enable Redux DevTools with the monitors you chose
91-
DevTools.instrument()
91+
DevTools.instrument(),
9292
);
9393

9494
export default function configureStore(initialState) {
@@ -100,8 +100,8 @@ export default function configureStore(initialState) {
100100
if (module.hot) {
101101
module.hot.accept('../reducers', () =>
102102
store.replaceReducer(
103-
require('../reducers') /*.default if you use Babel 6+ */
104-
)
103+
require('../reducers') /*.default if you use Babel 6+ */,
104+
),
105105
);
106106
}
107107

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

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

206206
function getDebugSessionKey() {
@@ -219,8 +219,8 @@ export default function configureStore(initialState) {
219219
if (module.hot) {
220220
module.hot.accept('../reducers', () =>
221221
store.replaceReducer(
222-
require('../reducers') /*.default if you use Babel 6+ */
223-
)
222+
require('../reducers') /*.default if you use Babel 6+ */,
223+
),
224224
);
225225
}
226226

@@ -333,7 +333,7 @@ render(
333333
<Provider store={store}>
334334
<App />
335335
</Provider>,
336-
document.getElementById('root')
336+
document.getElementById('root'),
337337
);
338338

339339
if (process.env.NODE_ENV !== 'production') {
@@ -353,7 +353,7 @@ export default function showDevTools(store) {
353353
const popup = window.open(
354354
null,
355355
'Redux DevTools',
356-
'menubar=no,location=no,resizable=yes,scrollbars=no,status=no'
356+
'menubar=no,location=no,resizable=yes,scrollbars=no,status=no',
357357
);
358358
// Reload in case it already exists
359359
popup.location.reload();
@@ -362,7 +362,7 @@ export default function showDevTools(store) {
362362
popup.document.write('<div id="react-devtools-root"></div>');
363363
render(
364364
<DevTools store={store} />,
365-
popup.document.getElementById('react-devtools-root')
365+
popup.document.getElementById('react-devtools-root'),
366366
);
367367
}, 10);
368368
}

extension/README.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ const composeEnhancers =
105105
: compose;
106106

107107
const enhancer = composeEnhancers(
108-
applyMiddleware(...middleware)
108+
applyMiddleware(...middleware),
109109
// other store enhancers if any
110110
);
111111
const store = createStore(reducer, enhancer);
@@ -130,9 +130,9 @@ import { composeWithDevTools } from '@redux-devtools/extension';
130130
const store = createStore(
131131
reducer,
132132
composeWithDevTools(
133-
applyMiddleware(...middleware)
133+
applyMiddleware(...middleware),
134134
// other store enhancers if any
135-
)
135+
),
136136
);
137137
```
138138

@@ -148,9 +148,9 @@ const composeEnhancers = composeWithDevTools({
148148
const store = createStore(
149149
reducer,
150150
/* preloadedState, */ composeEnhancers(
151-
applyMiddleware(...middleware)
151+
applyMiddleware(...middleware),
152152
// other store enhancers if any
153-
)
153+
),
154154
);
155155
```
156156

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

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

182182
const store = createStore(
183183
reducer,
184-
/* preloadedState, */ devToolsEnhancerLogOnlyInProduction()
184+
/* preloadedState, */ devToolsEnhancerLogOnlyInProduction(),
185185
// options like actionSanitizer, stateSanitizer
186186
);
187187
```
@@ -198,9 +198,9 @@ const composeEnhancers = composeWithDevToolsLogOnlyInProduction({
198198
const store = createStore(
199199
reducer,
200200
/* preloadedState, */ composeEnhancers(
201-
applyMiddleware(...middleware)
201+
applyMiddleware(...middleware),
202202
// other store enhancers if any
203-
)
203+
),
204204
);
205205
```
206206

extension/docs/API/Arguments.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ const composeEnhancers = composeWithDevTools(options);
1414
const store = createStore(
1515
reducer,
1616
/* preloadedState, */ composeEnhancers(
17-
applyMiddleware(...middleware)
17+
applyMiddleware(...middleware),
1818
// other store enhancers if any
19-
)
19+
),
2020
);
2121
```
2222

@@ -70,7 +70,7 @@ _boolean_ or _object_ which contains:
7070
},
7171
},
7272
},
73-
})
73+
}),
7474
);
7575
```
7676

@@ -87,7 +87,7 @@ _boolean_ or _object_ which contains:
8787
replacer: (key, value) =>
8888
value && mori.isMap(value) ? mori.toJs(value) : value,
8989
},
90-
})
90+
}),
9191
);
9292
```
9393

@@ -109,7 +109,7 @@ _boolean_ or _object_ which contains:
109109
}
110110
},
111111
},
112-
})
112+
}),
113113
);
114114
```
115115

@@ -134,7 +134,7 @@ _boolean_ or _object_ which contains:
134134
}
135135
},
136136
},
137-
})
137+
}),
138138
);
139139
```
140140

@@ -174,7 +174,7 @@ _boolean_ or _object_ which contains:
174174
immutable: Immutable,
175175
refs: [ABRecord],
176176
},
177-
})
177+
}),
178178
);
179179
```
180180

@@ -185,7 +185,7 @@ In the example bellow it will always send `{ component: '[React]' }`, regardless
185185
```js
186186
function component(
187187
state = { component: null, toJSON: () => ({ component: '[React]' }) },
188-
action
188+
action,
189189
) {
190190
switch (action.type) {
191191
case 'ADD_COMPONENT':
@@ -206,7 +206,7 @@ function counter(
206206
return { conter: this.count * 10 };
207207
},
208208
},
209-
action
209+
action,
210210
) {
211211
switch (action.type) {
212212
case 'INCREMENT':
@@ -236,7 +236,7 @@ const store = createStore(
236236
actionSanitizer,
237237
stateSanitizer: (state) =>
238238
state.data ? { ...state, data: '<<LONG_BLOB>>' } : state,
239-
})
239+
}),
240240
);
241241
```
242242
@@ -254,7 +254,7 @@ createStore(
254254
actionsDenylist: 'SOME_ACTION',
255255
// or actionsDenylist: ['SOME_ACTION', 'SOME_OTHER_ACTION']
256256
// or just actionsDenylist: 'SOME_' to omit both
257-
})
257+
}),
258258
);
259259
```
260260
@@ -270,7 +270,7 @@ const store = createStore(
270270
window.__REDUX_DEVTOOLS_EXTENSION__({
271271
predicate: (state, action) =>
272272
state.dev.logLevel === VERBOSE && !action.forwarded,
273-
})
273+
}),
274274
);
275275
```
276276

extension/docs/Integrations.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import { inspectProps } from 'react-inspect-props';
3232

3333
compose(
3434
withState('count', 'setCount', 0),
35-
inspectProps('Counter inspector')
35+
inspectProps('Counter inspector'),
3636
)(Counter);
3737
```
3838

@@ -167,7 +167,7 @@ run(App, {
167167
{ id: newId(), num: 0 },
168168
{ id: newId(), num: 0 },
169169
],
170-
})
170+
}),
171171
),
172172
});
173173
```

extension/docs/Recipes.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ type WindowWithDevTools = Window & {
2828
};
2929

3030
const isReduxDevtoolsExtenstionExist = (
31-
arg: Window | WindowWithDevTools
31+
arg: Window | WindowWithDevTools,
3232
): arg is WindowWithDevTools => {
3333
return '__REDUX_DEVTOOLS_EXTENSION__' in arg;
3434
};
@@ -40,7 +40,7 @@ const store = createStore(
4040
initialState,
4141
isReduxDevtoolsExtenstionExist(window)
4242
? window.__REDUX_DEVTOOLS_EXTENSION__()
43-
: undefined
43+
: undefined,
4444
);
4545
```
4646

@@ -72,7 +72,7 @@ const store = createStore(
7272
instaceID: 2,
7373
name: 'Allowlisted',
7474
actionsAllowlist: '...',
75-
})
76-
)
75+
}),
76+
),
7777
);
7878
```

extension/docs/Troubleshooting.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ const store = createStore(
3535
window.__REDUX_DEVTOOLS_EXTENSION__
3636
? window.__REDUX_DEVTOOLS_EXTENSION__()
3737
: (noop) => noop,
38-
batchedSubscribe(/* ... */)
39-
)
38+
batchedSubscribe(/* ... */),
39+
),
4040
);
4141
```
4242

@@ -60,7 +60,7 @@ const store = createStore(
6060
actionSanitizer,
6161
stateSanitizer: (state) =>
6262
state.data ? { ...state, data: '<<LONG_BLOB>>' } : state,
63-
})
63+
}),
6464
);
6565
```
6666

@@ -124,7 +124,7 @@ const store = Redux.createStore(
124124
window.__REDUX_DEVTOOLS_EXTENSION__ &&
125125
window.__REDUX_DEVTOOLS_EXTENSION__({
126126
serialize: true,
127-
})
127+
}),
128128
);
129129
```
130130

extension/examples/counter/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html>
33
<head>
44
<title>Redux counter example</title>

extension/examples/counter/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ render(
1010
<Provider store={store}>
1111
<App />
1212
</Provider>,
13-
document.getElementById('root')
13+
document.getElementById('root'),
1414
);

extension/examples/counter/server.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ app.use(
1111
webpackDevMiddleware(compiler, {
1212
noInfo: true,
1313
publicPath: config.output.publicPath,
14-
})
14+
}),
1515
);
1616
app.use(webpackHotMiddleware(compiler));
1717

@@ -26,7 +26,7 @@ app.listen(port, function (error) {
2626
console.info(
2727
'==> 🌎 Listening on port %s. Open up http://localhost:%s/ in your browser.',
2828
port,
29-
port
29+
port,
3030
);
3131
}
3232
});

extension/examples/counter/store/configureStore.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default function configureStore(preloadedState) {
1414
const store = createStore(
1515
reducer,
1616
preloadedState,
17-
composeEnhancers(applyMiddleware(invariant(), thunk))
17+
composeEnhancers(applyMiddleware(invariant(), thunk)),
1818
);
1919

2020
if (module.hot) {

extension/examples/counter/test/actions/counter.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function mockStore(getState, expectedActions, onLastAction) {
3737
}
3838

3939
const mockStoreWithMiddleware = applyMiddleware(...middlewares)(
40-
mockStoreWithoutMiddleware
40+
mockStoreWithoutMiddleware,
4141
);
4242

4343
return mockStoreWithMiddleware();

extension/examples/counter/test/components/Counter.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function setup() {
1111
decrement: expect.createSpy(),
1212
};
1313
const component = TestUtils.renderIntoDocument(
14-
<Counter counter={1} {...actions} />
14+
<Counter counter={1} {...actions} />,
1515
);
1616
return {
1717
component: component,

extension/examples/counter/test/containers/App.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function setup(initialState) {
1010
const app = TestUtils.renderIntoDocument(
1111
<Provider store={store}>
1212
<App />
13-
</Provider>
13+
</Provider>,
1414
);
1515
return {
1616
app: app,

extension/examples/react-counter-messaging/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html>
33
<head>
44
<title>React counter example</title>

0 commit comments

Comments
 (0)