no_find_dom_node

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: MIT, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NoFindDomNodeRule = rule.Rule{
	Name: "react/no-find-dom-node",
	Run: func(ctx rule.RuleContext, options any) rule.RuleListeners {
		return rule.RuleListeners{
			ast.KindCallExpression: func(node *ast.Node) {
				callee := ast.SkipParentheses(node.AsCallExpression().Expression)
				if !matchesFindDOMNodeCallee(callee) {
					return
				}
				ctx.ReportNode(callee, rule.RuleMessage{
					Id:          "noFindDOMNode",
					Description: noFindDOMNodeMessage,
				})
			},
		}
	},
}

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