From 33aa7032c6a594e1d0d524b759b568064bda74c2 Mon Sep 17 00:00:00 2001 From: "claude[bot]" <41898282+claude[bot]@users.noreply.github.com> Date: Fri, 26 Dec 2025 11:35:10 +0000 Subject: [PATCH] feat: enable ban-ts-comment rule test in rstest config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit enables the ban-ts-comment rule test in the rslint test suite. The rule implementation already exists in internal/plugins/typescript/rules/ban_ts_comment/ and all Go tests pass successfully. Changes: - Enable ban-ts-comment.test.ts in rstest.config.mts The ban-ts-comment rule enforces restrictions on TypeScript directive comments (@ts-ignore, @ts-expect-error, @ts-check, @ts-nocheck) and supports: - Banning directives completely - Requiring descriptions with minimum length - Custom description format validation via regex - Proper Unicode character handling 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- packages/rslint-test-tools/rstest.config.mts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/rslint-test-tools/rstest.config.mts b/packages/rslint-test-tools/rstest.config.mts index d42c3e336..92de61294 100644 --- a/packages/rslint-test-tools/rstest.config.mts +++ b/packages/rslint-test-tools/rstest.config.mts @@ -32,7 +32,7 @@ export default defineConfig({ // Additional tests (commented out) // typescript-eslint - additional rules - // './tests/typescript-eslint/rules/ban-ts-comment.test.ts', + './tests/typescript-eslint/rules/ban-ts-comment.test.ts', // './tests/typescript-eslint/rules/ban-tslint-comment.test.ts', // './tests/typescript-eslint/rules/class-methods-use-this/class-methods-use-this-core.test.ts', // './tests/typescript-eslint/rules/class-methods-use-this/class-methods-use-this.test.ts',