jsx_uses_react

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 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 (eslint-plugin-react) marks the JSX pragma as used whenever JSX appears, so no-unused-vars does not flag it. rslint handles the default pragma inside no-unused-vars itself: markJsxFactoryUsed marks the JSX factory import (default "React", or the tsconfig `jsxFactory`) as used whenever a file contains JSX, in any jsx runtime — matching @typescript-eslint/parser's `jsxPragma` baseline. So this rule is redundant for the default pragma and exists only for configuration compatibility.

Known gap: a custom pragma declared via an `@jsx X` comment or `settings.react.pragma` is not marked as used (rslint has no cross-rule "mark as used" channel yet), so such an import may still be reported as unused even with this rule enabled.

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