react/compiler/packages
Niklas Holm ada8bbbd6a
[eslint-plugin-react-compiler] Fix type error with recommended config (#32666)
## Summary

In the recommended configuration for `eslint-plugin-react-compiler`,
i.e. `reactCompiler.configs.recommended`, the rule is typed as `string`
rather than `eslint.Linter.RuleEntry` or anything assignable thereto,
which results in the following type error if you type check your eslint
configuration:
```
Property ''react-compiler/react-compiler'' is incompatible with index signature.
  Type 'string' is not assignable to type 'RuleEntry | undefined'.
```
Simply adding a const assertion fixes the error.

## How did you test this change?

I emitted declarations for the module and confirmed that the rule is now
typed as the string literal `'error'`
2025-03-19 14:58:08 -04:00
..
babel-plugin-react-compiler [compiler] Hoist dependencies from functions more conservatively (#32616) 2025-03-18 18:00:08 -04:00
eslint-plugin-react-compiler [eslint-plugin-react-compiler] Fix type error with recommended config (#32666) 2025-03-19 14:58:08 -04:00
make-read-only-util [compiler] Migrate compiler packages to tsup (#32550) 2025-03-07 16:41:55 -05:00
react-compiler-healthcheck fix: clarify which mobx libs are not compatible with compiler (#32570) 2025-03-13 11:46:26 -04:00
react-compiler-runtime [rcr] Fix incorrect output platform (#32569) 2025-03-11 10:41:48 -04:00
react-forgive [forgive][ez] Ignore test file (#32477) 2025-02-25 19:09:21 -05:00
snap [compiler] Hoist dependencies from functions more conservatively (#32616) 2025-03-18 18:00:08 -04:00