Skip to content
Merged
Changes from 2 commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/guide/monorepo.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default defineConfig({
overrides: [
{
files: ['apps/web/**', 'packages/ui/**'],
plugins: ['typescript', 'react'],
plugins: ['react'],
rules: {
'react/self-closing-comp': 'error',
},
Expand All @@ -40,7 +40,7 @@ export default defineConfig({
},
{
files: ['**/*.test.ts', '**/*.spec.ts'],
plugins: ['typescript', 'vitest'],
plugins: ['vitest'],
rules: {
'@typescript-eslint/no-explicit-any': 'off',
Comment thread
liangmiQwQ marked this conversation as resolved.
Outdated
'vitest/no-disabled-tests': 'error',
Expand All @@ -54,7 +54,7 @@ export default defineConfig({
Globs are resolved from the root `vite.config.ts`, so use workspace paths such as `apps/web/**`, `apps/api/**`, and `packages/ui/**`.

::: 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.
Comment thread
fengmk2 marked this conversation as resolved.
:::

## Format Overrides
Expand Down
Loading