Documentation ¶
Index ¶
- Variables
- func GenerateAllRules(...) ([]*extensionConfig.Imports, []*rule.Rule)
- func MakeJSLibraryRules(args RuleArgs, webConfig *extensionConfig.WebConfig) ([]*extensionConfig.Imports, []*rule.Rule)
- func MakeJSTestRules(args RuleArgs, webConfig *extensionConfig.WebConfig) ([]*extensionConfig.Imports, []*rule.Rule)
- func MakeTSProjectRules(args RuleArgs, webConfig *extensionConfig.WebConfig) ([]*extensionConfig.Imports, []*rule.Rule)
- type BaseRuleArgs
- type IdentifiedImports
- type IdentifiedSources
- type RuleArgs
Constants ¶
This section is empty.
Variables ¶
View Source
var ENABLED_RULES = []func(RuleArgs, *extensionConfig.WebConfig) ([]*extensionConfig.Imports, []*rule.Rule){ MakeJSLibraryRules, MakeJSTestRules, MakeTSProjectRules, }
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 IdentifiedImports ¶
type IdentifiedImports struct { Javascript []extensionConfig.Imports JavascriptTests []extensionConfig.Imports Typescript []extensionConfig.Imports TypescriptTests []extensionConfig.Imports }
type IdentifiedSources ¶
type RuleArgs ¶
type RuleArgs struct { Sources IdentifiedSources Imports IdentifiedImports Rel string }
Click to show internal directories.
Click to hide internal directories.