Commit 4f39e008 authored by Steven's avatar Steven

chore: fix lint

parent b770042a
...@@ -24,12 +24,9 @@ jobs: ...@@ -24,12 +24,9 @@ jobs:
cache-dependency-path: "web/pnpm-lock.yaml" cache-dependency-path: "web/pnpm-lock.yaml"
- run: pnpm install - run: pnpm install
working-directory: web working-directory: web
- name: Run eslint check - name: Run check
run: pnpm lint run: pnpm lint
working-directory: web working-directory: web
- name: Run type checks
run: pnpm type-check
working-directory: web
frontend-build: frontend-build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
......
This diff is collapsed.
...@@ -4,8 +4,7 @@ ...@@ -4,8 +4,7 @@
"dev": "vite", "dev": "vite",
"build": "vite build", "build": "vite build",
"release": "vite build --mode release --outDir=../server/router/frontend/dist --emptyOutDir", "release": "vite build --mode release --outDir=../server/router/frontend/dist --emptyOutDir",
"lint": "eslint --ext .js,.ts,.tsx, src", "lint": "tsc --noEmit --skipLibCheck && eslint --ext .js,.ts,.tsx, src",
"type-check": "tsc --noEmit --skipLibCheck",
"postinstall": "cd ../proto && buf generate" "postinstall": "cd ../proto && buf generate"
}, },
"dependencies": { "dependencies": {
......
...@@ -70,7 +70,7 @@ interface Props { ...@@ -70,7 +70,7 @@ interface Props {
const Renderer: React.FC<Props> = ({ index, node }: Props) => { const Renderer: React.FC<Props> = ({ index, node }: Props) => {
switch (node.type) { switch (node.type) {
case NodeType.LINE_BREAK: case NodeType.LINE_BREAK:
return <LineBreak index={index} />; return <LineBreak />;
case NodeType.PARAGRAPH: case NodeType.PARAGRAPH:
return <Paragraph index={index} {...(node.paragraphNode as ParagraphNode)} />; return <Paragraph index={index} {...(node.paragraphNode as ParagraphNode)} />;
case NodeType.CODE_BLOCK: case NodeType.CODE_BLOCK:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment