Skip to content

Conversation

@jaskp
Copy link
Collaborator

@jaskp jaskp commented Dec 11, 2025

Underscores are allowed in React component names unless they're leading.

@ArnaudBarre
Copy link
Owner

It's true that they are allowed, the current regex is stricter than the one use by the react refresh runtime because at the beginning I was not checking the type of the right side of variable declaration. I'll check this weekend if this is safe to do just ^[A-Z] like the runtime

@ArnaudBarre ArnaudBarre merged commit 0397bde into ArnaudBarre:main Dec 14, 2025
1 check passed
736-c41-2c1-e464fc974 added a commit to Swiss-Armed-Forces/Loom that referenced this pull request Dec 30, 2025
This MR contains the following updates:

| Package | Type | Update | Change | OpenSSF |
|---|---|---|---|---|
| [@eslint/eslintrc](https://github.com/eslint/eslintrc) | devDependencies | patch | [`3.3.1` → `3.3.3`](https://renovatebot.com/diffs/npm/@eslint%2feslintrc/3.3.1/3.3.3) | [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/eslint/eslintrc/badge)](https://securityscorecards.dev/viewer/?uri=github.com/eslint/eslintrc) |
| [@mui/types](https://github.com/mui/material-ui/tree/master/packages/mui-types) ([source](https://github.com/mui/material-ui/tree/HEAD/packages/mui-types)) | devDependencies | patch | [`7.4.8` → `7.4.9`](https://renovatebot.com/diffs/npm/@mui%2ftypes/7.4.8/7.4.9) | [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/mui/material-ui/badge)](https://securityscorecards.dev/viewer/?uri=github.com/mui/material-ui) |
| [@testing-library/react](https://github.com/testing-library/react-testing-library) | devDependencies | patch | [`16.3.0` → `16.3.1`](https://renovatebot.com/diffs/npm/@testing-library%2freact/16.3.0/16.3.1) | [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/testing-library/react-testing-library/badge)](https://securityscorecards.dev/viewer/?uri=github.com/testing-library/react-testing-library) |
| [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node) ([source](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node)) | devDependencies | patch | [`24.10.0` → `24.10.4`](https://renovatebot.com/diffs/npm/@types%2fnode/24.10.0/24.10.4) | [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/DefinitelyTyped/DefinitelyTyped/badge)](https://securityscorecards.dev/viewer/?uri=github.com/DefinitelyTyped/DefinitelyTyped) |
| [eslint-plugin-react-refresh](https://github.com/ArnaudBarre/eslint-plugin-react-refresh) | devDependencies | patch | [`0.4.24` → `0.4.26`](https://renovatebot.com/diffs/npm/eslint-plugin-react-refresh/0.4.24/0.4.26) | [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/ArnaudBarre/eslint-plugin-react-refresh/badge)](https://securityscorecards.dev/viewer/?uri=github.com/ArnaudBarre/eslint-plugin-react-refresh) |

---

### Release Notes

<details>
<summary>eslint/eslintrc (@&#8203;eslint/eslintrc)</summary>

### [`v3.3.3`](https://github.com/eslint/eslintrc/blob/HEAD/CHANGELOG.md#333-2025-11-28)

[Compare Source](eslint/eslintrc@v3.3.1...fdb5298)

##### Bug Fixes

- release v3.3.3 because publishing v3.3.2 failed ([#&#8203;211](eslint/eslintrc#211)) ([8aa555a](eslint/eslintrc@8aa555a))

</details>

<details>
<summary>testing-library/react-testing-library (@&#8203;testing-library/react)</summary>

### [`v16.3.1`](https://github.com/testing-library/react-testing-library/releases/tag/v16.3.1)

[Compare Source](testing-library/react-testing-library@v16.3.0...v16.3.1)

##### Bug Fixes

- Switch to trusted publishing ([#&#8203;1437](testing-library/react-testing-library#1437)) ([a2d37ff](testing-library/react-testing-library@a2d37ff))

</details>

<details>
<summary>ArnaudBarre/eslint-plugin-react-refresh (eslint-plugin-react-refresh)</summary>

### [`v0.4.26`](https://github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/HEAD/CHANGELOG.md#0426)

[Compare Source](ArnaudBarre/eslint-plugin-react-refresh@v0.4.25...v0.4.26)

- Revert changes to fix [#&#8203;93](ArnaudBarre/eslint-plugin-react-refresh#93) (fixes [#&#8203;95](ArnaudBarre/eslint-plugin-react-refresh#95))

### [`v0.4.25`](https://github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/HEAD/CHANGELOG.md#0425)

[Compare Source](ArnaudBarre/eslint-plugin-react-refresh@v0.4.24...v0.4.25)

- Report cases like `export const ENUM = Object.keys(TABLE) as EnumType[];` (fixes [#&#8203;93](ArnaudBarre/eslint-plugin-react-refresh#93)) (reverted in 0.4.26)
- Allow `_` in component names ([#&#8203;94](ArnaudBarre/eslint-plugin-react-refresh#94))

</details>

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box

---

This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi4xMS4wIiwidXBkYXRlZEluVmVyIjoiNDIuNjguMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIiwicmVub3ZhdGUiXX0=-->

See merge request swiss-armed-forces/cyber-command/cea/loom!231

Co-authored-by: shrewd-laidback palace <shrewd-laidback-palace-736-c41-2c1-e464fc974@swiss-armed-forces-open-source.ch>
Co-authored-by: Loom MR Pipeline Trigger <group_103951964_bot_9504bb8dead6d4e406ad817a607f24be@noreply.gitlab.com>
736-c41-2c1-e464fc974 added a commit to Swiss-Armed-Forces/Loom that referenced this pull request Dec 30, 2025
chore(deps): update frontend dependencies (patch) (patch)

This MR contains the following updates:

| Package | Type | Update | Change | OpenSSF |
|---|---|---|---|---|
| [@eslint/eslintrc](https://github.com/eslint/eslintrc) | devDependencies | patch | [`3.3.1` → `3.3.3`](https://renovatebot.com/diffs/npm/@eslint%2feslintrc/3.3.1/3.3.3) | [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/eslint/eslintrc/badge)](https://securityscorecards.dev/viewer/?uri=github.com/eslint/eslintrc) |
| [@mui/types](https://github.com/mui/material-ui/tree/master/packages/mui-types) ([source](https://github.com/mui/material-ui/tree/HEAD/packages/mui-types)) | devDependencies | patch | [`7.4.8` → `7.4.9`](https://renovatebot.com/diffs/npm/@mui%2ftypes/7.4.8/7.4.9) | [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/mui/material-ui/badge)](https://securityscorecards.dev/viewer/?uri=github.com/mui/material-ui) |
| [@testing-library/react](https://github.com/testing-library/react-testing-library) | devDependencies | patch | [`16.3.0` → `16.3.1`](https://renovatebot.com/diffs/npm/@testing-library%2freact/16.3.0/16.3.1) | [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/testing-library/react-testing-library/badge)](https://securityscorecards.dev/viewer/?uri=github.com/testing-library/react-testing-library) |
| [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node) ([source](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node)) | devDependencies | patch | [`24.10.0` → `24.10.4`](https://renovatebot.com/diffs/npm/@types%2fnode/24.10.0/24.10.4) | [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/DefinitelyTyped/DefinitelyTyped/badge)](https://securityscorecards.dev/viewer/?uri=github.com/DefinitelyTyped/DefinitelyTyped) |
| [eslint-plugin-react-refresh](https://github.com/ArnaudBarre/eslint-plugin-react-refresh) | devDependencies | patch | [`0.4.24` → `0.4.26`](https://renovatebot.com/diffs/npm/eslint-plugin-react-refresh/0.4.24/0.4.26) | [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/ArnaudBarre/eslint-plugin-react-refresh/badge)](https://securityscorecards.dev/viewer/?uri=github.com/ArnaudBarre/eslint-plugin-react-refresh) |

---

### Release Notes

<details>
<summary>eslint/eslintrc (@&#8203;eslint/eslintrc)</summary>

### [`v3.3.3`](https://github.com/eslint/eslintrc/blob/HEAD/CHANGELOG.md#333-2025-11-28)

[Compare Source](eslint/eslintrc@v3.3.1...fdb5298)

##### Bug Fixes

- release v3.3.3 because publishing v3.3.2 failed ([#&#8203;211](eslint/eslintrc#211)) ([8aa555a](eslint/eslintrc@8aa555a))

</details>

<details>
<summary>testing-library/react-testing-library (@&#8203;testing-library/react)</summary>

### [`v16.3.1`](https://github.com/testing-library/react-testing-library/releases/tag/v16.3.1)

[Compare Source](testing-library/react-testing-library@v16.3.0...v16.3.1)

##### Bug Fixes

- Switch to trusted publishing ([#&#8203;1437](testing-library/react-testing-library#1437)) ([a2d37ff](testing-library/react-testing-library@a2d37ff))

</details>

<details>
<summary>ArnaudBarre/eslint-plugin-react-refresh (eslint-plugin-react-refresh)</summary>

### [`v0.4.26`](https://github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/HEAD/CHANGELOG.md#0426)

[Compare Source](ArnaudBarre/eslint-plugin-react-refresh@v0.4.25...v0.4.26)

- Revert changes to fix [#&#8203;93](ArnaudBarre/eslint-plugin-react-refresh#93) (fixes [#&#8203;95](ArnaudBarre/eslint-plugin-react-refresh#95))

### [`v0.4.25`](https://github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/HEAD/CHANGELOG.md#0425)

[Compare Source](ArnaudBarre/eslint-plugin-react-refresh@v0.4.24...v0.4.25)

- Report cases like `export const ENUM = Object.keys(TABLE) as EnumType[];` (fixes [#&#8203;93](ArnaudBarre/eslint-plugin-react-refresh#93)) (reverted in 0.4.26)
- Allow `_` in component names ([#&#8203;94](ArnaudBarre/eslint-plugin-react-refresh#94))

</details>

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box

---

This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi4xMS4wIiwidXBkYXRlZEluVmVyIjoiNDIuNjguMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIiwicmVub3ZhdGUiXX0=-->

See merge request swiss-armed-forces/cyber-command/cea/loom!231

Co-authored-by: Loom MR Pipeline Trigger <group_103951964_bot_9504bb8dead6d4e406ad817a607f24be@noreply.gitlab.com>
Co-authored-by: open-source Pipeline <group_90701827_bot_ed04ae348bc5f40af9966fb8b6867e99@noreply.gitlab.com>
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