Skip to content

Commit 15c077d

Browse files
feat: Dot notation (#240)
1 parent d232bc0 commit 15c077d

File tree

9 files changed

+1117
-287
lines changed

9 files changed

+1117
-287
lines changed

CLAUDE.md

Lines changed: 0 additions & 281 deletions
This file was deleted.

cmd/rslint/api.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,18 +229,18 @@ func (h *IPCHandler) HandleApplyFixes(req api.ApplyFixesRequest) (*api.ApplyFixe
229229
code := req.FileContent
230230
outputs := []string{}
231231
wasFixed := false
232-
232+
233233
// Apply fixes iteratively to handle overlapping fixes
234234
for {
235235
fixedContent,unapplied, fixed := linter.ApplyRuleFixes(code, ruleDiagnostics)
236236
if !fixed {
237237
break
238238
}
239-
239+
240240
outputs = append(outputs, fixedContent)
241241
code = fixedContent
242242
wasFixed = true
243-
243+
244244
// Update diagnostics to only include unapplied ones for next iteration
245245
ruleDiagnostics = unapplied
246246
if len(ruleDiagnostics) == 0 {

internal/config/config.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ import (
6161
"github.com/web-infra-dev/rslint/internal/plugins/typescript/rules/unbound_method"
6262
"github.com/web-infra-dev/rslint/internal/plugins/typescript/rules/use_unknown_in_catch_callback_variable"
6363
"github.com/web-infra-dev/rslint/internal/rule"
64+
"github.com/web-infra-dev/rslint/internal/rules/dot_notation"
6465
)
6566

6667
// RslintConfig represents the top-level configuration array
@@ -310,6 +311,7 @@ func registerAllTypeScriptEslintPluginRules() {
310311
GlobalRuleRegistry.Register("@typescript-eslint/array-type", array_type.ArrayTypeRule)
311312
GlobalRuleRegistry.Register("@typescript-eslint/await-thenable", await_thenable.AwaitThenableRule)
312313
GlobalRuleRegistry.Register("@typescript-eslint/class-literal-property-style", class_literal_property_style.ClassLiteralPropertyStyleRule)
314+
GlobalRuleRegistry.Register("@typescript-eslint/dot-notation", dot_notation.DotNotationRule)
313315
GlobalRuleRegistry.Register("@typescript-eslint/no-array-delete", no_array_delete.NoArrayDeleteRule)
314316
GlobalRuleRegistry.Register("@typescript-eslint/no-base-to-string", no_base_to_string.NoBaseToStringRule)
315317
GlobalRuleRegistry.Register("@typescript-eslint/no-confusing-void-expression", no_confusing_void_expression.NoConfusingVoidExpressionRule)

0 commit comments

Comments
 (0)