Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .pkgs/configs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@eslint/js": "^9.24.0",
"@stylistic/eslint-plugin": "^4.2.0",
"eslint-plugin-de-morgan": "^1.2.1",
"eslint-plugin-function": "^0.0.16",
"eslint-plugin-function": "^0.0.18",
"eslint-plugin-jsdoc": "^50.6.9",
"eslint-plugin-perfectionist": "^4.11.0",
"eslint-plugin-regexp": "^2.7.0",
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.47.2
1.47.3-next.0
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eslint-react/monorepo",
"version": "1.47.2",
"version": "1.47.3-next.0",
"private": true,
"description": "Monorepo for eslint-plugin-react-[x, dom, web-api, hooks-extra, naming-convention].",
"keywords": [
Expand Down Expand Up @@ -56,7 +56,7 @@
"@eslint/markdown": "^6.3.0",
"@local/configs": "workspace:*",
"@local/eslint-plugin-local": "workspace:*",
"@swc/core": "^1.11.20",
"@swc/core": "^1.11.21",
"@tsconfig/node22": "^22.0.1",
"@tsconfig/strictest": "^2.0.5",
"@types/node": "^22.14.1",
Expand Down Expand Up @@ -95,7 +95,7 @@
"typescript-eslint": "^8.29.1",
"vitest": "^3.1.1"
},
"packageManager": "pnpm@10.8.0",
"packageManager": "pnpm@10.8.1",
"engines": {
"node": ">=18.18.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eslint-react/core",
"version": "1.47.2",
"version": "1.47.3-next.0",
"description": "ESLint React's ESLint utility module for static analysis of React core APIs and patterns.",
"homepage": "https://github.com/Rel1cx/eslint-react",
"bugs": {
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/eslint-plugin-react-debug/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-plugin-react-debug",
"version": "1.47.2",
"version": "1.47.3-next.0",
"description": "ESLint React's ESLint plugin for debugging related rules.",
"keywords": [
"react",
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/eslint-plugin-react-dom/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-plugin-react-dom",
"version": "1.47.2",
"version": "1.47.3-next.0",
"description": "ESLint React's ESLint plugin for React DOM related rules.",
"keywords": [
"react",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-plugin-react-hooks-extra",
"version": "1.47.2",
"version": "1.47.3-next.0",
"description": "ESLint React's ESLint plugin for React Hooks related rules.",
"keywords": [
"react",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-plugin-react-naming-convention",
"version": "1.47.2",
"version": "1.47.3-next.0",
"description": "ESLint React's ESLint plugin for naming convention related rules.",
"keywords": [
"react",
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/eslint-plugin-react-web-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-plugin-react-web-api",
"version": "1.47.2",
"version": "1.47.3-next.0",
"description": "ESLint React's ESLint plugin for interacting with Web APIs",
"keywords": [
"react",
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/eslint-plugin-react-x/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-plugin-react-x",
"version": "1.47.2",
"version": "1.47.3-next.0",
"description": "A set of composable ESLint rules for for libraries and frameworks that use React as a UI runtime.",
"keywords": [
"react",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,9 @@ react-x/no-leaked-conditional-rendering

## Description

Prevents bugs caused by rendering values like `0`, `NaN`, or `""` in JSX when using the `&&` operator. These values are falsy in JavaScript, but React may still attempt to render them, leading to:
Prevents problematic leaked values from being rendered.

- Unexpected UI output: For example, `{0 && <div />}` renders `0` in the DOM instead of nothing.
- Crashes in React Native: Rendering `NaN`, `0`, or `""` can cause runtime crashes in versions before React 18.
Using the `&&` operator to render some element conditionally in JSX can cause unexpected values being rendered, or even crashing the rendering.

## Examples

Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/eslint-plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eslint-react/eslint-plugin",
"version": "1.47.2",
"version": "1.47.3-next.0",
"description": "A unified plugin that combines all individual plugins from the eslint-react monorepo into one.",
"keywords": [
"react",
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eslint-react/shared",
"version": "1.47.2",
"version": "1.47.3-next.0",
"description": "ESLint React's Shared constants and functions.",
"homepage": "https://github.com/Rel1cx/eslint-react",
"bugs": {
Expand Down
2 changes: 1 addition & 1 deletion packages/utilities/ast/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eslint-react/ast",
"version": "1.47.2",
"version": "1.47.3-next.0",
"description": "ESLint React's TSESTree AST utility module.",
"homepage": "https://github.com/Rel1cx/eslint-react",
"bugs": {
Expand Down
2 changes: 1 addition & 1 deletion packages/utilities/eff/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eslint-react/eff",
"version": "1.47.2",
"version": "1.47.3-next.0",
"description": "JavaScript and TypeScript utilities (previously some re-exports of the effect library).",
"homepage": "https://github.com/Rel1cx/eslint-react",
"bugs": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
- [COMPONENT\_NAME\_LOOSE](variables/COMPONENT_NAME_LOOSE.md)
- [CONSTANT\_CASE](variables/CONSTANT_CASE.md)
- [HOOK\_NAME](variables/HOOK_NAME.md)
- [HTML\_TAG](variables/HTML_TAG.md)
- [JAVASCRIPT\_PROTOCOL](variables/JAVASCRIPT_PROTOCOL.md)
- [JS\_EXT](variables/JS_EXT.md)
- [JS\_IDENTIFIER](variables/JS_IDENTIFIER.md)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[**@eslint-react/kit**](../../../../README.md)

***

[@eslint-react/kit](../../../../README.md) / [RE](../README.md) / HTML\_TAG

# Variable: HTML\_TAG

> `const` **HTML\_TAG**: [`RegExp`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RegExp)

Regular expressions for matching a HTML tag name
2 changes: 1 addition & 1 deletion packages/utilities/kit/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eslint-react/kit",
"version": "1.47.2",
"version": "1.47.3-next.0",
"description": "ESLint React's plugin kit for building plugins and rules.",
"homepage": "https://github.com/Rel1cx/eslint-react",
"bugs": {
Expand Down
2 changes: 1 addition & 1 deletion packages/utilities/var/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eslint-react/var",
"version": "1.47.2",
"version": "1.47.3-next.0",
"description": "ESLint React's TSESTree AST utility module for static analysis of variables.",
"homepage": "https://github.com/Rel1cx/eslint-react",
"bugs": {
Expand Down
Loading
Loading