Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Duplicate Rule Update eslintrc.js #833

Closed
wants to merge 1 commit into from

Conversation

0xbryer
Copy link

@0xbryer 0xbryer commented Nov 17, 2024

Issue: Duplicate Rule for @typescript-eslint/return-await

In the current ESLint configuration, the rule @typescript-eslint/return-await is defined twice. This duplication leads to redundancy in the configuration, which can potentially cause confusion or make the configuration less maintainable.

Solution:
I have removed the duplicate instance of the @typescript-eslint/return-await rule. By keeping only one instance of the rule, we ensure that the configuration is more concise and easier to maintain, without any unnecessary repetition.

Importance:
Removing the redundant rule is important because it prevents the configuration from being unnecessarily verbose and helps avoid potential issues with conflicting rule settings. A clean and precise configuration improves the readability and maintainability of the project’s code quality settings.

Duplicate Rule for @typescript-eslint/return-await
Copy link
Contributor

@zoeyTM zoeyTM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two changes requested then this can be merged. Thanks!

@@ -174,7 +174,7 @@ module.exports = {
},
],
"@typescript-eslint/unified-signatures": "error",
"@typescript-eslint/return-await": "error",
"@typescript-eslint/return-await": "error", // keeping this line only
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment is unnecessary, please remove.

Suggested change
"@typescript-eslint/return-await": "error", // keeping this line only
"@typescript-eslint/return-await": "error",

@@ -216,8 +216,6 @@ module.exports = {
"no-new-func": "error",
"no-new-wrappers": "error",
"no-only-tests/no-only-tests": "error",
"no-return-await": "off",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This rule is not a duplicate, please add it back.

@zoeyTM
Copy link
Contributor

zoeyTM commented Nov 22, 2024

Thanks for the PR but after looking into it further, this change doesn’t seem to add much value to the project, and it looks like it might be part of automated activity. If that’s not the case, let us know, and we’ll take another look.

@zoeyTM zoeyTM closed this Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants