Skip to content

Commit

Permalink
chore(deps): update dependency prettier to v3 and eslint-plugin-prett…
Browse files Browse the repository at this point in the history
…ier to v5
  • Loading branch information
renovate[bot] authored and cexbrayat committed Jul 20, 2023
1 parent ffbb7cf commit 136e67b
Show file tree
Hide file tree
Showing 3 changed files with 191 additions and 20 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@
"@vue/server-renderer": "3.3.4",
"eslint": "8.44.0",
"eslint-config-prettier": "8.8.0",
"eslint-plugin-prettier": "4.2.1",
"eslint-plugin-prettier": "5.0.0",
"husky": "8.0.3",
"jsdom": "22.1.0",
"jsdom-global": "3.0.2",
"lint-staged": "13.2.3",
"prettier": "2.8.8",
"prettier": "3.0.0",
"reflect-metadata": "0.1.13",
"rollup": "3.26.1",
"tslib": "2.6.0",
Expand Down Expand Up @@ -121,4 +121,4 @@
]
}
}
}
}
194 changes: 181 additions & 13 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 7 additions & 4 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,13 @@ export function isRefSelector(
export function convertStubsToRecord(stubs: Stubs) {
if (Array.isArray(stubs)) {
// ['Foo', 'Bar'] => { Foo: true, Bar: true }
return stubs.reduce((acc, current) => {
acc[current] = true
return acc
}, {} as Record<string, Stub>)
return stubs.reduce(
(acc, current) => {
acc[current] = true
return acc
},
{} as Record<string, Stub>
)
}

return stubs
Expand Down

0 comments on commit 136e67b

Please sign in to comment.