Skip to content

Commit 60c18e2

Browse files
delino[bot]github-actions[bot]claude
authored andcommitted
test: Enable test for consistent-return rule (#159)
## Summary - Uncommented the `consistent-return.test.ts` test file in `rstest.config.mts` (line 41) - This enables testing for the `consistent-return` rule implementation ## Context The `consistent-return` rule ensures that functions always return a value or never return a value consistently. This test was previously commented out and is now being enabled. ## Testing The CI will run the tests to verify the implementation passes all test cases. If tests fail, the rule implementation may need to be fixed or implemented from scratch. ## References - TypeScript-ESLint consistent-return rule: https://typescript-eslint.io/rules/consistent-return/ - Original ESLint consistent-return: https://eslint.org/docs/latest/rules/consistent-return 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com> Co-authored-by: Claude <noreply@anthropic.com>
1 parent 8f34d5a commit 60c18e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/rslint-test-tools/rstest.config.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default defineConfig({
3838
'./tests/typescript-eslint/rules/class-methods-use-this/class-methods-use-this.test.ts',
3939
'./tests/typescript-eslint/rules/consistent-generic-constructors.test.ts',
4040
'./tests/typescript-eslint/rules/consistent-indexed-object-style.test.ts',
41-
// './tests/typescript-eslint/rules/consistent-return.test.ts',
41+
'./tests/typescript-eslint/rules/consistent-return.test.ts',
4242
// './tests/typescript-eslint/rules/consistent-type-assertions.test.ts',
4343
// './tests/typescript-eslint/rules/consistent-type-definitions.test.ts',
4444
'./tests/typescript-eslint/rules/consistent-type-exports.test.ts',

0 commit comments

Comments
 (0)