Skip to content

Commit 5edbbc9

Browse files
authored
Fix formatting
1 parent 299e9c5 commit 5edbbc9

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/usage/immer-reducers.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -458,16 +458,16 @@ To resolve this, you can tell the ESLint rule to ignore mutations and assignment
458458
```js
459459
// @filename .eslintrc.js
460460
module.exports = {
461-
...
461+
// add to your ESLint config definition
462462
overrides: [
463-
...,
464-
{
465-
files: ['src/**/*.slice.ts'], // feel free to replace with your preferred file pattern - eg. 'src/**/*Slice.ts'
466-
rules: { 'no-param-reassign': ['error', { props: false }] }, // avoid state param assignment
467-
},
468-
],
463+
{
464+
// feel free to replace with your preferred file pattern - eg. 'src/**/*Slice.ts'
465+
files: ['src/**/*.slice.ts'],
466+
// avoid state param assignment
467+
rules: { 'no-param-reassign': ['error', { props: false }] },
468+
},
469+
],
469470
}
470-
471471
```
472472

473473
## Why Immer is Built In

0 commit comments

Comments
 (0)