Skip to content

Commit 5834382

Browse files
feat: enable explicit-function-return-type rule test
- Uncomment test file in rstest.config.mts - Implement explicit-function-return-type rule in Go - Add configuration options support for the rule 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent cbb5907 commit 5834382

File tree

3 files changed

+576
-1
lines changed

3 files changed

+576
-1
lines changed

internal/config/config.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import (
2626
"github.com/web-infra-dev/rslint/internal/plugins/typescript/rules/consistent_type_exports"
2727
"github.com/web-infra-dev/rslint/internal/plugins/typescript/rules/consistent_type_imports"
2828
"github.com/web-infra-dev/rslint/internal/plugins/typescript/rules/default_param_last"
29+
"github.com/web-infra-dev/rslint/internal/plugins/typescript/rules/explicit_function_return_type"
2930
"github.com/web-infra-dev/rslint/internal/plugins/typescript/rules/no_array_delete"
3031
"github.com/web-infra-dev/rslint/internal/plugins/typescript/rules/no_base_to_string"
3132
"github.com/web-infra-dev/rslint/internal/plugins/typescript/rules/no_confusing_void_expression"
@@ -380,6 +381,7 @@ func registerAllTypeScriptEslintPluginRules() {
380381
GlobalRuleRegistry.Register("@typescript-eslint/consistent-type-imports", consistent_type_imports.ConsistentTypeImportsRule)
381382
GlobalRuleRegistry.Register("@typescript-eslint/default-param-last", default_param_last.DefaultParamLastRule)
382383
GlobalRuleRegistry.Register("@typescript-eslint/dot-notation", dot_notation.DotNotationRule)
384+
GlobalRuleRegistry.Register("@typescript-eslint/explicit-function-return-type", explicit_function_return_type.ExplicitFunctionReturnTypeRule)
383385
GlobalRuleRegistry.Register("@typescript-eslint/no-array-delete", no_array_delete.NoArrayDeleteRule)
384386
GlobalRuleRegistry.Register("@typescript-eslint/no-base-to-string", no_base_to_string.NoBaseToStringRule)
385387
GlobalRuleRegistry.Register("@typescript-eslint/no-confusing-void-expression", no_confusing_void_expression.NoConfusingVoidExpressionRule)

0 commit comments

Comments
 (0)