Skip to content

refactor(linter): simplify skipping JSX elements in unicorn/consistent_function_scoping#5351

Merged
graphite-app[bot] merged 1 commit intomainfrom
08-30-refactor_linter_simplify_skipping_jsx_elements_in_unicorn_consistent_function_scoping_
Aug 30, 2024
Merged

refactor(linter): simplify skipping JSX elements in unicorn/consistent_function_scoping#5351
graphite-app[bot] merged 1 commit intomainfrom
08-30-refactor_linter_simplify_skipping_jsx_elements_in_unicorn_consistent_function_scoping_

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Aug 30, 2024

Follow-on after #5223. We're trying to ignore JSX identifiers, so there's no point walking downwards from JSXElementName, as all we'll find is JSX identifiers that we want to ignore.

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @overlookmotel and the rest of your teammates on Graphite Graphite

@graphite-app
Copy link
Contributor

graphite-app bot commented Aug 30, 2024

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

Add the label “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.

@Dunqing Dunqing requested a review from camc314 August 30, 2024 14:52
@overlookmotel overlookmotel marked this pull request as ready for review August 30, 2024 14:52
@overlookmotel overlookmotel requested review from Dunqing and removed request for camc314 August 30, 2024 14:53
@camc314 camc314 added 0-merge Merge with Graphite Merge Queue and removed 0-merge Merge with Graphite Merge Queue labels Aug 30, 2024
@github-actions github-actions bot added the A-linter Area - Linter label Aug 30, 2024
@camc314 camc314 added the 0-merge Merge with Graphite Merge Queue label Aug 30, 2024 — with Graphite App
@graphite-app
Copy link
Contributor

graphite-app bot commented Aug 30, 2024

Merge activity

  • Aug 30, 10:55 AM EDT: The merge label 'merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Aug 30, 10:57 AM EDT: The merge label 'merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Aug 30, 10:59 AM EDT: camc314 added this pull request to the Graphite merge queue.
  • Aug 30, 11:04 AM EDT: camc314 removed this pull request from the Graphite merge queue.
  • Aug 30, 11:10 AM EDT: The merge label 'merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Aug 30, 11:11 AM EDT: Dunqing added this pull request to the Graphite merge queue.
  • Aug 30, 11:17 AM EDT: Dunqing merged this pull request with the Graphite merge queue.

@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Aug 30, 2024
@camc314
Copy link
Contributor

camc314 commented Aug 30, 2024

removed the merge as overlookmotel requested a review from Dunqing

You're the codeowner 😀

me? 😅

@Dunqing Dunqing added the 0-merge Merge with Graphite Merge Queue label Aug 30, 2024
@codspeed-hq
Copy link

codspeed-hq bot commented Aug 30, 2024

CodSpeed Performance Report

Merging #5351 will create unknown performance changes

Comparing 08-30-refactor_linter_simplify_skipping_jsx_elements_in_unicorn_consistent_function_scoping_ (fe62687) with main (381d9fe)

Summary

🆕 28 new benchmarks

Benchmarks breakdown

Benchmark main 08-30-refactor_linter_simplify_skipping_jsx_elements_in_unicorn_consistent_function_scoping_ Change
🆕 codegen[checker.ts] N/A 20.7 ms N/A
🆕 codegen_sourcemap[checker.ts] N/A 72.6 ms N/A
🆕 isolated-declarations[vue-id.ts] N/A 379.9 ms N/A
🆕 lexer[RadixUIAdoptionSection.jsx] N/A 22.5 µs N/A
🆕 lexer[antd.js] N/A 19.9 ms N/A
🆕 lexer[cal.com.tsx] N/A 4.9 ms N/A
🆕 lexer[checker.ts] N/A 12 ms N/A
🆕 lexer[pdf.mjs] N/A 3.2 ms N/A
🆕 linter[cal.com.tsx] N/A 841.1 ms N/A
🆕 linter[checker.ts] N/A 1.5 s N/A
🆕 minifier[antd.js] N/A 348 ms N/A
🆕 minifier[react.development.js] N/A 3.6 ms N/A
🆕 minifier[typescript.js] N/A 626.9 ms N/A
🆕 parser[RadixUIAdoptionSection.jsx] N/A 77.8 µs N/A
🆕 parser[antd.js] N/A 105.4 ms N/A
🆕 parser[cal.com.tsx] N/A 24.4 ms N/A
🆕 parser[checker.ts] N/A 52.5 ms N/A
🆕 parser[pdf.mjs] N/A 17.3 ms N/A
🆕 semantic[RadixUIAdoptionSection.jsx] N/A 99.7 µs N/A
🆕 semantic[antd.js] N/A 129.8 ms N/A
... ... ... ... ...

