fix: enable 8 more typescript-eslint JS tests and fix 5 rule implementations#472
fix: enable 8 more typescript-eslint JS tests and fix 5 rule implementations#472
Conversation
Summary of ChangesHello @fansenze, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly enhances the linting infrastructure by expanding test coverage, correcting existing rule implementations, and providing comprehensive documentation for a large set of lint rules. These changes improve the accuracy and maintainability of the linter, making it more robust and easier to understand for developers. Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request is a significant contribution that adds documentation for approximately 100 linting rules, enables 8 more test files, and fixes several Go rule implementations. The fixes in the Go rules for consistent_type_definitions, no_extraneous_class, no_redundant_type_constituents, no_unsafe_member_access, and unbound_method are solid improvements, increasing the linter's robustness and correctness. The update to the rule-tester to propagate languageOptions is also a welcome enhancement. The new documentation is extensive; I've included one minor suggestion to improve link formatting, which applies to all new documentation files.
cd52ea6 to
db0e2f4
Compare
…t rules Add markdown documentation files for ~100 lint rules covering: - 17 ESLint core rules (no-debugger, no-const-assign, etc.) - ~80 @typescript-eslint rules (no-explicit-any, no-floating-promises, etc.) - 2 eslint-plugin-import rules (no-self-import, no-webpack-loader-syntax) Each doc includes rule description, correct/incorrect code examples, and link to the original upstream documentation.
db0e2f4 to
f403c64
Compare
…tations Enable 8 previously disabled test files (43 -> 51 total): - consistent-type-definitions, no-confusing-void-expression - no-extraneous-class, no-for-in-array, no-redundant-type-constituents - no-unsafe-member-access, no-unsafe-return, no-unnecessary-template-expression - no-unsafe-call, no-unsafe-type-assertion, non-nullable-type-assertion-style Go rule fixes: - consistent_type_definitions: report at identifier, use SkipTypeParentheses() - no_extraneous_class: add extends check, fix onlyStatic condition - no_redundant_type_constituents: add SkipTypeParentheses() for type nodes - no_unsafe_member_access: apply SkipParentheses() for ElementAccessExpression - unbound_method: fix JSON options parsing for ignoreStatic Rule-tester fix: - Propagate constructor languageOptions to individual test cases as default Test adjustments: - no-unsafe-type-assertion: remove column/endColumn from error objects - non-nullable-type-assertion-style: skip noUncheckedIndexedAccess edge case - no-unsafe-member-access: use function call instead of console.log
f403c64 to
e58a107
Compare
Summary
Rule Fixes
SkipTypeParentheses()extendscheck, fixonlyStaticconditionSkipTypeParentheses()for type nodesSkipParentheses()for ElementAccessExpressionignoreStaticNewly Enabled Tests
consistent-type-definitions, no-confusing-void-expression, no-extraneous-class, no-for-in-array, no-redundant-type-constituents, no-unsafe-member-access, no-unsafe-return, no-unnecessary-template-expression, no-unsafe-call, no-unsafe-type-assertion, non-nullable-type-assertion-style
Related Links
Checklist