-
-
Notifications
You must be signed in to change notification settings - Fork 536
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
feat(linter): support allowable method diagnostic for eslint/no-console
#9350
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. |
CodSpeed Performance ReportMerging #9350 will not alter performanceComparing Summary
|
eslint/no-console
… configuration - Modified `no_console_diagnostic` function to add a list of allowed methods argument - Include the list of allowed console methods in the prompt message. - Updated diagnostic calls to support passing information about allowed methods.
…rules Refactored warning message construction logic in no_console rules to optimize message formatting when the allow list is empty.
- Replacing `Vec` references with slices to improve performance - Replace `to_string` with `String::new` to optimize empty string creation. - Apply formatted strings to improve readability
…tring conversions.
- Modify the string concatenation logic in the `no_console.rs` file to uniformly use the `join(",")` method. - Update the corresponding snapshot tests to reflect these changes, ensuring no extra spaces are included.
no_console_diagnostic
function to add a list of allowed methods argument