jsx_uses_react

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2026 License: MIT, MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var JsxUsesReactRule = rule.Rule{
	Name: "react/jsx-uses-react",
	Run: func(ctx rule.RuleContext, options any) rule.RuleListeners {
		return rule.RuleListeners{}
	},
}

JsxUsesReactRule is a no-op in rslint.

In ESLint, this rule prevents React from being marked as unused when JSX is used, since ESLint's no-unused-vars rule does not understand that JSX implicitly references React. In rslint, the TypeScript type checker already tracks JSX factory usage and correctly marks React as used, so this rule is unnecessary. It exists only for configuration compatibility.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL