Skip to content

Add local eslint rule to validate markdown codeblocks with React Compiler #3181

Add local eslint rule to validate markdown codeblocks with React Compiler

Add local eslint rule to validate markdown codeblocks with React Compiler #3181

Triggered via pull request September 17, 2025 01:35
@potetopoteto
synchronize #7988
pr7988
Status Failure
Total duration 1m 3s
Artifacts

site_lint.yml

on: pull_request
Lint on node 20.x and ubuntu-latest
53s
Lint on node 20.x and ubuntu-latest
Fit to window
Zoom out
Zoom in

Annotations

10 errors
Lint on node 20.x and ubuntu-latest: src/content/learn/preserving-and-resetting-state.md#L714
React Compiler error in code block: Hooks must be called at the top level in the body of a function component or custom hook, and may not be called within function expressions. See the Rules of Hooks (https://react.dev/warnings/invalid-hook-call-warning)
Lint on node 20.x and ubuntu-latest: src/content/learn/lifecycle-of-reactive-effects.md#L1385
React Compiler error in code block: React Compiler has skipped optimizing this component because one or more React ESLint rules were disabled
Lint on node 20.x and ubuntu-latest: src/content/learn/lifecycle-of-reactive-effects.md#L1150
React Compiler error in code block: React Compiler has skipped optimizing this component because one or more React ESLint rules were disabled
Lint on node 20.x and ubuntu-latest: src/content/learn/keeping-components-pure.md#L809
React Compiler error in code block: This value cannot be modified
Lint on node 20.x and ubuntu-latest: src/content/learn/keeping-components-pure.md#L717
React Compiler error in code block: This value cannot be modified
Lint on node 20.x and ubuntu-latest: src/content/learn/keeping-components-pure.md#L621
React Compiler error in code block: This value cannot be modified
Lint on node 20.x and ubuntu-latest: src/content/learn/keeping-components-pure.md#L390
React Compiler error in code block: Cannot reassign variables declared outside of the component/hook
Lint on node 20.x and ubuntu-latest: src/content/learn/keeping-components-pure.md#L101
React Compiler error in code block: Cannot reassign variables declared outside of the component/hook
Lint on node 20.x and ubuntu-latest: src/content/learn/escape-hatches.md#L212
React Compiler error in code block: Values derived from props and state should be calculated during render, not in an effect. (https://react.dev/learn/you-might-not-need-an-effect#updating-state-based-on-props-or-state)
Lint on node 20.x and ubuntu-latest: src/content/learn/describing-the-ui.md#L482
React Compiler error in code block: Cannot reassign variables declared outside of the component/hook