ant-design / ant-design/ant-design-cli

antd lint rejects multiple file paths despite documented usage

Open Beginner friendly
#236 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
257
Forks
15
Avg merge
1h 46m
Merged PRs (30d)
5

Description

### Description

The antd CLI lint command errors when given multiple file paths, although the documented lint workflow implies a path argument can target changed paths. Single-file invocations work.

### Steps to Reproduce

1. Run: antd lint src/pages/Recruitment/ResumeDetail/components/ResumeDetailContent.tsx src/pages/Recruitment/ResumeDetail/components/ResumeInfoTab.tsx --format json

### Expected Behavior

Lint all supplied paths and return JSON

### Actual Behavior

error: too many arguments for 'lint'. Expected 1 argument but got 3

### Environment

| Info | Value |
|------|-------|
| @ant-design/cli | 6.6.2 |
| Node | v26.7.0 |
| System | darwin 25.6.0 |

---
Generated by [@ant-design/cli](https://github.com/ant-design/ant-design-cli)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the @ant-design/cli lint command entry point and reproduce the documented multi-path invocation with the two provided TypeScript files. Trace how positional paths are parsed, then verify that all supplied paths are linted and JSON output still works while single-file usage remains unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
72/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.