Skip to content

feat(linter): add eslint/prefer-spread#7112

Merged
Boshen merged 7 commits intooxc-project:mainfrom
tbashiyy:feat/eslint-prefer-spread
Nov 26, 2024
Merged

feat(linter): add eslint/prefer-spread#7112
Boshen merged 7 commits intooxc-project:mainfrom
tbashiyy:feat/eslint-prefer-spread

Conversation

@tbashiyy
Copy link
Contributor

@tbashiyy tbashiyy commented Nov 4, 2024

In this PR,

  • move existing unicorn:prefer-spread to eslint:prefer-spread.
  • combine 2 rules from eslint:prefer-spread and unicorn:prefer-spread

(This is already talked in discord)

@graphite-app
Copy link
Contributor

graphite-app bot commented Nov 4, 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-enhancement Category - New feature or request labels Nov 4, 2024
@tbashiyy tbashiyy changed the title feat(linter): add eslint:prefer-spraed feat(linter): add eslint:prefer-spread Nov 4, 2024
@codspeed-hq
Copy link

codspeed-hq bot commented Nov 4, 2024

CodSpeed Performance Report

Merging #7112 will not alter performance

Comparing tbashiyy:feat/eslint-prefer-spread (92c09e9) with main (eb70219)

Summary

✅ 30 untouched benchmarks

@tbashiyy tbashiyy marked this pull request as draft November 9, 2024 00:35
@tbashiyy tbashiyy force-pushed the feat/eslint-prefer-spread branch from 45944ea to e5ac1a5 Compare November 9, 2024 01:38
@tbashiyy tbashiyy marked this pull request as ready for review November 9, 2024 01:39
@tbashiyy tbashiyy marked this pull request as draft November 9, 2024 21:42
@tbashiyy tbashiyy force-pushed the feat/eslint-prefer-spread branch from e5ac1a5 to 390a89d Compare November 9, 2024 23:53
@tbashiyy tbashiyy marked this pull request as ready for review November 9, 2024 23:54
Copy link
Contributor

@camc314 camc314 left a comment

Choose a reason for hiding this comment

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

this looks great!

@Boshen Boshen requested a review from camc314 November 25, 2024 12:15
@Boshen
Copy link
Member

Boshen commented Nov 25, 2024

@camc314 seems like the last rule PR. 🙇

@camc314
Copy link
Contributor

camc314 commented Nov 25, 2024

@Boshen do you think these we should fix the naming colisions and split these two rules. they do unrelated things

(i won't let this block this PR though)

@camc314
Copy link
Contributor

camc314 commented Nov 25, 2024

lol not sure why i didn't approve originally

@camc314 camc314 changed the title feat(linter): add eslint:prefer-spread feat(linter): add eslint/prefer-spread Nov 26, 2024
@camc314 camc314 requested a review from Boshen November 26, 2024 09:24
@Boshen Boshen merged commit 8d89fdc into oxc-project:main Nov 26, 2024
@oxc-bot oxc-bot mentioned this pull request Dec 1, 2024
Boshen added a commit that referenced this pull request Dec 1, 2024
## [0.14.0] - 2024-12-01

### Features

- 32f860d linter: Add support for ignorePatterns property within config
file (#7092) (Nicholas Rayburn)
- 053bc08 linter: Implement typescript/no-unused-expressions (#7498)
(camc314)
- 60b28fc linter: Implement typescript/consistent-generic-constructors
(#7497) (camc314)
- bd0693b linter: Allow lint rules with the same name (#7496) (camc314)
- 2ac9f96 linter: Typescript/no-inferrable-types (#7438) (camc314)
- 8d89fdc linter: Add eslint/prefer-spread (#7112) (tbashiyy)

### Bug Fixes

- 123b5b7 linter: False positive in
`typescript/consistent-type-definitions` (#7560) (dalaoshu)
- cc078d6 linter: Add missing error message prefix to
`eslint/no-const-assign` (Boshen)
- 17c0dd8 linter: Fix `jsx_no_script_url` doc failed to build (Boshen)

### Performance

- 6cc7a48 linter: Use `OsString` for module cache hash (#7558) (Boshen)
- 6655345 linter: Use `FxDashMap` for module cache (#7522)
(overlookmotel)

### Documentation

- a6b0100 linter: Fix config example headings (#7562) (Boshen)

### Refactor

- 0f3f67a linter: Add capability of adding semantic data to module
record (#7561) (Boshen)
- 8392177 linter: Clean up the runtime after the module record change
(#7557) (Boshen)
- 823353a linter: Clean up APIs for `ModuleRecord` (#7556) (Boshen)
- f847d0f linter: Call `str::ends_with` with array not slice (#7526)
(overlookmotel)
- 2077ff9 linter: Remove `once_cell` (#7510) (Boshen)
- 169b8bf linter, syntax: Introduce type alias `FxDashMap` (#7520)
(overlookmotel)

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

A-linter Area - Linter C-enhancement Category - New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants