no_self_import

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NoSelfImportRule = rule.Rule{
	Name: "import/no-self-import",
	Run: func(ctx rule.RuleContext, options any) rule.RuleListeners {
		return utils.VisitModules(func(source, node *ast.Node) {
			isImportingSelf(ctx, source, node)
		}, utils.VisitModulesOptions{
			Commonjs: true,
			ESModule: true,
		})
	},
}

See: https://github.com/import-js/eslint-plugin-import/blob/01c9eb04331d2efa8d63f2d7f4bfec3bc44c94f3/src/rules/no-self-import.js

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