chore: bump up oxlint version to v0.4.3#7054
Conversation
Your org has enabled the Graphite merge queue for merging into canaryAdd 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. |
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 89bd8a0. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 6 targets
Sent with 💌 from NxCloud. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## canary #7054 +/- ##
=======================================
Coverage 61.73% 61.73%
=======================================
Files 793 793
Lines 34646 34646
Branches 3497 3497
=======================================
Hits 21388 21388
Misses 12978 12978
Partials 280 280
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
ad0e08d to
1315850
Compare
1315850 to
6600a92
Compare
6600a92 to
7a2e975
Compare
7a2e975 to
0a54deb
Compare
Merge activity
|
[](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [oxlint](https://oxc.rs) ([source](https://github.com/oxc-project/oxc/tree/HEAD/npm/oxlint)) | [`0.3.5` -> `0.4.3`](https://renovatebot.com/diffs/npm/oxlint/0.3.5/0.4.3) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>oxc-project/oxc (oxlint)</summary> ### [`v0.4.3`](https://github.com/oxc-project/oxc/releases/tag/oxlint_v0.4.3): oxlint v0.4.3 [Compare Source](https://github.com/oxc-project/oxc/compare/031bbe6dc4b0707b324bee7c9f49543a4c8bf212...4b9a36512ec5186babdf726e604336bfc6838f6c) #### \[0.4.3] - 2024-06-07 ##### Features - [`1fb9d23`](https://github.com/oxc-project/oxc/commit/1fb9d23) linter: Add fixer for no-useless-fallback-in-spread rule ([#​3544](https://github.com/oxc-project/oxc/issues/3544)) (Don Isaac) - [`6506d08`](https://github.com/oxc-project/oxc/commit/6506d08) linter: Add fixer for no-single-promise-in-promise-methods ([#​3531](https://github.com/oxc-project/oxc/issues/3531)) (Don Isaac) - [`daf559f`](https://github.com/oxc-project/oxc/commit/daf559f) linter: Eslint-plugin-jest/no-large-snapshot ([#​3436](https://github.com/oxc-project/oxc/issues/3436)) (cinchen) - [`4c17bc6`](https://github.com/oxc-project/oxc/commit/4c17bc6) linter: Eslint/no-constructor-return ([#​3321](https://github.com/oxc-project/oxc/issues/3321)) (谭光志) - [`4a075cc`](https://github.com/oxc-project/oxc/commit/4a075cc) linter/jsdoc: Implement require-param rule ([#​3554](https://github.com/oxc-project/oxc/issues/3554)) (Yuji Sugiura) - [`747500a`](https://github.com/oxc-project/oxc/commit/747500a) linter/jsdoc: Implement require-returns-type rule ([#​3458](https://github.com/oxc-project/oxc/issues/3458)) (Yuji Sugiura) - [`6b39654`](https://github.com/oxc-project/oxc/commit/6b39654) linter/tree-shaking: Support options ([#​3504](https://github.com/oxc-project/oxc/issues/3504)) (Wang Wenzhe) ##### Bug Fixes - [`b188778`](https://github.com/oxc-project/oxc/commit/b188778) linter/eslint: Fix `require-await` false positives in `ForOfStatement`. ([#​3457](https://github.com/oxc-project/oxc/issues/3457)) (rzvxa) - [`350cd91`](https://github.com/oxc-project/oxc/commit/350cd91) parser: Should parser error when function declaration has no name ([#​3461](https://github.com/oxc-project/oxc/issues/3461)) (Dunqing) ### [`v0.4.2`](https://github.com/oxc-project/oxc/releases/tag/oxlint_v0.4.2): oxlint v0.4.2 [Compare Source](https://github.com/oxc-project/oxc/compare/d971c9cd0b7da94896179ebd5a8b95b62d05a1c1...031bbe6dc4b0707b324bee7c9f49543a4c8bf212) #### What's Changed ##### Linter - `require-await` by [@​todor-a](https://github.com/todor-a) in [https://github.com/oxc-project/oxc/pull/3406](https://github.com/oxc-project/oxc/pull/3406) - `eslint-plugin-unicorn/no-magic-array` flat depth by [@​camc314](https://github.com/camc314) in [https://github.com/oxc-project/oxc/pull/3411](https://github.com/oxc-project/oxc/pull/3411) - `@typescript-eslint/consistent-indexed-object-style` by [@​todor-a](https://github.com/todor-a) in [https://github.com/oxc-project/oxc/pull/3126](https://github.com/oxc-project/oxc/pull/3126) - `oxc/no-async-await` rule by [@​mysteryven](https://github.com/mysteryven) in [https://github.com/oxc-project/oxc/pull/3438](https://github.com/oxc-project/oxc/pull/3438) - `oxc/no-const-enum` rule by [@​mysteryven](https://github.com/mysteryven) in [https://github.com/oxc-project/oxc/pull/3435](https://github.com/oxc-project/oxc/pull/3435) - `oxc/no-rest-spread-properties` rule by [@​mysteryven](https://github.com/mysteryven) in [https://github.com/oxc-project/oxc/pull/3432](https://github.com/oxc-project/oxc/pull/3432) - `eslint-plugin-jest/prefer-hooks-on-top` by [@​eryue0220](https://github.com/eryue0220) in [https://github.com/oxc-project/oxc/pull/3437](https://github.com/oxc-project/oxc/pull/3437) - `eslint-plugin-jest/require-top-level-describe` by [@​eryue0220](https://github.com/eryue0220) in [https://github.com/oxc-project/oxc/pull/3439](https://github.com/oxc-project/oxc/pull/3439) - `no-div-regex` by [@​jelly](https://github.com/jelly) in [https://github.com/oxc-project/oxc/pull/3442](https://github.com/oxc-project/oxc/pull/3442) - `no-useless-concat` by [@​jelly](https://github.com/jelly) in [https://github.com/oxc-project/oxc/pull/3363](https://github.com/oxc-project/oxc/pull/3363) - prefer-string-starts-ends-with: accept more valid regex by [@​magic-akari](https://github.com/magic-akari) in [https://github.com/oxc-project/oxc/pull/3408](https://github.com/oxc-project/oxc/pull/3408) ##### Parser - fix(parser): parse const extends in arrow functions correctly by [@​Dunqing](https://github.com/Dunqing) in [https://github.com/oxc-project/oxc/pull/3450](https://github.com/oxc-project/oxc/pull/3450) #### New Contributors - [@​Bassadin](https://github.com/Bassadin) made their first contribution in [https://github.com/oxc-project/oxc/pull/3433](https://github.com/oxc-project/oxc/pull/3433) **Full Changelog**: oxc-project/oxc@oxlint_v0.4.1...oxlint_v0.4.2 ### [`v0.4.1`](https://github.com/oxc-project/oxc/releases/tag/oxlint_v0.4.1): oxlint v0.4.1 [Compare Source](https://github.com/oxc-project/oxc/compare/e5337f00b1c7b49cb09d28b860e112d4ebad3233...d971c9cd0b7da94896179ebd5a8b95b62d05a1c1) #### What's Changed - fix(parser): fix lexer error while parsing parenthesized arrow expressions by [@​Boshen](https://github.com/Boshen) in [https://github.com/oxc-project/oxc/pull/3400](https://github.com/oxc-project/oxc/pull/3400) The previous version refactored some parsing code around arrow expressions, which failed to parse the following snippet correctly ```javascript (/\./.exec()) ``` **Full Changelog**: oxc-project/oxc@oxlint_v0.4.0...oxlint_v0.4.1 ### [`v0.4.0`](https://github.com/oxc-project/oxc/releases/tag/oxlint_v0.4.0): oxlint v0.4.0 [Compare Source](https://github.com/oxc-project/oxc/compare/754d9f4c98aab052cf6b2756f7af12557042708d...e5337f00b1c7b49cb09d28b860e112d4ebad3233) #### Potential Breaking Changes ##### enforce rule severity from the cli and configuration file by [@​Boshen](https://github.com/Boshen) in [https://github.com/oxc-project/oxc/pull/3337](https://github.com/oxc-project/oxc/pull/3337) The `--deny` or `-D` flag in the CLI, and the `"error"` severity setting in the configuration file will now set linter diagnostics to be an "error" and exit the program with exit code 1. Previously, these flags had no effect, and all linter diagnostics were reported as warnings. This means in CI, `oxlint --deny-warnings` is no longer needed for exit code 1 if `oxlint -D correctness` is set. To restore the previous "report as warning" behaviour, the `--warn` or `-W` flag is added to the CLI, and the `"warn"` severity in the configuration file will take into effect. ##### merge deepscan rules into oxc rules by [@​Boshen](https://github.com/Boshen) in [https://github.com/oxc-project/oxc/pull/3327](https://github.com/oxc-project/oxc/pull/3327) `deepscan` rules are now "oxc" rules, because there is no "deepscan" plugin in the eslint ecosystem and this caused some confusion. #### Ecosystem CI We added the [`Oxlint Ecosystem CI`](https://github.com/oxc-project/oxlint-ecosystem-ci/actions/workflows/ecosystem-ci.yml) to maximize ecosystem compatibility, reduce churn, and minimize break-after-release #### New Features - `--disable-oxc-plugin` by [@​Boshen](https://github.com/Boshen) in [https://github.com/oxc-project/oxc/pull/3328](https://github.com/oxc-project/oxc/pull/3328) - `--disable`-react/unicorn/typescript-`plugin` by [@​Boshen](https://github.com/Boshen) in [https://github.com/oxc-project/oxc/pull/3305](https://github.com/oxc-project/oxc/pull/3305) The default rule set enables some plugins by default, the following CLI arguments are added for disabling them: - `--disable-react-plugin` - `--disable-unicorn-plugin` - `--disable-oxc-plugin` - `--disable-typescript-plugin` #### New Rules Two notable new rules that are under experiment but worth a try: ##### No Barrel File `oxlint --import-plugin -D no-barrel-file` Loading a lot of modules is slow for runtimes and bundlers. <img width="600" alt="image" src="https://github.com/oxc-project/oxc/assets/1430279/964d8615-a5c2-4934-a1e4-a6f8b023e199"> To change the threshhold: `oxlint -c oxlintrc.json --import-plugin -D no-barrel-file` ```json { "rules": { "oxc/no-barrel-file": ["error", { "threshold": 10 }] } } ``` See [Speeding up the JavaScript ecosystem - The barrel file debacle](https://marvinh.dev/blog/speeding-up-javascript-ecosystem-part-7) for background reading. ##### Rule of Hooks `oxlint -D rules-of-hooks` Enforce the React Rules of Hooks. - `eslint-plugin-jest/no-duplicate-hooks` by [@​eryue0220](https://github.com/eryue0220) in [https://github.com/oxc-project/oxc/pull/3358](https://github.com/oxc-project/oxc/pull/3358) - `default-case` rule by [@​jelly](https://github.com/jelly) in [https://github.com/oxc-project/oxc/pull/3379](https://github.com/oxc-project/oxc/pull/3379) - `no-new` by [@​jelly](https://github.com/jelly) in [https://github.com/oxc-project/oxc/pull/3368](https://github.com/oxc-project/oxc/pull/3368) - `prefer-exponentiation-operator` by [@​jelly](https://github.com/jelly) in [https://github.com/oxc-project/oxc/pull/3365](https://github.com/oxc-project/oxc/pull/3365) - `symbol-description` by [@​jelly](https://github.com/jelly) in [https://github.com/oxc-project/oxc/pull/3364](https://github.com/oxc-project/oxc/pull/3364) - `jsdoc/require-returns-description` by [@​leaysgur](https://github.com/leaysgur) in [https://github.com/oxc-project/oxc/pull/3397](https://github.com/oxc-project/oxc/pull/3397) #### Bug Fixes - fix(linter): avoid infinite loop in `jest/expect-expect` by [@​mysteryven](https://github.com/mysteryven) in [https://github.com/oxc-project/oxc/pull/3332](https://github.com/oxc-project/oxc/pull/3332) - fix(linter): avoid infinite loop when traverse ancestors in `jest/no_conditional_expect` by [@​mysteryven](https://github.com/mysteryven) in [https://github.com/oxc-project/oxc/pull/3330](https://github.com/oxc-project/oxc/pull/3330) - fix(linter): fix panic in jest/expect-expect by [@​Boshen](https://github.com/Boshen) in [https://github.com/oxc-project/oxc/pull/3324](https://github.com/oxc-project/oxc/pull/3324) - fix(linter/jsx-no-undef): check for globals when an identifier is undefined by [@​Boshen](https://github.com/Boshen) in [https://github.com/oxc-project/oxc/pull/3331](https://github.com/oxc-project/oxc/pull/3331) - fix(linter/next): false positives for non-custom font link by [@​Dunqing](https://github.com/Dunqing) in [https://github.com/oxc-project/oxc/pull/3383](https://github.com/oxc-project/oxc/pull/3383) #### Performance Improvements - perf(lexer): use bitshifting when parsing known integers by [@​DonIsaac](https://github.com/DonIsaac) in [https://github.com/oxc-project/oxc/pull/3296](https://github.com/oxc-project/oxc/pull/3296) - perf(linter): use `usize` for `RuleEnum` hash by [@​Boshen](https://github.com/Boshen) in [https://github.com/oxc-project/oxc/pull/3336](https://github.com/oxc-project/oxc/pull/3336) - perf(parser): more efficient number parsing by [@​overlookmotel](https://github.com/overlookmotel) in [https://github.com/oxc-project/oxc/pull/3342](https://github.com/oxc-project/oxc/pull/3342) - perf(parser): use `FxHashSet` for `not_parenthesized_arrow` by [@​Boshen](https://github.com/Boshen) in [https://github.com/oxc-project/oxc/pull/3344](https://github.com/oxc-project/oxc/pull/3344) - perf(parser): improve `parse_simple_arrow_function_expression` by [@​Boshen](https://github.com/Boshen) in [https://github.com/oxc-project/oxc/pull/3349](https://github.com/oxc-project/oxc/pull/3349) - perf(parser): improve expression parsing by [@​Boshen](https://github.com/Boshen) in [https://github.com/oxc-project/oxc/pull/3352](https://github.com/oxc-project/oxc/pull/3352) - perf(parser): improve is_parenthesized_arrow_function_expression by [@​Boshen](https://github.com/Boshen) in [https://github.com/oxc-project/oxc/pull/3343](https://github.com/oxc-project/oxc/pull/3343) #### What's coming next - Published JSON schema for configuration file - More features to the configuration file - Automatically synced and never outdated documentation website pages - [Command-line Interface](https://oxc-project.github.io/docs/guide/usage/linter/cli.html) - [Configuration File](https://oxc-project.github.io/docs/guide/usage/linter/config.html) - [Rules Page](https://oxc-project.github.io/docs/guide/usage/linter/rules.html) **Full Changelog**: oxc-project/oxc@oxlint_v0.3.5...oxlint_v0.4.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/toeverything/AFFiNE). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNjguMTAiLCJ1cGRhdGVkSW5WZXIiOiIzNy4zOTMuMCIsInRhcmdldEJyYW5jaCI6ImNhbmFyeSIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->
0a54deb to
89bd8a0
Compare
This PR contains the following updates:
0.3.5->0.4.3Release Notes
oxc-project/oxc (oxlint)
v0.4.3: oxlint v0.4.3Compare Source
[0.4.3] - 2024-06-07
Features
1fb9d23linter: Add fixer for no-useless-fallback-in-spread rule (#3544) (Don Isaac)6506d08linter: Add fixer for no-single-promise-in-promise-methods (#3531) (Don Isaac)daf559flinter: Eslint-plugin-jest/no-large-snapshot (#3436) (cinchen)4c17bc6linter: Eslint/no-constructor-return (#3321) (谭光志)4a075cclinter/jsdoc: Implement require-param rule (#3554) (Yuji Sugiura)747500alinter/jsdoc: Implement require-returns-type rule (#3458) (Yuji Sugiura)6b39654linter/tree-shaking: Support options (#3504) (Wang Wenzhe)Bug Fixes
b188778linter/eslint: Fixrequire-awaitfalse positives inForOfStatement. (#3457) (rzvxa)350cd91parser: Should parser error when function declaration has no name (#3461) (Dunqing)v0.4.2: oxlint v0.4.2Compare Source
What's Changed
Linter
require-awaitby @todor-a in https://github.com/oxc-project/oxc/pull/3406eslint-plugin-unicorn/no-magic-arrayflat depth by @camc314 in https://github.com/oxc-project/oxc/pull/3411@typescript-eslint/consistent-indexed-object-styleby @todor-a in https://github.com/oxc-project/oxc/pull/3126oxc/no-async-awaitrule by @mysteryven in https://github.com/oxc-project/oxc/pull/3438oxc/no-const-enumrule by @mysteryven in https://github.com/oxc-project/oxc/pull/3435oxc/no-rest-spread-propertiesrule by @mysteryven in https://github.com/oxc-project/oxc/pull/3432eslint-plugin-jest/prefer-hooks-on-topby @eryue0220 in https://github.com/oxc-project/oxc/pull/3437eslint-plugin-jest/require-top-level-describeby @eryue0220 in https://github.com/oxc-project/oxc/pull/3439no-div-regexby @jelly in https://github.com/oxc-project/oxc/pull/3442no-useless-concatby @jelly in https://github.com/oxc-project/oxc/pull/3363Parser
New Contributors
Full Changelog: oxc-project/oxc@oxlint_v0.4.1...oxlint_v0.4.2
v0.4.1: oxlint v0.4.1Compare Source
What's Changed
The previous version refactored some parsing code around arrow expressions, which failed to parse the following snippet correctly
Full Changelog: oxc-project/oxc@oxlint_v0.4.0...oxlint_v0.4.1
v0.4.0: oxlint v0.4.0Compare Source
Potential Breaking Changes
enforce rule severity from the cli and configuration file by @Boshen in https://github.com/oxc-project/oxc/pull/3337
The
--denyor-Dflag in the CLI, and the"error"severity setting in the configuration file will now set linter diagnostics to be an "error" and exit the program with exit code 1.Previously, these flags had no effect, and all linter diagnostics were reported as warnings.
This means in CI,
oxlint --deny-warningsis no longer needed for exit code 1 ifoxlint -D correctnessis set.To restore the previous "report as warning" behaviour, the
--warnor-Wflag is added to the CLI, and the"warn"severity in the configuration file will take into effect.merge deepscan rules into oxc rules by @Boshen in https://github.com/oxc-project/oxc/pull/3327
deepscanrules are now "oxc" rules, because there is no "deepscan" plugin in the eslint ecosystem and this caused some confusion.Ecosystem CI
We added the
Oxlint Ecosystem CIto maximize ecosystem compatibility, reduce churn, and minimize break-after-releaseNew Features
--disable-oxc-pluginby @Boshen in https://github.com/oxc-project/oxc/pull/3328--disable-react/unicorn/typescript-pluginby @Boshen in https://github.com/oxc-project/oxc/pull/3305The default rule set enables some plugins by default, the following CLI arguments are added for disabling them:
--disable-react-plugin--disable-unicorn-plugin--disable-oxc-plugin--disable-typescript-pluginNew Rules
Two notable new rules that are under experiment but worth a try:
No Barrel File
oxlint --import-plugin -D no-barrel-fileLoading a lot of modules is slow for runtimes and bundlers.
To change the threshhold:
oxlint -c oxlintrc.json --import-plugin -D no-barrel-file{ "rules": { "oxc/no-barrel-file": ["error", { "threshold": 10 }] } }See Speeding up the JavaScript ecosystem - The barrel file debacle for background reading.
Rule of Hooks
oxlint -D rules-of-hooksEnforce the React Rules of Hooks.
eslint-plugin-jest/no-duplicate-hooksby @eryue0220 in https://github.com/oxc-project/oxc/pull/3358default-caserule by @jelly in https://github.com/oxc-project/oxc/pull/3379no-newby @jelly in https://github.com/oxc-project/oxc/pull/3368prefer-exponentiation-operatorby @jelly in https://github.com/oxc-project/oxc/pull/3365symbol-descriptionby @jelly in https://github.com/oxc-project/oxc/pull/3364jsdoc/require-returns-descriptionby @leaysgur in https://github.com/oxc-project/oxc/pull/3397Bug Fixes
jest/expect-expectby @mysteryven in https://github.com/oxc-project/oxc/pull/3332jest/no_conditional_expectby @mysteryven in https://github.com/oxc-project/oxc/pull/3330Performance Improvements
usizeforRuleEnumhash by @Boshen in https://github.com/oxc-project/oxc/pull/3336FxHashSetfornot_parenthesized_arrowby @Boshen in https://github.com/oxc-project/oxc/pull/3344parse_simple_arrow_function_expressionby @Boshen in https://github.com/oxc-project/oxc/pull/3349What's coming next
Full Changelog: oxc-project/oxc@oxlint_v0.3.5...oxlint_v0.4.0
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.