Skip to content

Commit 4e6ba2f

Browse files
committed
refactor: use biome instead of eslint
1 parent a91d2b4 commit 4e6ba2f

File tree

4 files changed

+306
-1901
lines changed

4 files changed

+306
-1901
lines changed

biome.json

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
3+
"organizeImports": {
4+
"enabled": true
5+
},
6+
"linter": {
7+
"enabled": true,
8+
"rules": {
9+
"recommended": true
10+
}
11+
}
12+
}

lib/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ const plugin = (config = {}) => tree => {
3232
return node
3333
}
3434

35-
Object.keys(config.parameters).forEach(item => {
35+
for (const item of Object.keys(config.parameters)) {
3636
parsed.query[item] = config.parameters[item]
37-
})
37+
}
3838

3939
node.attrs[matchingAttribute] = qs.stringifyUrl(parsed, config.qs)
4040

0 commit comments

Comments
 (0)