Skip to content

Commit f1b44b5

Browse files
committed
style(build): remove unnecessary parentheses in arrow functions
Remove parentheses around single arrow function parameters in esbuild config.
1 parent c5d600b commit f1b44b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.config/esbuild.config.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function createPathShorteningPlugin() {
5757
* Shorten a module path and detect conflicts.
5858
*/
5959
// eslint-disable-next-line unicorn/consistent-function-scoping
60-
const shortenPath = (longPath) => {
60+
const shortenPath = longPath => {
6161
if (pathMap.has(longPath)) {
6262
return pathMap.get(longPath)
6363
}
@@ -134,7 +134,7 @@ function createPathShorteningPlugin() {
134134
}
135135

136136
// Walk through all string literals in __commonJS calls
137-
const walk = (node) => {
137+
const walk = node => {
138138
if (!node || typeof node !== 'object') {
139139
return
140140
}

0 commit comments

Comments
 (0)