Skip to content

docs: fix overrides behavior mismatch#1942

Open
liangmiQwQ wants to merge 12 commits into
voidzero-dev:mainfrom
liangmiQwQ:docs/fix-override-semantic-mismatch
Open

docs: fix overrides behavior mismatch#1942
liangmiQwQ wants to merge 12 commits into
voidzero-dev:mainfrom
liangmiQwQ:docs/fix-override-semantic-mismatch

Conversation

@liangmiQwQ

@liangmiQwQ liangmiQwQ commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator

@netlify

netlify Bot commented Jun 25, 2026

Copy link
Copy Markdown

Deploy Preview for viteplus-preview canceled.

Name Link
🔨 Latest commit 2bf7760
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/6a40d1179055b300085cd7fb

@liangmiQwQ liangmiQwQ requested a review from fengmk2 June 25, 2026 03:31
Comment thread docs/guide/monorepo.md Outdated
@fengmk2

fengmk2 commented Jun 25, 2026

Copy link
Copy Markdown
Member

Could you add a snap test as an example? This would ensure that our documentation and real-world behavior are continuously verifiable.

Alternatively, you could add your repository to the ecosystem-ci use cases.

@liangmiQwQ

Copy link
Copy Markdown
Collaborator Author

I've done with a snap test.

Comment thread docs/guide/monorepo.md

::: tip
When a `lint.overrides` entry sets `plugins`, that list replaces the base `lint.plugins` list for matched files. Include every plugin needed by that file group, such as `['typescript', 'react']`. Omit `plugins` only when the override should inherit the base list unchanged.
When a `lint.overrides` entry sets `plugins`, that list will be merged with the base `lint.plugins` list for matched files. Omit `plugins` only when the override should inherit the base list unchanged.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@camc314 So overrides config behave like extends instead of assign?
cc @cpojer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants