Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
hemengke1997 committed Oct 19, 2023
1 parent 068b84d commit 9fe26ee
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"test": "run-s test:unit test:serve test:build",
"test:serve": "vitest run -c vitest.config.e2e.ts",
"test:build": "cross-env VITE_TEST_BUILD=1 vitest run -c vitest.config.e2e.ts",
"lint": "eslint .",
"lint": "eslint . --fix",
"preinstall": "npx only-allow pnpm",
"up": "pnpm update --i --L",
"taze": "taze -I -r -w",
Expand Down
2 changes: 1 addition & 1 deletion playground/ssr/__tests__/ssr-react.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import fetch from 'node-fetch'
import { describe, expect, test } from 'vitest'
import { port } from './serve'
import { browserLogs, editFile, isBuild, isServe, page, untilBrowserLogAfter, untilUpdated } from '~utils'
import { browserLogs, editFile, page, untilBrowserLogAfter, untilUpdated } from '~utils'

const url = `http://localhost:${port}`

Expand Down
3 changes: 1 addition & 2 deletions playground/ssr/src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Link, Route, Routes } from 'react-router-dom'

/* eslint-disable unused-imports/no-unused-vars */
// Auto generates routes from files under ./pages
// https://vitejs.dev/guide/features.html#glob-import
const pages = import.meta.glob('./pages/*.jsx', { eager: true })
Expand Down
2 changes: 0 additions & 2 deletions playground/ssr/src/entry-client.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import ReactDOM from 'react-dom/client'
import { BrowserRouter } from 'react-router-dom'
import { App } from './App'

ReactDOM.hydrateRoot(
document.querySelector('#app'),
Expand Down
2 changes: 0 additions & 2 deletions playground/ssr/src/entry-server.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import ReactDOMServer from 'react-dom/server'
import { StaticRouter } from 'react-router-dom/server'
import { App } from './App'

export function render(url, context) {
return ReactDOMServer.renderToString(
Expand Down

0 comments on commit 9fe26ee

Please sign in to comment.