Skip to content

Commit

Permalink
Format all files
Browse files Browse the repository at this point in the history
  • Loading branch information
aryaemami59 committed Aug 13, 2024
1 parent e59cc72 commit 15b0ed9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions codemods/transforms/convertInputSelectorsToArray/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ node ./bin/cli.mjs convertInputSelectorsToArray path/of/files/ or/some**/*glob.j

<a id="separate-inline-arguments.ts">**separate-inline-arguments.ts**</a>

**Input** (<small>[separate-inline-arguments.input.ts](transforms\convertInputSelectorsToArray\__testfixtures__\separate-inline-arguments.input.ts)</small>):
**Input** (<small>[separate-inline-arguments.input.ts](transforms\convertInputSelectorsToArray__testfixtures__\separate-inline-arguments.input.ts)</small>):

```ts
import { createSelector } from 'reselect'
Expand All @@ -47,11 +47,11 @@ export interface RootState {
const selectTodoById = createSelector(
(state: RootState) => state.todos,
(state: RootState, id: number) => id,
(todos, id) => todos.find(todo => todo.id === id)
(todos, id) => todos.find(todo => todo.id === id),
)
```

**Output** (<small>[separate-inline-arguments.output.ts](transforms\convertInputSelectorsToArray\__testfixtures__\separate-inline-arguments.output.ts)</small>):
**Output** (<small>[separate-inline-arguments.output.ts](transforms\convertInputSelectorsToArray__testfixtures__\separate-inline-arguments.output.ts)</small>):

```ts
import { createSelector } from 'reselect'
Expand All @@ -63,7 +63,8 @@ export interface RootState {

const selectTodoById = createSelector(
[(state: RootState) => state.todos, (state: RootState, id: number) => id],
(todos, id) => todos.find(todo => todo.id === id)
(todos, id) => todos.find(todo => todo.id === id),
)
```
<!--FIXTURES_CONTENT_END-->

<!--FIXTURES_CONTENT_END-->
4 changes: 2 additions & 2 deletions codemods/vitest.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import { defineConfig } from 'vitest/config'

export default defineConfig({
test: {
globals: true
}
globals: true,
},
})

0 comments on commit 15b0ed9

Please sign in to comment.