generate

package
v0.0.0-...-a95bb51 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

TODO: process TS tests

Functions

func GenerateAllRules

func GenerateAllRules(availableRules []func(RuleArgs, *extensionConfig.WebConfig) ([]*extensionConfig.Imports, []*rule.Rule), args RuleArgs, webConfig *extensionConfig.WebConfig) ([]*extensionConfig.Imports, []*rule.Rule)

func MakeJSLibraryRules

func MakeJSLibraryRules(args RuleArgs, webConfig *extensionConfig.WebConfig) ([]*extensionConfig.Imports, []*rule.Rule)

func MakeJSTestRules

func MakeJSTestRules(args RuleArgs, webConfig *extensionConfig.WebConfig) ([]*extensionConfig.Imports, []*rule.Rule)

func MakeTSProjectRules

func MakeTSProjectRules(args RuleArgs, webConfig *extensionConfig.WebConfig) ([]*extensionConfig.Imports, []*rule.Rule)

Types

type BaseRuleArgs

type BaseRuleArgs struct {
	Kind    string
	Name    string
	Package string
}

type IdentifiedImports

type IdentifiedImports struct {
	Javascript      []extensionConfig.Imports
	JavascriptTests []extensionConfig.Imports
	Typescript      []extensionConfig.Imports
	TypescriptTests []extensionConfig.Imports
}

type IdentifiedSources

type IdentifiedSources struct {
	Javascript      []string
	Typescript      []string
	JavascriptTests []string
	TypescriptTests []string
}

type RuleArgs

type RuleArgs struct {
	Sources IdentifiedSources
	Imports IdentifiedImports
	Rel     string
}

Jump to

Keyboard shortcuts

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