From a85707a2e7e6d257325ce48a4c57a75fce90a0c1 Mon Sep 17 00:00:00 2001 From: renovate <29139614+renovate@users.noreply.github.com> Date: Mon, 30 Dec 2024 10:28:04 +0000 Subject: [PATCH] chore: bump up oxlint version to v0.15.4 (#9161) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [oxlint](https://oxc.rs) ([source](https://redirect.github.com/oxc-project/oxc/tree/HEAD/npm/oxlint)) | [`0.15.0` -> `0.15.4`](https://renovatebot.com/diffs/npm/oxlint/0.15.0/0.15.4) | [![age](https://developer.mend.io/api/mc/badges/age/npm/oxlint/0.15.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/oxlint/0.15.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/oxlint/0.15.0/0.15.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/oxlint/0.15.0/0.15.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
oxc-project/oxc (oxlint) ### [`v0.15.4`](https://redirect.github.com/oxc-project/oxc/releases/tag/oxlint_v0.15.4): oxlint v0.15.4 [Compare Source](https://redirect.github.com/oxc-project/oxc/compare/oxlint_v0.15.3...oxlint_v0.15.4) #### \[0.15.4] - 2024-12-30 - [`ed75e42`](https://redirect.github.com/oxc-project/oxc/commit/ed75e42) semantic: \[**BREAKING**] Make SymbolTable fields `pub(crate)` instead of `pub` ([#​7999](https://redirect.github.com/oxc-project/oxc/issues/7999)) (Boshen) ##### Features - [`47cea9a`](https://redirect.github.com/oxc-project/oxc/commit/47cea9a) linter: Implement `eslint/no-extra-label` ([#​8181](https://redirect.github.com/oxc-project/oxc/issues/8181)) (Anson Heung) - [`ef76e28`](https://redirect.github.com/oxc-project/oxc/commit/ef76e28) linter: Implement `eslint/no-multi-assign` ([#​8158](https://redirect.github.com/oxc-project/oxc/issues/8158)) (Anson Heung) - [`384858b`](https://redirect.github.com/oxc-project/oxc/commit/384858b) linter: Implement `jsx-a11y/no-noninteractive-tabindex` ([#​8167](https://redirect.github.com/oxc-project/oxc/issues/8167)) (Tyler Earls) - [`afc21a6`](https://redirect.github.com/oxc-project/oxc/commit/afc21a6) linter: Implement `eslint/vars-on-top` ([#​8157](https://redirect.github.com/oxc-project/oxc/issues/8157)) (Yuichiro Yamashita) - [`65796c4`](https://redirect.github.com/oxc-project/oxc/commit/65796c4) linter: Implement `eslint/prefer-rest-params` ([#​8155](https://redirect.github.com/oxc-project/oxc/issues/8155)) (Yuichiro Yamashita) - [`5234d96`](https://redirect.github.com/oxc-project/oxc/commit/5234d96) linter: Implement `eslint/no-nested-ternary` ([#​8150](https://redirect.github.com/oxc-project/oxc/issues/8150)) (Yuichiro Yamashita) - [`1c5db72`](https://redirect.github.com/oxc-project/oxc/commit/1c5db72) linter: Implement eslint/no-labels ([#​8131](https://redirect.github.com/oxc-project/oxc/issues/8131)) (Anson Heung) - [`0b04288`](https://redirect.github.com/oxc-project/oxc/commit/0b04288) linter: Move `import/named` to nursery ([#​8068](https://redirect.github.com/oxc-project/oxc/issues/8068)) (Boshen) ##### Bug Fixes - [`0794bee`](https://redirect.github.com/oxc-project/oxc/commit/0794bee) editor/vscode: Set minimum supported ver. to `^1.93.0` ([#​8182](https://redirect.github.com/oxc-project/oxc/issues/8182)) (Pavel Smirnov) - [`f3050d4`](https://redirect.github.com/oxc-project/oxc/commit/f3050d4) linter: Exclude svelte files from `no_unused_vars` rule ([#​8170](https://redirect.github.com/oxc-project/oxc/issues/8170)) (Yuichiro Yamashita) - [`faf7464`](https://redirect.github.com/oxc-project/oxc/commit/faf7464) linter: Disable rule `react/rules-of-hook` by file extension ([#​8168](https://redirect.github.com/oxc-project/oxc/issues/8168)) (Alexander S.) - [`1171e00`](https://redirect.github.com/oxc-project/oxc/commit/1171e00) linter: Disable `react/rules-of-hooks` for vue and svelte files ([#​8165](https://redirect.github.com/oxc-project/oxc/issues/8165)) (Alexander S.) - [`1b9a5ba`](https://redirect.github.com/oxc-project/oxc/commit/1b9a5ba) linter: False positiver in private member expr in oxc/const-comparison ([#​8164](https://redirect.github.com/oxc-project/oxc/issues/8164)) (camc314) - [`6bd9ddb`](https://redirect.github.com/oxc-project/oxc/commit/6bd9ddb) linter: False positive in `typescript/ban-tslint-comment` ([#​8094](https://redirect.github.com/oxc-project/oxc/issues/8094)) (dalaoshu) - [`10a1fd5`](https://redirect.github.com/oxc-project/oxc/commit/10a1fd5) linter: Rule: `no-restricted-imports` support option `patterns` with `group` key ([#​8050](https://redirect.github.com/oxc-project/oxc/issues/8050)) (Alexander S.) - [`b3f38ae`](https://redirect.github.com/oxc-project/oxc/commit/b3f38ae) linter: Rule `no-restricted-imports`: support option `allowImportNames` ([#​8002](https://redirect.github.com/oxc-project/oxc/issues/8002)) (Alexander S.) - [`340cc90`](https://redirect.github.com/oxc-project/oxc/commit/340cc90) linter: Rule `no-restricted-imports`: fix option "importNames" ([#​7943](https://redirect.github.com/oxc-project/oxc/issues/7943)) (Alexander S.) - [`ec2128e`](https://redirect.github.com/oxc-project/oxc/commit/ec2128e) linter: Fix line calculation for `eslint/max-lines` in diagnostics ([#​7962](https://redirect.github.com/oxc-project/oxc/issues/7962)) (Dmitry Zakharov) - [`79af100`](https://redirect.github.com/oxc-project/oxc/commit/79af100) semantic: Reference flags not correctly resolved when after an export stmt ([#​8134](https://redirect.github.com/oxc-project/oxc/issues/8134)) (camc314) ##### Performance - [`d8d2ec6`](https://redirect.github.com/oxc-project/oxc/commit/d8d2ec6) linter: Run rules which require typescript syntax only when source type is actually typescript ([#​8166](https://redirect.github.com/oxc-project/oxc/issues/8166)) (Alexander S.) - [`2736657`](https://redirect.github.com/oxc-project/oxc/commit/2736657) semantic: Allocate `UnresolvedReferences` in allocator ([#​8046](https://redirect.github.com/oxc-project/oxc/issues/8046)) (Boshen) ##### Refactor - [`de8246b`](https://redirect.github.com/oxc-project/oxc/commit/de8246b) language_server: Move structs into own file ([#​8026](https://redirect.github.com/oxc-project/oxc/issues/8026)) (Alexander S.) - [`774babb`](https://redirect.github.com/oxc-project/oxc/commit/774babb) linter: Read `exported_bindings_from_star_export` lazily ([#​8062](https://redirect.github.com/oxc-project/oxc/issues/8062)) (Boshen) - [`547c102`](https://redirect.github.com/oxc-project/oxc/commit/547c102) linter: Use `RwLock` instead of `FxDashMap` for module record data ([#​8061](https://redirect.github.com/oxc-project/oxc/issues/8061)) (Boshen) - [`952d7e4`](https://redirect.github.com/oxc-project/oxc/commit/952d7e4) linter: Rename `flat.rs` to `config.rs` ([#​8033](https://redirect.github.com/oxc-project/oxc/issues/8033)) (camc314) - [`50848ed`](https://redirect.github.com/oxc-project/oxc/commit/50848ed) linter: Simplify `ConfigStore` to prep for nested configs ([#​8032](https://redirect.github.com/oxc-project/oxc/issues/8032)) (camc314) - [`b2a4a78`](https://redirect.github.com/oxc-project/oxc/commit/b2a4a78) linter: Remove unused `with_rules` and `set_rule` methods ([#​8029](https://redirect.github.com/oxc-project/oxc/issues/8029)) (camc314) - [`6da0b21`](https://redirect.github.com/oxc-project/oxc/commit/6da0b21) oxlint: Remove unused `git.rs` ([#​7990](https://redirect.github.com/oxc-project/oxc/issues/7990)) (Boshen) - [`58e7777`](https://redirect.github.com/oxc-project/oxc/commit/58e7777) oxlint: Remove extra if check in `Walkdir` ([#​7989](https://redirect.github.com/oxc-project/oxc/issues/7989)) (Boshen) - [`02f968d`](https://redirect.github.com/oxc-project/oxc/commit/02f968d) semantic: Change `Bindings` to a plain `FxHashMap` ([#​8019](https://redirect.github.com/oxc-project/oxc/issues/8019)) (Boshen) ### [`v0.15.3`](https://redirect.github.com/oxc-project/oxc/releases/tag/oxlint_v0.15.3): oxlint v0.15.3 [Compare Source](https://redirect.github.com/oxc-project/oxc/compare/oxlint_v0.15.2...oxlint_v0.15.3) #### \[0.15.3] - 2024-12-17 ##### Features - [`25ddb35`](https://redirect.github.com/oxc-project/oxc/commit/25ddb35) linter: Add the import/no_named_default rule ([#​7902](https://redirect.github.com/oxc-project/oxc/issues/7902)) (Guillaume Piedigrossi) - [`ee26b44`](https://redirect.github.com/oxc-project/oxc/commit/ee26b44) linter: Enhance `get_element_type` to resolve more element types ([#​7885](https://redirect.github.com/oxc-project/oxc/issues/7885)) (dalaoshu) ##### Bug Fixes - [`6f41d92`](https://redirect.github.com/oxc-project/oxc/commit/6f41d92) linter: False positive in `unicorn/no-useless-spread` ([#​7940](https://redirect.github.com/oxc-project/oxc/issues/7940)) (dalaoshu) - [`0867b40`](https://redirect.github.com/oxc-project/oxc/commit/0867b40) linter: Fix configuration parser for `no-restricted-imports` ([#​7921](https://redirect.github.com/oxc-project/oxc/issues/7921)) (Alexander S.) - [`9c9b73d`](https://redirect.github.com/oxc-project/oxc/commit/9c9b73d) linter: Fix incorrect fixer for `prefer-regexp-test` ([#​7898](https://redirect.github.com/oxc-project/oxc/issues/7898)) (Cameron) - [`32935e6`](https://redirect.github.com/oxc-project/oxc/commit/32935e6) linter: False positive in `jsx-a11y/label-has-associated-control` ([#​7881](https://redirect.github.com/oxc-project/oxc/issues/7881)) (dalaoshu) - [`14c51ff`](https://redirect.github.com/oxc-project/oxc/commit/14c51ff) semantic: Remove inherting `ScopeFlags::Modifier` from parent scope ([#​7932](https://redirect.github.com/oxc-project/oxc/issues/7932)) (Dunqing) ##### Refactor - [`3858221`](https://redirect.github.com/oxc-project/oxc/commit/3858221) global: Sort imports ([#​7883](https://redirect.github.com/oxc-project/oxc/issues/7883)) (overlookmotel) - [`b99ee37`](https://redirect.github.com/oxc-project/oxc/commit/b99ee37) linter: Move rule "no-restricted-imports" to nursery ([#​7897](https://redirect.github.com/oxc-project/oxc/issues/7897)) (Alexander S.) - [`ff2a68f`](https://redirect.github.com/oxc-project/oxc/commit/ff2a68f) linter/yoda: Simplify code ([#​7941](https://redirect.github.com/oxc-project/oxc/issues/7941)) (overlookmotel) ##### Styling - [`7fb9d47`](https://redirect.github.com/oxc-project/oxc/commit/7fb9d47) rust: `cargo +nightly fmt` ([#​7877](https://redirect.github.com/oxc-project/oxc/issues/7877)) (Boshen) ### [`v0.15.2`](https://redirect.github.com/oxc-project/oxc/releases/tag/oxlint_v0.15.2): oxlint v0.15.2 [Compare Source](https://redirect.github.com/oxc-project/oxc/compare/oxlint_v0.15.1...oxlint_v0.15.2) #### \[0.15.2] - 2024-12-14 Fix the previous broken release caused by [https://github.com/softprops/action-gh-release/issues/555](https://redirect.github.com/softprops/action-gh-release/issues/555) ### [`v0.15.1`](https://redirect.github.com/oxc-project/oxc/releases/tag/oxlint_v0.15.1): oxlint v0.15.1 [Compare Source](https://redirect.github.com/oxc-project/oxc/compare/oxlint_v0.15.0...oxlint_v0.15.1) #### \[0.15.1] - 2024-12-13 ##### Features - [`38b1c2e`](https://redirect.github.com/oxc-project/oxc/commit/38b1c2e) editor: Create a command to apply all auto-fixes for the current active text editor ([#​7672](https://redirect.github.com/oxc-project/oxc/issues/7672)) (Nicholas Rayburn) ##### Bug Fixes - [`2b187e5`](https://redirect.github.com/oxc-project/oxc/commit/2b187e5) linter: Fix configuration casing for `typescript/no_this_alias` ([#​7836](https://redirect.github.com/oxc-project/oxc/issues/7836)) (Boshen) - [`06e6d38`](https://redirect.github.com/oxc-project/oxc/commit/06e6d38) linter: Fix unicorn/prefer-query-selector to use the correct replacement for getElementsByClassName ([#​7796](https://redirect.github.com/oxc-project/oxc/issues/7796)) (Nicholas Rayburn) - [`7a83230`](https://redirect.github.com/oxc-project/oxc/commit/7a83230) semantic: Missing reference when `export default` references a type alias binding ([#​7813](https://redirect.github.com/oxc-project/oxc/issues/7813)) (Dunqing)
--- ### 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. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/toeverything/AFFiNE). --- oxlint.json | 2 +- package.json | 2 +- .../pdf-viewer-embedded-inner.tsx | 2 +- yarn.lock | 76 +++++++++---------- 4 files changed, 41 insertions(+), 41 deletions(-) diff --git a/oxlint.json b/oxlint.json index 2581df0e7a33f..6d49866ff0332 100644 --- a/oxlint.json +++ b/oxlint.json @@ -132,7 +132,7 @@ "typescript/no-this-alias": [ "error", { - "allow_destructuring": true + "allowDestructuring": true } ], "typescript/prefer-as-const": "error", diff --git a/package.json b/package.json index 8b1b8edcba5ae..127ddb595cb0c 100644 --- a/package.json +++ b/package.json @@ -82,7 +82,7 @@ "husky": "^9.1.7", "lint-staged": "^15.2.11", "msw": "^2.6.8", - "oxlint": "0.15.0", + "oxlint": "0.15.4", "prettier": "^3.4.2", "semver": "^7.6.3", "serve": "^14.2.4", diff --git a/packages/frontend/core/src/components/attachment-viewer/pdf-viewer-embedded-inner.tsx b/packages/frontend/core/src/components/attachment-viewer/pdf-viewer-embedded-inner.tsx index 6b81f60fe3ec3..d0829af8e2472 100644 --- a/packages/frontend/core/src/components/attachment-viewer/pdf-viewer-embedded-inner.tsx +++ b/packages/frontend/core/src/components/attachment-viewer/pdf-viewer-embedded-inner.tsx @@ -8,7 +8,7 @@ import { import type { PDFMeta } from '@affine/core/modules/pdf/renderer'; import type { PageSize } from '@affine/core/modules/pdf/renderer/types'; import { LoadingSvg, PDFPageCanvas } from '@affine/core/modules/pdf/views'; -import { PeekViewService } from '@affine/core/modules/peek-view'; +import { PeekViewService } from '@affine/core/modules/peek-view/services/peek-view'; import { stopPropagation } from '@affine/core/utils'; import { ArrowDownSmallIcon, diff --git a/yarn.lock b/yarn.lock index f4b193a53b0e0..f844083a5e0cb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -672,7 +672,7 @@ __metadata: husky: "npm:^9.1.7" lint-staged: "npm:^15.2.11" msw: "npm:^2.6.8" - oxlint: "npm:0.15.0" + oxlint: "npm:0.15.4" prettier: "npm:^3.4.2" semver: "npm:^7.6.3" serve: "npm:^14.2.4" @@ -10261,58 +10261,58 @@ __metadata: languageName: node linkType: hard -"@oxlint/darwin-arm64@npm:0.15.0": - version: 0.15.0 - resolution: "@oxlint/darwin-arm64@npm:0.15.0" +"@oxlint/darwin-arm64@npm:0.15.4": + version: 0.15.4 + resolution: "@oxlint/darwin-arm64@npm:0.15.4" conditions: os=darwin & cpu=arm64 languageName: node linkType: hard -"@oxlint/darwin-x64@npm:0.15.0": - version: 0.15.0 - resolution: "@oxlint/darwin-x64@npm:0.15.0" +"@oxlint/darwin-x64@npm:0.15.4": + version: 0.15.4 + resolution: "@oxlint/darwin-x64@npm:0.15.4" conditions: os=darwin & cpu=x64 languageName: node linkType: hard -"@oxlint/linux-arm64-gnu@npm:0.15.0": - version: 0.15.0 - resolution: "@oxlint/linux-arm64-gnu@npm:0.15.0" +"@oxlint/linux-arm64-gnu@npm:0.15.4": + version: 0.15.4 + resolution: "@oxlint/linux-arm64-gnu@npm:0.15.4" conditions: os=linux & cpu=arm64 & libc=glibc languageName: node linkType: hard -"@oxlint/linux-arm64-musl@npm:0.15.0": - version: 0.15.0 - resolution: "@oxlint/linux-arm64-musl@npm:0.15.0" +"@oxlint/linux-arm64-musl@npm:0.15.4": + version: 0.15.4 + resolution: "@oxlint/linux-arm64-musl@npm:0.15.4" conditions: os=linux & cpu=arm64 & libc=musl languageName: node linkType: hard -"@oxlint/linux-x64-gnu@npm:0.15.0": - version: 0.15.0 - resolution: "@oxlint/linux-x64-gnu@npm:0.15.0" +"@oxlint/linux-x64-gnu@npm:0.15.4": + version: 0.15.4 + resolution: "@oxlint/linux-x64-gnu@npm:0.15.4" conditions: os=linux & cpu=x64 & libc=glibc languageName: node linkType: hard -"@oxlint/linux-x64-musl@npm:0.15.0": - version: 0.15.0 - resolution: "@oxlint/linux-x64-musl@npm:0.15.0" +"@oxlint/linux-x64-musl@npm:0.15.4": + version: 0.15.4 + resolution: "@oxlint/linux-x64-musl@npm:0.15.4" conditions: os=linux & cpu=x64 & libc=musl languageName: node linkType: hard -"@oxlint/win32-arm64@npm:0.15.0": - version: 0.15.0 - resolution: "@oxlint/win32-arm64@npm:0.15.0" +"@oxlint/win32-arm64@npm:0.15.4": + version: 0.15.4 + resolution: "@oxlint/win32-arm64@npm:0.15.4" conditions: os=win32 & cpu=arm64 languageName: node linkType: hard -"@oxlint/win32-x64@npm:0.15.0": - version: 0.15.0 - resolution: "@oxlint/win32-x64@npm:0.15.0" +"@oxlint/win32-x64@npm:0.15.4": + version: 0.15.4 + resolution: "@oxlint/win32-x64@npm:0.15.4" conditions: os=win32 & cpu=x64 languageName: node linkType: hard @@ -27332,18 +27332,18 @@ __metadata: languageName: node linkType: hard -"oxlint@npm:0.15.0": - version: 0.15.0 - resolution: "oxlint@npm:0.15.0" - dependencies: - "@oxlint/darwin-arm64": "npm:0.15.0" - "@oxlint/darwin-x64": "npm:0.15.0" - "@oxlint/linux-arm64-gnu": "npm:0.15.0" - "@oxlint/linux-arm64-musl": "npm:0.15.0" - "@oxlint/linux-x64-gnu": "npm:0.15.0" - "@oxlint/linux-x64-musl": "npm:0.15.0" - "@oxlint/win32-arm64": "npm:0.15.0" - "@oxlint/win32-x64": "npm:0.15.0" +"oxlint@npm:0.15.4": + version: 0.15.4 + resolution: "oxlint@npm:0.15.4" + dependencies: + "@oxlint/darwin-arm64": "npm:0.15.4" + "@oxlint/darwin-x64": "npm:0.15.4" + "@oxlint/linux-arm64-gnu": "npm:0.15.4" + "@oxlint/linux-arm64-musl": "npm:0.15.4" + "@oxlint/linux-x64-gnu": "npm:0.15.4" + "@oxlint/linux-x64-musl": "npm:0.15.4" + "@oxlint/win32-arm64": "npm:0.15.4" + "@oxlint/win32-x64": "npm:0.15.4" dependenciesMeta: "@oxlint/darwin-arm64": optional: true @@ -27364,7 +27364,7 @@ __metadata: bin: oxc_language_server: bin/oxc_language_server oxlint: bin/oxlint - checksum: 10/9d4107ac27a64d40250c025ec5f624cf8780050c04b66f0753dcc6ef8e5b2b179e392be988dcc9d4fc16f330a299a649bda0622f2d6748b81df1bfe945108478 + checksum: 10/88c2164753cccc7333dc25997b44fc59db2916c733161ba4b1c78ae41900455e9b6525017aada8225c2a8ac4fd8077f04dc00eaa1af5c236ab83cff63cc640d4 languageName: node linkType: hard