Skip to content

[Bug]: An unexpected space after --fix #280

@ulivz

Description

@ulivz

System Info

System:
OS: macOS 15.4.1
CPU: (10) arm64 Apple M1 Max
Memory: 186.78 MB / 64.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 22.15.0 - ~/.nvm/versions/node/v22.15.0/bin/node
npm: 11.4.2 - ~/.nvm/versions/node/v22.15.0/bin/npm
pnpm: 9.15.9 - ~/Library/pnpm/pnpm
Browsers:
Chrome: 139.0.7258.68
Safari: 18.4

Details

When I integrate rslint at bytedance/UI-TARS-desktop#1144 ,⚡ It's fast! but encountered an unexpected leftover whitespace that should have been removed.

Image

Source Code:

  if (!isZodSchema(schema)) {
    return schema as JSONSchema;
  }

Formatted Result

  if (!isZodSchema(schema)) {
    return schema  ;
  }

Expected Result

  if (!isZodSchema(schema)) {
    return schema;
  }

Reproduce link

No response

Reproduce Steps

git clone https://github.com/bytedance/UI-TARS-desktop
git checkout 3e487dd78f8e37d15fd24f735efe192666825d29
cd multimodal

pnpm install --prefer-offline && pnpm run build
cd tarko/agent
pnpm lint:fix

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions