Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions cmd/rslint/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
rslintconfig "github.com/typescript-eslint/rslint/internal/config"
"github.com/typescript-eslint/rslint/internal/linter"
"github.com/typescript-eslint/rslint/internal/rule"
"github.com/typescript-eslint/rslint/internal/rules/array_type"
"github.com/typescript-eslint/rslint/internal/rules/await_thenable"
"github.com/typescript-eslint/rslint/internal/rules/no_array_delete"
"github.com/typescript-eslint/rslint/internal/rules/no_base_to_string"
Expand Down Expand Up @@ -98,6 +99,7 @@ func (h *IPCHandler) HandleLint(req ipc.LintRequest) (*ipc.LintResponse, error)

// Create rules
var rules = []rule.Rule{
array_type.ArrayTypeRule,
await_thenable.AwaitThenableRule,
no_array_delete.NoArrayDeleteRule,
no_base_to_string.NoBaseToStringRule,
Expand Down
3 changes: 3 additions & 0 deletions internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package config

import (
"github.com/typescript-eslint/rslint/internal/rule"
"github.com/typescript-eslint/rslint/internal/rules/array_type"
"github.com/typescript-eslint/rslint/internal/rules/await_thenable"
"github.com/typescript-eslint/rslint/internal/rules/no_array_delete"
"github.com/typescript-eslint/rslint/internal/rules/no_base_to_string"
Expand Down Expand Up @@ -214,6 +215,8 @@ func (config RslintConfig) GetRulesForFile(filePath string) map[string]*RuleConf

// RegisterAllTypeSriptEslintPluginRules registers all available rules in the global registry
func RegisterAllTypeSriptEslintPluginRules() {
GlobalRuleRegistry.Register("@typescript-eslint/array-type", array_type.ArrayTypeRule)
GlobalRuleRegistry.Register("array-type", array_type.ArrayTypeRule)
GlobalRuleRegistry.Register("@typescript-eslint/await-thenable", await_thenable.AwaitThenableRule)
GlobalRuleRegistry.Register("@typescript-eslint/no-array-delete", no_array_delete.NoArrayDeleteRule)
GlobalRuleRegistry.Register("@typescript-eslint/no-base-to-string", no_base_to_string.NoBaseToStringRule)
Expand Down
Loading