ℹ️ Only the first 20 benchmarks are displayed. Go to the app to view all benchmarks.

…nt_function_scoping` (#5351)

Follow-on after #5223. We're trying to ignore JSX identifiers, so there's no point walking downwards from `JSXElementName`, as all we'll find is JSX identifiers that we want to ignore.
@Dunqing Dunqing force-pushed the 08-30-refactor_linter_simplify_skipping_jsx_elements_in_unicorn_consistent_function_scoping_ branch from 57e1905 to fe62687 Compare August 30, 2024 15:11
@graphite-app graphite-app bot merged commit fe62687 into main Aug 30, 2024
@graphite-app graphite-app bot deleted the 08-30-refactor_linter_simplify_skipping_jsx_elements_in_unicorn_consistent_function_scoping_ branch August 30, 2024 15:17
@oxc-bot oxc-bot mentioned this pull request Sep 2, 2024
Boshen added a commit that referenced this pull request Sep 2, 2024
## [0.9.2] - 2024-09-02

### Features

- f81e8a1 linter: Add `oxc/no-async-endpoint-handlers` (#5364)
(DonIsaac)
- b103737 linter: Improve no-accumulating-spread (#5302) (camc314)
- 9c22ce9 linter: Add hyperlinks to diagnostic messages (#5318)
(DonIsaac)
- 1967c67 linter/eslint: Implement no-new-func (#5360) (dalaoshu)
- b867e5f linter/eslint-plugin-promise: Implement catch-or-return
(#5121) (Jelle van der Waa)
- 8d781e7 linter/oxc: Differentiate between array/object in
`no-accumulating-spread` loop diagnostic (#5375) (camc314)
- db55444 linter/oxc: Add fixer for `double-comparisons` (#5378)
(camc314)
- e5c755a linter/promise: Add `spec-only` rule (#5124) (Jelle van der
Waa)
- 4c0861f linter/unicorn: Add fixer for `prefer-type-error` (#5311)
(camc314)
- 084c2d1 linter/vitest: Implement prefer-to-be-object (#5321)
(dalaoshu)

### Bug Fixes

- 11b93af linter/unicorn: Consistent-function-scoping false positive on
assignment expression (#5312) (Arian94)

### Performance

- f052a6d linter: `react/jsx_no_undef` faster check for unbound
references (#5349) (overlookmotel)
- 05636b7 linter: Avoid unnecessary work in `jsx_a11y/anchor_is_valid`
rule (#5341) (overlookmotel)

### Refactor

- afb038e linter: `react/jsx_no_undef` use loop instead of recursion
(#5347) (overlookmotel)
- fe62687 linter: Simplify skipping JSX elements in
`unicorn/consistent_function_scoping` (#5351) (overlookmotel)
- 381d9fe linter: Shorten code in `react/jsx_no_useless_fragment`
(#5350) (overlookmotel)
- 83b9a82 linter: Fix indentation in
`nextjs/no_script_component_in_head` rule (#5338) (overlookmotel)
- 89f0188 linter: Improve docs for `react/jsx_no_target_blank` rule
(#5342) (overlookmotel)
- 57050ab linter: Shorten code in
`jsx_a11y/aria_activedescendant_has_tabindex` rule (#5340)
(overlookmotel)
- ed31d67 linter/jest: Fix indentation in code comment (#5372) (camc314)
- 2499cb9 linter/oxc: Update rule docs for `erasing-op` (#5376)
(camc314)
- 69493d2 linter/oxc: Improve diagnostic for `no-accumulating-spread` in
loops (#5374) (camc314)
- 024b585 linter/oxc: Improve code comment for `no-accumulating-spread`
(#5373) (camc314)

Co-authored-by: Boshen <1430279+Boshen@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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants