Skip to content

Conversation

@nafistiham
Copy link
Collaborator

This commit removes expectedErrors metadata from code block fences that were incorrectly added during the sync process. These annotations (e.g., {expectedErrors: {'react-compiler': [5]}}) were meant to document expected compiler diagnostics, but the React Compiler is not actually reporting errors on those lines.

The upstream English react.dev repository does not have these annotations either, confirming they should not be present in the Bengali translation.

Changes made:

  • Ran yarn lint:fix to auto-fix all expectedErrors mismatches
  • 34 markdown files updated (79 lines changed)
  • Only code fence metadata modified - no translation content affected
  • All Bengali translations remain completely intact

This fixes the site_lint CI check that was failing due to: "React Compiler expected error on line X was not triggered"

The ESLint local rules plugin validates that expectedErrors annotations match actual compiler diagnostics. When errors aren't triggered, the annotations are automatically removed to maintain accuracy.

This commit removes expectedErrors metadata from code block fences that
were incorrectly added during the sync process. These annotations
(e.g., {expectedErrors: {'react-compiler': [5]}}) were meant to document
expected compiler diagnostics, but the React Compiler is not actually
reporting errors on those lines.

The upstream English react.dev repository does not have these annotations
either, confirming they should not be present in the Bengali translation.

Changes made:
- Ran `yarn lint:fix` to auto-fix all expectedErrors mismatches
- 34 markdown files updated (79 lines changed)
- Only code fence metadata modified - no translation content affected
- All Bengali translations remain completely intact

This fixes the site_lint CI check that was failing due to:
"React Compiler expected error on line X was not triggered"

The ESLint local rules plugin validates that expectedErrors annotations
match actual compiler diagnostics. When errors aren't triggered, the
annotations are automatically removed to maintain accuracy.
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.

1 participant