Skip to content

Commit

Permalink
feat: use biome replace eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangyuang committed Oct 22, 2024
1 parent e97f3c3 commit 1834a95
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
13 changes: 10 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
{
"[javascript]": {
"editor.defaultFormatter": "biomejs.biome",
"[javascript]": {
"editor.defaultFormatter": "biomejs.biome"
},
},
"[typescript]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[typescriptreact]": {
"editor.defaultFormatter": "biomejs.biome"
},
"editor.codeActionsOnSave": {
"quickfix.biome": "explicit",
"source.organizeImports.biome": "explicit"
}
},
}
2 changes: 1 addition & 1 deletion packages/plugin-react/src/tools/webpack.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import WebpackChain from 'webpack-chain'
import * as WebpackChain from 'webpack-chain'

export const webpackStart = async () => {
const { startServerBuild } = await import('ssr-webpack/cjs/server')
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-vue/src/tools/webpack.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import WebpackChain from 'webpack-chain'
import * as WebpackChain from 'webpack-chain'

export const webpackStart = async () => {
const { startServerBuild } = await import('ssr-webpack/cjs/server')
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-vue3/src/tools/webpack.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import WebpackChain from 'webpack-chain'
import * as WebpackChain from 'webpack-chain'

export const webpackStart = async () => {
const { startServerBuild } = await import('ssr-webpack')
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/src/server/string-stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ function mergeStream2(..._arg: any[]): Readable {
return
}
merging = true

let streams = streamsQueue.shift()
if (!streams) {
process.nextTick(endStream)
Expand All @@ -65,6 +64,7 @@ function mergeStream2(..._arg: any[]): Readable {
if (!Array.isArray(streams)) {
streams = [streams]
}

// eslint-disable-next-line
let pipesCount = streams.length + 1

Expand Down

0 comments on commit 1834a95

Please sign in to comment.