jsx_uses_vars

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

JsxUsesVarsRule is a no-op in rslint.

In ESLint, this rule prevents variables used in JSX from being marked as unused by the no-unused-vars rule, since ESLint does not natively understand JSX component references. In rslint, the TypeScript type checker already tracks all JSX references and correctly marks variables 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