Skip to content

refactor(linter): allow Semantic to be passed for collecting Jest nodes#6720

Merged
graphite-app[bot] merged 1 commit intomainfrom
10-20-refactor_linter_allow_semantic_to_be_passed_for_collecting_jest_nodes
Oct 21, 2024
Merged

refactor(linter): allow Semantic to be passed for collecting Jest nodes#6720
graphite-app[bot] merged 1 commit intomainfrom
10-20-refactor_linter_allow_semantic_to_be_passed_for_collecting_jest_nodes

Conversation

@camchenry
Copy link
Copy Markdown
Member

@camchenry camchenry commented Oct 20, 2024

This refactors the Jest node collection to not be rule-specific by allowing Semantic to be passed instead of the LintContext. This prepares the code to be used outside of a particular rule context.

@graphite-app
Copy link
Copy Markdown
Contributor

graphite-app bot commented Oct 20, 2024

Your org has enabled the Graphite merge queue for merging into main

Add the label “0-merge” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

@github-actions github-actions bot added A-linter Area - Linter C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior labels Oct 20, 2024
@camchenry camchenry force-pushed the 10-20-refactor_linter_allow_semantic_to_be_passed_for_collecting_jest_nodes branch from 492fb20 to 986b06d Compare October 20, 2024 22:00
@camchenry camchenry marked this pull request as ready for review October 20, 2024 22:01
@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Oct 20, 2024

CodSpeed Performance Report

Merging #6720 will not alter performance

Comparing 10-20-refactor_linter_allow_semantic_to_be_passed_for_collecting_jest_nodes (155fe7e) with main (bad8770)

Summary

✅ 30 untouched benchmarks

@camchenry camchenry force-pushed the 10-20-refactor_linter_use_iter_for_collecting_jest_nodes branch from a53df13 to 5f62629 Compare October 20, 2024 22:11
@camchenry camchenry force-pushed the 10-20-refactor_linter_allow_semantic_to_be_passed_for_collecting_jest_nodes branch from 986b06d to dab4a58 Compare October 20, 2024 22:11
@DonIsaac DonIsaac force-pushed the 10-20-refactor_linter_use_iter_for_collecting_jest_nodes branch from 5f62629 to e148ab3 Compare October 21, 2024 01:17
@DonIsaac DonIsaac force-pushed the 10-20-refactor_linter_allow_semantic_to_be_passed_for_collecting_jest_nodes branch from dab4a58 to 675ede7 Compare October 21, 2024 01:18
@Boshen Boshen added the 0-merge Merge with Graphite Merge Queue label Oct 21, 2024 — with Graphite App
@graphite-app
Copy link
Copy Markdown
Contributor

graphite-app bot commented Oct 21, 2024

Merge activity

…odes (#6720)

This refactors the Jest node collection to not be rule-specific by allowing `Semantic` to be passed instead of the LintContext. This prepares the code to be used outside of a particular rule context.
@Boshen Boshen force-pushed the 10-20-refactor_linter_use_iter_for_collecting_jest_nodes branch from e148ab3 to ad8f281 Compare October 21, 2024 02:14
@Boshen Boshen force-pushed the 10-20-refactor_linter_allow_semantic_to_be_passed_for_collecting_jest_nodes branch from 675ede7 to 155fe7e Compare October 21, 2024 02:14
Base automatically changed from 10-20-refactor_linter_use_iter_for_collecting_jest_nodes to main October 21, 2024 02:19
@graphite-app graphite-app bot merged commit 155fe7e into main Oct 21, 2024
@graphite-app graphite-app bot deleted the 10-20-refactor_linter_allow_semantic_to_be_passed_for_collecting_jest_nodes branch October 21, 2024 02:28
Boshen added a commit that referenced this pull request Oct 21, 2024
## [0.10.1] - 2024-10-21

### Features

- af25752 linter: Add `unicorn/prefer-math-min-max` (#6621) (Brian Liu)
- 5095f02 linter: Added fixer for duplicate prefix in valid title jest
rule (#6699) (Tapan Prakash)
- e9976d4 linter: Add title whitespace fixer for jest valid title rule
(#6669) (Tapan Prakash)
- 45f02d5 linter: Add `unicorn/consistent-empty-array-spread` (#6695)
(Brian Liu)
- 01a35bb linter/eslint: Show ignore patterns in `eslint/no-unused-vars`
diagnostic messages (#6696) (DonIsaac)

### Bug Fixes

- 1bcd707 editor: Update config sent to language server (#6724)
(Nicholas Rayburn)
- ce25c45 linter: Panic in `disable-directives` (#6677) (dalaoshu)
- a5de230 linter/import: `import/no-duplicates` handles namespace
imports correctly (#6694) (DonIsaac)
- b0b6ac7 linter/no-cond-assign: False positive when assignment is in
body statement (#6665) (camchenry)

### Performance

- 6a76ea8 linter/no-unused-vars: Use default IgnorePattern when /^_/ is
provided as a pattern (#6697) (DonIsaac)

### Refactor

- d6609e9 linter: Use `run_on_jest_node` for existing lint rules (#6722)
(camchenry)
- 97195ec linter: Add `run_on_jest_node` to run rules on only jest nodes
(#6721) (camchenry)
- 155fe7e linter: Allow `Semantic` to be passed for collecting Jest
nodes (#6720) (camchenry)
- ad8f281 linter: Use iter for collecting jest nodes (#6719) (camchenry)
- dc19a8f linter: Use iterator for collecting jest imports (#6718)
(camchenry)
- 29c1447 linter: `jest/valid-title` fixer to use `Span::shrink` method
(#6703) (Tapan Prakash)
- 2eb984a linter: Add missing `should_run` implementations (#6666)
(camchenry)
- 23f88b3 linter/import: Better diagnostic messages for
`import/no-duplicates` (#6693) (DonIsaac)

---------

Co-authored-by: Boshen <1430279+Boshen@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

0-merge Merge with Graphite Merge Queue A-linter Area - Linter C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants